Skip to content

Commit

Permalink
style: format code with Gofumpt and Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 3266b44 according to the output
from Gofumpt and Prettier.

Details: #2579
Signed-off-by: kpango <[email protected]>
  • Loading branch information
deepsource-autofix[bot] authored and kpango committed Aug 14, 2024
1 parent 3266b44 commit 8c89bff
Show file tree
Hide file tree
Showing 7 changed files with 513 additions and 2,519 deletions.
159 changes: 120 additions & 39 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"**/*.png",
"**/*.sum",
"**/*.svg",
"**/.cspell.json",
"**/hack/cspell/.cspell.json",
"**/.git/objects/**",
"**/cmd/agent/core/faiss/faiss",
"**/cmd/agent/core/ngt/ngt",
Expand Down Expand Up @@ -1424,7 +1426,7 @@
{
"filename": "charts/vald/values.yaml",
"ignoreWords": [
"goroutines",
"goroutines"
]
},
{
Expand Down Expand Up @@ -2139,6 +2141,12 @@
"timelimit"
]
},
{
"filename": "internal/circuitbreaker/breaker_test.go",
"ignoreWords": [
"resetted"
]
},
{
"filename": "internal/client/v1/client/client.go",
"ignoreWords": [
Expand Down Expand Up @@ -2371,7 +2379,7 @@
"filename": "internal/core/algorithm/ngt/ngt_test.go",
"ignoreWords": [
"bulkinsert",
"ospace",
"ospace"
]
},
{
Expand Down Expand Up @@ -2515,7 +2523,7 @@
"filename": "internal/db/rdb/mysql/mysql_test.go",
"ignoreWords": [
"insertbysql",
"loadcontext",
"loadcontext"
]
},
{
Expand Down Expand Up @@ -2562,7 +2570,7 @@
"forcepathstyle",
"httpclient",
"itop",
"maxretries",
"maxretries"
]
},
{
Expand Down Expand Up @@ -2630,6 +2638,7 @@
{
"filename": "internal/errors/lb.go",
"ignoreWords": [
"insuffcient",
"insufficient"
]
},
Expand All @@ -2654,7 +2663,7 @@
{
"filename": "internal/errors/redis_test.go",
"ignoreWords": [
"kvvk",
"kvvk"
]
},
{
Expand Down Expand Up @@ -2689,7 +2698,7 @@
{
"filename": "internal/k8s/job/job.go",
"ignoreWords": [
"batchv",
"batchv"
]
},
{
Expand Down Expand Up @@ -2767,6 +2776,7 @@
"filename": "internal/log/level/level.go",
"ignoreWords": [
"debg",
"erro",
"fata"
]
},
Expand Down Expand Up @@ -2840,15 +2850,15 @@
"ignoreWords": [
"copylocks",
"govet",
"nums",
"nums"
]
},
{
"filename": "internal/net/grpc/client.go",
"ignoreWords": [
"gbackoff",
"parseable",
"rebalancing",
"rebalancing"
]
},
{
Expand Down Expand Up @@ -2974,6 +2984,12 @@
"semconv"
]
},
{
"filename": "internal/observability/metrics/grpc/grpc.go",
"ignoreWords": [
"desctiption"
]
},
{
"filename": "internal/observability/metrics/mem/index/index.go",
"ignoreWords": [
Expand Down Expand Up @@ -3067,7 +3083,7 @@
{
"filename": "internal/servers/servers_test.go",
"ignoreWords": [
"strg",
"strg"
]
},
{
Expand Down Expand Up @@ -3099,6 +3115,7 @@
{
"filename": "internal/sync/semaphore/semaphore_test.go",
"ignoreWords": [
"doesnt",
"unacquired"
]
},
Expand All @@ -3112,14 +3129,16 @@
{
"filename": "internal/sync/singleflight/singleflight_test.go",
"ignoreWords": [
"dochan",
"unparam"
]
},
{
"filename": "internal/test/data/hdf5/hdf5.go",
"ignoreWords": [
"keepalives",
"neighbors"
"neighbors",
"neighors"
]
},
{
Expand Down Expand Up @@ -3349,6 +3368,12 @@
"rolebinding"
]
},
{
"filename": "k8s/tools/benchmark/job/serviceaccount.yaml",
"ignoreWords": [
"versoin"
]
},
{
"filename": "k8s/tools/benchmark/operator/clusterrole.yaml",
"ignoreWords": [
Expand Down Expand Up @@ -3431,6 +3456,7 @@
"joind",
"nonexistid",
"pushinsert",
"testingcase"
]
},
{
Expand Down Expand Up @@ -3536,6 +3562,7 @@
"aggr",
"fdist",
"fmax",
"insuffcient",
"insufficient",
"timeoutage"
]
Expand Down Expand Up @@ -3599,6 +3626,12 @@
"grpcmock"
]
},
{
"filename": "pkg/gateway/mirror/usecase/vald.go",
"ignoreWords": [
"mirrormetrics"
]
},
{
"filename": "pkg/index/job/creation/service/indexer_test.go",
"ignoreWords": [
Expand Down Expand Up @@ -3626,29 +3659,39 @@
"jobnamespace"
]
},
{
"filename": "pkg/tools/benchmark/job/service/insert.go",
"ignoreWords": [
"prometeus"
]
},
{
"filename": "pkg/tools/benchmark/job/service/job.go",
"ignoreWords": [
"benchjob",
"neighors",
"userdefined"
]
},
{
"filename": "pkg/tools/benchmark/job/service/option.go",
"ignoreWords": [
"bjns",
"concurency",
"userdefined"
]
},
{
"filename": "pkg/tools/benchmark/job/service/option_test.go",
"ignoreWords": [
"bjns",
"concurency"
]
},
{
"filename": "pkg/tools/benchmark/job/usecase/benchmarkd.go",
"ignoreWords": [
"concurency",
"gcli",
"unbackupped",
"usecases",
Expand Down Expand Up @@ -3791,6 +3834,12 @@
"peakrate"
]
},
{
"filename": "tests/e2e/crud/crud_test.go",
"ignoreWords": [
"ecrud"
]
},
{
"filename": "tests/e2e/kubernetes/client/client.go",
"ignoreWords": [
Expand Down Expand Up @@ -3820,80 +3869,112 @@
"evalidator",
"svalidator"
]
},
}
],
"patterns": [
{
"name": "IgnoredurSuffix",
"pattern": ".*dur$"
"name": "IgnoreaddrSuffix",
"pattern": ".*addr$"
},
{
"name": "IgnoreaddrsSuffix",
"pattern": ".*addrs$"
},
{
"name": "IgnoreaddrSuffix",
"pattern": ".*addr$"
},
{
"name": "IgnorebufSuffix",
"pattern": ".*buf$"
},
{
"name": "IgnoregroupSuffix",
"pattern": ".*group$"
"name": "IgnorecfgSuffix",
"pattern": ".*cfg$"
},
{
"name": "IgnoreoptSuffix",
"pattern": ".*opt$"
"name": "IgnorecfgSuffix",
"pattern": ".*cfg$"
},
{
"name": "IgnoreoptsSuffix",
"pattern": ".*opts$"
"name": "IgnorechSuffix",
"pattern": ".*ch$"
},
{
"name": "IgnorechSuffix",
"pattern": ".*ch$"
},
{
"name": "IgnorecntSuffix",
"pattern": ".*cnt$"
},
{
"name": "IgnoreconfSuffix",
"pattern": ".*conf$"
},
{
"name": "IgnoreconfSuffix",
"pattern": ".*conf$"
},
{
"name": "IgnoreconnSuffix",
"pattern": ".*conn$"
},
{
"name": "IgnoreconnSuffix",
"pattern": ".*conn$"
},
{
"name": "IgnorectxSuffix",
"pattern": ".*ctx$"
},
{
"name": "IgnorectxSuffix",
"pattern": ".*ctx$"
},
{
"name": "IgnoredurSuffix",
"pattern": ".*dur$"
},
{
"name": "IgnoredurSuffix",
"pattern": ".*dur$"
},
{
"name": "IgnoreerrSuffix",
"pattern": ".*err$"
},
{
"name": "IgnoreerrsSuffix",
"pattern": ".*errs$"
"name": "IgnoreerrSuffix",
"pattern": ".*err$"
},
{
"name": "IgnoreerrorsSuffix",
"pattern": ".*errors$"
},
{
"name": "IgnorectxSuffix",
"pattern": ".*ctx$"
"name": "IgnoreerrsSuffix",
"pattern": ".*errs$"
},
{
"name": "IgnorelenSuffix",
"pattern": ".*len$"
"name": "IgnoregroupSuffix",
"pattern": ".*group$"
},
{
"name": "IgnorecfgSuffix",
"pattern": ".*cfg$"
"name": "IgnorelenSuffix",
"pattern": ".*len$"
},
{
"name": "IgnorecntSuffix",
"pattern": ".*cnt$"
"name": "IgnorelenSuffix",
"pattern": ".*len$"
},
{
"name": "IgnoreconnSuffix",
"pattern": ".*conn$"
"name": "IgnoreoptSuffix",
"pattern": ".*opt$"
},
{
"name": "IgnoreconnSuffix",
"pattern": ".*conn$"
"name": "IgnoreoptsSuffix",
"pattern": ".*opts$"
},
{
"name": "IgnorechSuffix",
"pattern": ".*ch$"
"name": "IgnoreoptsSuffix",
"pattern": ".*opts$"
}
]
}
Loading

0 comments on commit 8c89bff

Please sign in to comment.