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 3e714ef
Show file tree
Hide file tree
Showing 7 changed files with 156 additions and 2,612 deletions.
133 changes: 89 additions & 44 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,76 @@
"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": "IgnorechSuffix",
"pattern": ".*ch$"
},
{
"name": "IgnoreoptsSuffix",
"pattern": ".*opts$"
"name": "IgnorecntSuffix",
"pattern": ".*cnt$"
},
{
"name": "IgnoreconfSuffix",
"pattern": ".*conf$"
},
{
"name": "IgnoreerrSuffix",
"pattern": ".*err$"
"name": "IgnoreconnSuffix",
"pattern": ".*conn$"
},
{
"name": "IgnoreerrsSuffix",
"pattern": ".*errs$"
"name": "IgnorectxSuffix",
"pattern": ".*ctx$"
},
{
"name": "IgnoreerrorsSuffix",
"pattern": ".*errors$"
"name": "IgnoredurSuffix",
"pattern": ".*dur$"
},
{
"name": "IgnorectxSuffix",
"pattern": ".*ctx$"
"name": "IgnoreerrSuffix",
"pattern": ".*err$"
},
{
"name": "IgnorelenSuffix",
"pattern": ".*len$"
"name": "IgnoreerrorsSuffix",
"pattern": ".*errors$"
},
{
"name": "IgnorecfgSuffix",
"pattern": ".*cfg$"
"name": "IgnoreerrsSuffix",
"pattern": ".*errs$"
},
{
"name": "IgnorecntSuffix",
"pattern": ".*cnt$"
"name": "IgnoregroupSuffix",
"pattern": ".*group$"
},
{
"name": "IgnoreconnSuffix",
"pattern": ".*conn$"
"name": "IgnorelenSuffix",
"pattern": ".*len$"
},
{
"name": "IgnoreconnSuffix",
"pattern": ".*conn$"
"name": "IgnoreoptSuffix",
"pattern": ".*opt$"
},
{
"name": "IgnorechSuffix",
"pattern": ".*ch$"
"name": "IgnoreoptsSuffix",
"pattern": ".*opts$"
}
]
}
}
Loading

0 comments on commit 3e714ef

Please sign in to comment.