From a954d0b9d8959d330307c976e2bf3253b15d5595 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2024 02:55:11 +0000 Subject: [PATCH] style: format code with Gofumpt and Prettier This commit fixes the style issues introduced in 8ff9c70 according to the output from Gofumpt and Prettier. Details: https://github.com/vdaas/vald/pull/2579 Signed-off-by: kpango --- .cspell.json | 4064 +--------------------------------------- hack/cspell/main.go | 470 ++--- hack/cspell/output.log | 59 - 3 files changed, 340 insertions(+), 4253 deletions(-) delete mode 100644 hack/cspell/output.log diff --git a/.cspell.json b/.cspell.json index 545877922e3..64aa6d3ea77 100644 --- a/.cspell.json +++ b/.cspell.json @@ -15,7 +15,6 @@ "@cspell/dict-shell/cspell-ext.json" ], "ignorePaths": [ - "**/.cspell.json", "**/*.ai", "**/*.drawio", "**/*.hdf5", @@ -29,8 +28,8 @@ "**/*.png", "**/*.sum", "**/*.svg", + "**/.cspell.json", "**/.git/objects/**", - "**/hack/cspell/.cspell.json", "**/cmd/agent/core/faiss/faiss", "**/cmd/agent/core/ngt/ngt", "**/cmd/agent/sidecar/sidecar", @@ -47,4032 +46,151 @@ "**/cmd/tools/benchmark/job/job", "**/cmd/tools/benchmark/operator/operator", "**/cmd/tools/cli/loadtest/loadtest", + "**/hack/cspell/**", "**/internal/core/algorithm/ngt/assets/index", "**/internal/test/data/agent/ngt/validIndex" ], - "ignoreWords": [ - "AQUASECURITY", - "Addrs", - "Atof", - "Atol", - "Autoscaler", - "BINFMT", - "BUILDBASE", - "BUILDKIT", - "BUILDX", - "Bbolt", - "Buildx", - "CAPI", - "CHATOPS", - "Capi", - "DISTROLESS", - "DNSA", - "Debugd", - "Debugf", - "Devcontainer", - "EUCJP", - "Errord", - "Errorf", - "Eucjp", - "FAISS", - "FASTOPEN", - "Faiss", - "Fatald", - "Fnum", - "GACHE", - "GETOBJECT", - "GHACTION", - "GOBIN", - "GOLANGCILINT", - "GOLINES", - "GOPATH", - "GOPKG", - "GOPRIVATE", - "GOROOT", - "GOTEST", - "GOTESTS", - "Gache", - "Gocqlx", - "Goleak", - "IDRPC", - "INITCONTAINER", - "Idxs", - "Iface", - "Indegree", - "Infod", - "Infof", - "Inuse", - "Jaccard", - "KEEPIDLE", - "KEYSPACE", - "KLOG", - "KUBECONFIG", - "KUBELINTER", - "KVSDB", - "Keyspace", - "Kvsdb", - "LANGUAGETOOL", - "LDFLAGS", - "LOADTEST", - "LOGRUS", - "LOGRUs", - "MNIST", - "Mallocs", - "Mirr", - "Nbits", - "Nocie", - "ONNX", - "Oneof", - "Outdegree", - "Outf", - "PORTFORWARD", - "Portforward", - "Prost", - "Ptop", - "Pyroscope", - "QUICKACK", - "RDONLY", - "READREPLICA", - "REVIEWDOG", - "ROOTDIR", - "RUSTUP", - "Readreplica", - "Rebalance", - "Regist", - "Represets", - "Retryable", - "Reviewdog", - "Rootdir", - "Ruleguard", - "SARIF", - "SYFT", - "Sjis", - "Stmts", - "Struct", - "Svcs", - "TELEPRESENCE", - "TEXTLINT", - "TMPDIR", - "Tgts", - "Tolerations", - "UPSERT", - "Unmarshal", - "Upsert", - "VALD", - "VALDRELEASE", - "VECTORIZER", - "VHOR", - "Vald", - "Vald's", - "Vals", - "Vecs", - "Vectorizer", - "Vqueue", - "Warnd", - "Warnf", - "Wrapf", - "ZEROLOG", - "ZSTD", - "Zstd", - "addrs", - "akrylysov", - "anypb", - "apiextensions", - "apimachinery", - "apiserver", - "aquasecurity", - "autoclean", - "automaxprocs", - "autoremove", - "backoffmetrics", - "bbolt", - "bigann", - "binfmt", - "bufbuild", - "buildbase", - "buildkit", - "buildx", - "bvecs", - "bzrignore", - "canceld", - "cbmetrics", - "chatops", - "circuitbreaker", - "clientip", - "cloudstorage", - "clusterrole", - "cockroachdb", - "codegen", - "configmap", - "corev", - "crds", - "cstring", - "ctxio", - "daemonset", - "dataspace", - "decbytes", - "devcontainer", - "devcontainers", - "devel", - "dicoverer", - "distroless", - "dotproduct", - "dpkg", - "elif", - "emap", - "envoyproxy", - "eoptions", - "errdetails", - "esac", - "eucjp", - "extendee", - "faild", - "faiss", - "fastime", - "flot", - "fmap", - "fnum", - "fsnotify", - "fuid", - "fvecs", - "gache", - "gcsblob", - "genproto", - "getobject", - "gfortran", - "ghaction", - "glog", - "gobc", - "goccy", - "gocloud", - "gocql", - "gocqlx", - "gocraft", - "gofumpt", - "goimports", - "golangci", - "goleak", - "golines", - "gomnd", - "gonum", - "gopkg", - "gopls", - "gopter", - "gorules", - "gotest", - "gotestfmt", - "gotests", - "gotmpl", - "gpgsign", - "healthz", - "hgignore", - "hlts", - "iconfig", - "idelay", - "iface", - "indegree", - "infometrics", - "initcontainer", - "innerproduct", - "inuse", - "ivecs", - "jaccard", - "jitted", - "keepalive", - "keyspace", - "klauspost", - "klog", - "kmrmt", - "kpango", - "kprofefe", - "kubeconfig", - "kubelinter", - "kvsdb", - "languagetool", - "ldconfig", - "leanovate", - "libaec", - "libhdf", - "liblapack", - "libomp", - "libopenblas", - "livenesss", - "loadtest", - "localtime", - "logrus", - "mallocs", - "metav", - "mirr", - "mktemp", - "mktmp", - "mnist", - "moby", - "mthe", - "multiapis", - "nbits", - "nindent", - "nlist", - "nocie", - "nogce", - "nolint", - "noninteractive", - "nonroot", - "normalizedangle", - "normalizedcosine", - "normalizedl", - "normang", - "normcos", - "norml", - "nosql", - "objs", - "oneof", - "onnx", - "opencensus", - "otelgrpc", - "otlptrace", - "outdegree", - "pipefail", - "planetscale", - "pogreb", - "poinc", - "pointradius", - "portforward", - "pprof", - "preriodically", - "profefe", - "prost", - "protoc", - "protocolbuffers", - "protoimpl", - "protoreflect", - "protovalidate", - "pstartf", - "pstopf", - "pyroscope", - "quasilyte", - "readreplica", - "rebalance", - "replicasets", - "resered", - "retryable", - "reviewdog", - "rgba", - "rinx", - "roccd", - "rolebindings", - "rpcs", - "ruleguard", - "rustup", - "sarif", - "scylladb", - "sess", - "signingkey", - "signoff", - "sjis", - "skipcq", - "snapshotter", - "sparsejaccard", - "spjac", - "srvs", - "sspan", - "statefulset", - "stmts", - "stos", - "stretchr", - "struct", - "substr", - "svcs", - "syft", - "tagalign", - "telepresence", - "textlint", - "tgts", - "timepicker", - "timeutil", - "tmpdir", - "tmpfs", - "tmproj", - "tolerations", - "tparse", - "traefik", - "trunc", - "tzdata", - "ultiple", - "unixgram", - "unixpacket", - "unmarshal", - "upsert", - "upserted", - "urlopener", - "usecase", - "vald", - "vald's", - "valdbenchmarkjob", - "valdbenchmarkjobs", - "valdbenchmarkoperatorrelease", - "valdbenchmarkscenario", - "valdbenchmarkscenarios", - "valdhelmoperatorrelease", - "valdhelmoperatorreleases", - "valdrelease", - "valdreleases", - "vals", - "vankichi", - "vdaas", - "vecs", - "vectorizer", - "vhor", - "vmhwm", - "vmpeak", - "vmrss", - "volumesnapshots", - "vqueue", - "vtproto", - "wfci", - "xaxis", - "yahoojapan", - "yamlfmt", - "yaxes", - "yaxis", - "zeebo", - "zerolog", - "zoneinfo", - "zstd" - ], - "ignoreRegExpList": [ - "\\b\\w*addr\\b", - "\\b\\w*buf\\b", - "\\b\\w*cfg\\b", - "\\b\\w*ch\\b", - "\\b\\w*conf\\b", - "\\b\\w*ctx\\b", - "\\b\\w*dur\\b", - "\\b\\w*err\\b", - "\\b\\w*group\\b", - "\\b\\w*len\\b", - "\\b\\w*opts\\b" - ], - "overrides": [ - { - "filename": ".all-contributorsrc", - "ignoreWords": [ - "Funakoshi", - "Grimaud", - "Hiroto", - "Hrichik", - "Kadowaki", - "Kato", - "Katz", - "Kiichiro", - "Koichi", - "Kosuke", - "Mazumder", - "Morimoto", - "Okamura", - "Rintaro", - "Shiraishi", - "Siyuan", - "YUKAWA", - "Yusuke", - "aknishid", - "ando", - "datelier", - "dotdc", - "hrichiksite", - "junsei", - "kevindiu", - "liusy", - "pgrimaud", - "taisuou", - "takuyaymd", - "thedrow", - "ykadowak", - "zchee" - ] - }, - { - "filename": ".commit_template", - "ignoreWords": [ - "bento", - "tada" - ] - }, - { - "filename": ".devcontainer/devcontainer.json", - "ignoreWords": [ - "PTRACE", - "commandhistory", - "seccomp", - "zshhistory" - ] - }, - { - "filename": ".devcontainer/postAttachCommand.sh", - "ignoreWords": [ - "commandhistory" - ] - }, - { - "filename": ".fossa.yml", - "ignoreWords": [ - "vdctl" - ] - }, - { - "filename": ".git/FETCH_HEAD", - "ignoreWords": [ - "binaryindex", - "enought", - "guildeline", - "rebalancer", - "valuesgo" - ] - }, - { - "filename": ".git/hooks/applypatch-msg.sample", - "ignoreWords": [ - "commitmsg" - ] - }, - { - "filename": ".git/hooks/fsmonitor-watchman.sample", - "ignoreWords": [ - "CHLD", - "binmode", - "clockid", - "msys" - ] - }, - { - "filename": ".git/hooks/pre-commit.sample", - "ignoreWords": [ - "allownonascii" - ] - }, - { - "filename": ".git/hooks/pre-rebase.sample", - "ignoreWords": [ - "Hamano", - "Junio", - "oneline" - ] - }, - { - "filename": ".git/hooks/pre-receive.sample", - "ignoreWords": [ - "echoback" - ] - }, - { - "filename": ".git/hooks/push-to-checkout.sample", - "ignoreWords": [ - "behaviour" - ] - }, - { - "filename": ".git/hooks/sendemail-validate.sample", - "ignoreWords": [ - "SENDEMAIL", - "Worktree", - "sendemail", - "worktree" - ] - }, - { - "filename": ".git/hooks/update.sample", - "ignoreWords": [ - "allowdeletetag", - "allowmodifytag", - "allowunannotated", - "newrev", - "oldrev", - "projectdesc" - ] - }, - { - "filename": ".git/packed-refs", - "ignoreWords": [ - "binaryindex", - "guildeline", - "rebalancer" - ] - }, - { - "filename": ".gitattributes", - "ignoreWords": [ - "contributorsrc" - ] - }, - { - "filename": ".gitfiles", - "ignoreWords": [ - "AUTOBUILD", - "Autobuild", - "CMYK", - "CONFLINT", - "DEEPSOURCE", - "Deepsource", - "HADOLINT", - "SHOGO", - "SOFTPROPS", - "Singleflight", - "TECHNOTE", - "accesslog", - "agentd", - "autobuild", - "benchmarkd", - "brandguidelines", - "clusterrolebinding", - "conflint", - "contributorsrc", - "conv", - "darkgray", - "deepsource", - "getstarted", - "gitfiles", - "gongt", - "hadolint", - "helmignore", - "kosarak", - "kustomization", - "lycorp", - "multicluster", - "networkpolicy", - "nytimes", - "priorityclass", - "promtail", - "serviceaccount", - "shogo", - "sidecard", - "singleflight", - "softprops", - "technote", - "testdata", - "textlintrc", - "tmpl", - "valdmirrortarget", - "vdctl", - "whitesource" - ] - }, - { - "filename": ".github/actions/docker-build/action.yaml", - "ignoreWords": [ - "opencontainers" - ] - }, - { - "filename": ".github/actions/e2e-deploy-vald-helm-operator/action.yaml", - "ignoreWords": [ - "PODNAME", - "podname" - ] - }, - { - "filename": ".github/actions/e2e-deploy-vald-readreplica/action.yaml", - "ignoreWords": [ - "PODNAME", - "podname" - ] - }, - { - "filename": ".github/actions/e2e-deploy-vald/action.yaml", - "ignoreWords": [ - "PODNAME", - "podname" - ] - }, - { - "filename": ".github/actions/notify-slack/action.yaml", - "ignoreWords": [ - "TECHNOTE", - "technote" - ] - }, - { - "filename": ".github/chatops_commands.md", - "ignoreWords": [ - "bento" - ] - }, - { - "filename": ".github/chatops_permissions.yaml", - "ignoreWords": [ - "datelier", - "kevindiu" - ] - }, - { - "filename": ".github/conflint.yaml", - "ignoreWords": [ - "kubeval" - ] - }, - { - "filename": ".github/dependabot.yml", - "ignoreWords": [ - "gomod" - ] - }, - { - "filename": ".github/helm/values/values-agent-sidecar.yaml", - "ignoreWords": [ - "ACCESSKEY", - "SECRETKEY" - ] - }, - { - "filename": ".github/helm/values/values-chaos.yaml", - "ignoreWords": [ - "serversscheme" - ] - }, - { - "filename": ".github/helm/values/values-profile.yaml", - "ignoreWords": [ - "GOMAXPROCS" - ] - }, - { - "filename": ".github/helm/values/values-readreplica.yaml", - "ignoreWords": [ - "snapclass" - ] - }, - { - "filename": ".github/workflows/_docker-image-scan.yaml", - "ignoreWords": [ - "imagename", - "opencontainers" - ] - }, - { - "filename": ".github/workflows/_docker-image.yaml", - "ignoreWords": [ - "DOCKERHUB", - "buildkitd", - "stargz" - ] - }, - { - "filename": ".github/workflows/backport.yml", - "ignoreWords": [ - "startswith" - ] - }, - { - "filename": ".github/workflows/build-binaries.yml", - "ignoreWords": [ - "SHOGO", - "shogo" - ] - }, - { - "filename": ".github/workflows/chatops.yml", - "ignoreWords": [ - "gentest" - ] - }, - { - "filename": ".github/workflows/codeql-analysis.yml", - "ignoreWords": [ - "AUTOBUILD", - "Autobuild", - "autobuild" - ] - }, - { - "filename": ".github/workflows/coverage.yml", - "ignoreWords": [ - "DEEPSOURCE", - "Deepsource", - "deepsource" - ] - }, - { - "filename": ".github/workflows/detect-internal-config-changes.yml", - "ignoreWords": [ - "interal" - ] - }, - { - "filename": ".github/workflows/dockers-gateway-mirror-image.yaml", - "ignoreWords": [ - "nirror" - ] - }, - { - "filename": ".github/workflows/e2e-chaos.yaml", - "ignoreWords": [ - "clusterwide" - ] - }, - { - "filename": ".github/workflows/e2e-max-dim.yml", - "ignoreWords": [ - "readlink" - ] - }, - { - "filename": ".github/workflows/e2e-profiling.yml", - "ignoreWords": [ - "threadcreate" - ] - }, - { - "filename": ".github/workflows/fossa.yml", - "ignoreWords": [ - "urllib" - ] - }, - { - "filename": ".github/workflows/labeler.yml", - "ignoreWords": [ - "shortstat" - ] - }, - { - "filename": ".github/workflows/release.yml", - "ignoreWords": [ - "GOPROXY", - "SOFTPROPS", - "goproxy", - "softprops" - ] - }, - { - "filename": ".github/workflows/reviewdog-hadolint.yml", - "ignoreWords": [ - "Dockerfiles", - "HADOLINT", - "dockerfiles", - "hadolint" - ] - }, - { - "filename": ".github/workflows/reviewdog-k8s.yml", - "ignoreWords": [ - "CONFLINT", - "conflint", - "kubeval" - ] - }, - { - "filename": ".github/workflows/reviewdog-markdown.yml", - "ignoreWords": [ - "testlint" - ] - }, - { - "filename": ".github/workflows/test-hack.yml", - "ignoreWords": [ - "notests", - "smallscreen" - ] - }, - { - "filename": ".github/workflows/unit-test.yaml", - "ignoreWords": [ - "notests", - "smallscreen" - ] - }, - { - "filename": ".gitignore", - "ignoreWords": [ - "MSVC", - "dylib", - "nvim", - "nvimlog", - "rustc", - "rustfmt" - ] - }, - { - "filename": ".golangci.yml", - "ignoreWords": [ - "Singleflight", - "asasalint", - "asciicheck", - "bidichk", - "bodyclose", - "contextcheck", - "copylocks", - "cyclop", - "decorder", - "depguard", - "dupl", - "dupword", - "durationcheck", - "errcheck", - "errchkjson", - "errname", - "errorlint", - "execinquery", - "exhaustruct", - "exportloopref", - "forbidigo", - "forcetypeassert", - "ginkgolinter", - "gocheckcompilerdirectives", - "gochecknoglobals", - "gochecknoinits", - "gocognit", - "goconst", - "gocritic", - "gocyclo", - "godox", - "gofmt", - "goheader", - "gomoddirectives", - "gomodguard", - "goprintffuncname", - "gosec", - "gosimple", - "gosmopolitan", - "govet", - "importas", - "ineffassign", - "interfacebloat", - "ireturn", - "loggercheck", - "logrlint", - "makezero", - "megacheck", - "musttag", - "nakedret", - "nestif", - "nilnil", - "nlreturn", - "nolintlint", - "nonamedreturns", - "nosprintfhostport", - "paralleltest", - "prealloc", - "predeclared", - "promlinter", - "rowserrcheck", - "singleflight", - "sqlclosecheck", - "staticcheck", - "stylecheck", - "testableexamples", - "testpackage", - "thelper", - "tparallel", - "unconvert", - "unparam", - "usestdlibvars", - "vetshadow", - "wastedassign", - "wrapcheck", - "wslissues" - ] - }, - { - "filename": ".prh.yaml", - "ignoreWords": [ - "Burstable", - "Flamegraph", - "Godoc", - "NGTD", - "besteffort", - "burstable", - "documentaion", - "flamegraph", - "godoc", - "ngtd", - "valdcli" - ] - }, - { - "filename": ".textlintrc", - "ignoreWords": [ - "AUTOBUILD", - "Autobuild", - "Godoc", - "NGTD", - "autobuild", - "godoc", - "idrequest", - "mevie", - "ngtd", - "rerank", - "sptag", - "subtest", - "vektor" - ] - }, - { - "filename": "CHANGELOG.md", - "ignoreWords": [ - "CFLAGS", - "CXXFLAGS", - "Cellebration", - "DEEPSOURCE", - "Deepsource", - "Dockerfiles", - "HADOLINT", - "Metas", - "Migratation", - "OSDK", - "PBDOCS", - "Singleflight", - "Stackdriver", - "Tutotial", - "WORKDIR", - "Workdir", - "alogrithm", - "ando", - "apiversion", - "bento", - "bidi", - "bulkinsert", - "cass", - "cheking", - "continous", - "conv", - "createindex", - "deeepsource", - "deepsource", - "depentency", - "devcontiner", - "dockerfiles", - "dotdc", - "exection", - "exhaustruct", - "exsiting", - "gache's", - "gorountine", - "hadolint", - "hrichiksite", - "informations", - "iocopy", - "junsei", - "libquadmath", - "lincense", - "liusy", - "makr", - "malloc", - "metas", - "minnum", - "multiplatforms", - "nvimlog", - "osdk", - "pacakge", - "pacicked", - "pbdocs", - "performace", - "priorityclasses", - "savedmodel", - "singleflight", - "slowloris", - "sptag", - "stackdriver", - "tada", - "takuyaymd", - "tensorlfow", - "tset", - "unkeyed", - "unneccessary", - "valdcli", - "vcache", - "vqueue's", - "workdir", - "yamls", - "ykadowak", - "zchee" - ] - }, - { - "filename": "CONTRIBUTING.md", - "ignoreWords": [ - "Firstname", - "Lastname", - "implmentes", - "newfeature" - ] - }, - { - "filename": "Makefile", - "ignoreWords": [ - "BLAS", - "CRORG", - "DBLA", - "DBUILD", - "DCMAKE", - "DFAISS", - "Dockerfiles", - "EXTLDFLAGS", - "GHCRORG", - "GOCACHE", - "GOPROXY", - "GROUNDTRUTH", - "MAKELISTS", - "NGTD", - "NPROCESSORS", - "NUMPANES", - "ONLN", - "Ofast", - "PBDOCS", - "PBGOS", - "PROTODIRS", - "PROTOS", - "RLENGTH", - "RSTART", - "STDDEV", - "armv", - "copress", - "crlfmt", - "dockerfiles", - "extldflags", - "fmerge", - "fopenmp", - "funroll", - "gitfiles", - "goproxy", - "groundtruth", - "gsub", - "laec", - "lgfortran", - "lhdf", - "libfaiss", - "llapack", - "lopenblas", - "lstdc", - "mtune", - "ncpu", - "ngtd", - "nproc", - "pbdocs", - "protos", - "pthread", - "relro", - "strictgoimports", - "toplevel" - ] - }, - { - "filename": "Makefile.d/bench.mk", - "ignoreWords": [ - "GROUNDTRUTH", - "benchmem", - "cpuprofile", - "groundtruth", - "memprofile", - "nvim" - ] - }, - { - "filename": "Makefile.d/build.mk", - "ignoreWords": [ - "EXTLDFLAGS", - "extldflags", - "linkmode", - "popd", - "pushd" - ] - }, - { - "filename": "Makefile.d/dependencies.mk", - "ignoreWords": [ - "GOCACHE", - "modcache", - "testcache" - ] - }, - { - "filename": "Makefile.d/docker.mk", - "ignoreWords": [ - "CRORG", - "GHCRORG", - "buildcache", - "mediatypes", - "npmjs" - ] - }, - { - "filename": "Makefile.d/e2e.mk", - "ignoreWords": [ - "ECRUD" - ] - }, - { - "filename": "Makefile.d/functions.mk", - "ignoreWords": [ - "APIV", - "EXTLDFLAGS", - "PBGOS", - "buildid", - "extldflags", - "modcacherw", - "netgo", - "osusergo", - "trimpath" - ] - }, - { - "filename": "Makefile.d/helm.mk", - "ignoreWords": [ - "valdmirrortarget", - "xzvf" - ] - }, - { - "filename": "Makefile.d/k3d.mk", - "ignoreWords": [ - "loadbalancer", - "storageclass" - ] - }, - { - "filename": "Makefile.d/k8s.mk", - "ignoreWords": [ - "CRORG", - "cainjector", - "jaegertracing", - "operatorusing", - "promtail", - "serrver" - ] - }, - { - "filename": "Makefile.d/kind.mk", - "ignoreWords": [ - "conntrack", - "netfilter" - ] - }, - { - "filename": "Makefile.d/minikube.mk", - "ignoreWords": [ - "hostpath", - "storageclass" - ] - }, - { - "filename": "Makefile.d/proto.mk", - "ignoreWords": [ - "PROTOS", - "protobufs", - "protos" - ] - }, - { - "filename": "Makefile.d/test.mk", - "ignoreWords": [ - "covermode", - "coverprofile", - "cweill", - "gotesttools", - "mfridman", - "notests", - "showteststatus" - ] - }, - { - "filename": "Makefile.d/tools.mk", - "ignoreWords": [ - "DBUILD", - "DCMAKE", - "DHDF", - "DZLIB", - "busa", - "crlfmt", - "fatih", - "gomodifytags", - "goplay", - "haya", - "honnef", - "josharian", - "libz", - "momotaro", - "mvdan", - "segmentio", - "staticcheck", - "strictgoimports", - "tlsv", - "xzvf" - ] - }, - { - "filename": "README.md", - "ignoreWords": [ - "Codacy", - "Funakoshi", - "Grimaud", - "Hiroto", - "Hrichik", - "Kadowaki", - "Kato", - "Katz", - "Kiichiro", - "Koichi", - "Kosuke", - "Mazumder", - "Morimoto", - "Okamura", - "Rintaro", - "Shiraishi", - "Siyuan", - "YUKAWA", - "Yusuke", - "aknishid", - "ando", - "datelier", - "junsei", - "kevindiu", - "liusy", - "lycorp", - "srcset", - "taisuou", - "takuyaymd", - "thedrow", - "zchee" - ] - }, - { - "filename": "apis/docs/v1/docs.md", - "ignoreWords": [ - "Bignum", - "Fixnum", - "STOCKOUT", - "Sint", - "hasn", - "sfixed", - "sint" - ] - }, - { - "filename": "apis/grpc/v1/payload/payload.pb.go", - "ignoreWords": [ - "wrapperspb" - ] - }, - { - "filename": "apis/grpc/v1/payload/payload.pb.json.go", - "ignoreWords": [ - "protojson" - ] - }, - { - "filename": "apis/grpc/v1/payload/payload_vtproto.pb.go", - "ignoreWords": [ - "Indexmapkey", - "Indexmapvalue", - "Lenmapkey", - "Lenmapvalue", - "mapkey", - "mapvalue", - "postmsg", - "protohelpers", - "vtmsg", - "vtpb", - "wiretype", - "wrapperspb" - ] - }, - { - "filename": "apis/grpc/v1/rpc/errdetails/error_details.pb.go", - "ignoreWords": [ - "STOCKOUT", - "durationpb" - ] - }, - { - "filename": "apis/grpc/v1/rpc/errdetails/error_details.pb.json.go", - "ignoreWords": [ - "protojson" - ] - }, - { - "filename": "apis/grpc/v1/rpc/errdetails/error_details_vtproto.pb.go", - "ignoreWords": [ - "Indexmapkey", - "Indexmapvalue", - "Lenmapkey", - "Lenmapvalue", - "durationpb", - "mapkey", - "mapvalue", - "protohelpers", - "wiretype" - ] - }, - { - "filename": "apis/proto/v1/agent/core/agent.proto", - "ignoreWords": [ - "createandsave" - ] - }, - { - "filename": "apis/proto/v1/payload/payload.proto", - "ignoreWords": [ - "objc" - ] - }, - { - "filename": "apis/proto/v1/rpc/errdetails/error_details.proto", - "ignoreWords": [ - "STOCKOUT", - "objc" - ] - }, - { - "filename": "apis/swagger/v1/agent/core/agent.swagger.json", - "ignoreWords": [ - "createandsave" - ] - }, - { - "filename": "assets/test/templates/common/fill.tmpl", - "ignoreWords": [ - "uintptr" - ] - }, - { - "filename": "assets/test/templates/common/function.tmpl", - "ignoreWords": [ - "Subtests", - "subtests" - ] - }, - { - "filename": "assets/test/templates/option/function.tmpl", - "ignoreWords": [ - "Subtests", - "subtests" - ] - }, - { - "filename": "buf.gen.yaml", - "ignoreWords": [ - "mfridman", - "neoeinstein", - "openapiv", - "pseudomuto" - ] - }, - { - "filename": "charts/vald-benchmark-operator/crds/valdbenchmarkjob.yaml", - "ignoreWords": [ - "vbjs" - ] - }, - { - "filename": "charts/vald-benchmark-operator/crds/valdbenchmarkoperatorrelease.yaml", - "ignoreWords": [ - "valdbenchmarkoperator", - "valdbenchmarkoperatorreleases", - "vbor", - "vbors" - ] - }, - { - "filename": "charts/vald-benchmark-operator/crds/valdbenchmarkscenario.yaml", - "ignoreWords": [ - "vbss" - ] - }, - { - "filename": "charts/vald-benchmark-operator/templates/clusterrole.yaml", - "ignoreWords": [ - "deletecollection" - ] - }, - { - "filename": "charts/vald-helm-operator/README.md", - "ignoreWords": [ - "readyz" - ] - }, - { - "filename": "charts/vald-helm-operator/crds/valdhelmoperatorrelease.yaml", - "ignoreWords": [ - "vhors" - ] - }, - { - "filename": "charts/vald-helm-operator/templates/clusterrole.yaml", - "ignoreWords": [ - "clusterrolebindings", - "clusterroles", - "customresourcedefinitions", - "horizontalpodautoscalers", - "networkpolicies", - "persistentvolumeclaims", - "poddisruptionbudgets", - "priorityclasses", - "serviceaccounts", - "statefulsets" - ] - }, - { - "filename": "charts/vald-helm-operator/values.yaml", - "ignoreWords": [ - "readyz" - ] - }, - { - "filename": "charts/vald-readreplica/Chart.yaml", - "ignoreWords": [ - "ykadowak" - ] - }, - { - "filename": "charts/vald-readreplica/templates/deployment.yaml", - "ignoreWords": [ - "valdchart", - "valdname" - ] - }, - { - "filename": "charts/vald-readreplica/templates/hpa.yaml", - "ignoreWords": [ - "valdchart", - "valdname" - ] - }, - { - "filename": "charts/vald-readreplica/templates/svc.yaml", - "ignoreWords": [ - "valdchart", - "valdname" - ] - }, - { - "filename": "charts/vald/README.md", - "ignoreWords": [ - "goroutines" - ] - }, - { - "filename": "charts/vald/crds/valdmirrortarget.yaml", - "ignoreWords": [ - "valdmirrortarget", - "valdmirrortargets", - "vmts" - ] - }, - { - "filename": "charts/vald/templates/_helpers.tpl", - "ignoreWords": [ - "envkey", - "rsslimit", - "vszlimit" - ] - }, - { - "filename": "charts/vald/templates/gateway/mirror/clusterrole.yaml", - "ignoreWords": [ - "valdmirrortargets" - ] - }, - { - "filename": "charts/vald/templates/index/job/readreplica/rotate/clusterrole.yaml", - "ignoreWords": [ - "persistentvolumeclaims" - ] - }, - { - "filename": "charts/vald/templates/index/job/readreplica/rotate/configmap.yaml", - "ignoreWords": [ - "envkey" - ] - }, - { - "filename": "charts/vald/values.schema.json", - "ignoreWords": [ - "goroutines" - ] - }, - { - "filename": "charts/vald/values.yaml", - "ignoreWords": [ - "goroutines" - ] - }, - { - "filename": "cmd/tools/cli/benchmark/core/main.go", - "ignoreWords": [ - "pfile", - "vmdata", - "vmexe", - "vmlib", - "vmlock", - "vmpin", - "vmpte", - "vmstack", - "vmswap" - ] - }, - { - "filename": "dockers/binfmt/Dockerfile", - "ignoreWords": [ - "tonistiigi" - ] - }, - { - "filename": "dockers/ci/base/Dockerfile", - "ignoreWords": [ - "graphviz" - ] - }, - { - "filename": "dockers/ci/base/README.md", - "ignoreWords": [ - "titile" - ] - }, - { - "filename": "dockers/dev/Dockerfile", - "ignoreWords": [ - "gomodifytags", - "graphviz", - "staticcheck" - ] - }, - { - "filename": "docs/api/build_proto.md", - "ignoreWords": [ - "PROTOS", - "chrono", - "nanos", - "protos", - "rustc" - ] - }, - { - "filename": "docs/contributing/coding-style.md", - "ignoreWords": [ - "Godoc", - "Roundtripper", - "Structs", - "Subtests", - "crlfmt", - "godoc", - "httputil", - "ioutil", - "roundtripper", - "structs", - "subtests" - ] - }, - { - "filename": "docs/overview/about-vald.md", - "ignoreWords": [ - "rebalancing", - "rerank" - ] - }, - { - "filename": "docs/overview/component/agent.md", - "ignoreWords": [ - "verctors" - ] - }, - { - "filename": "docs/overview/component/discoverer.md", - "ignoreWords": [ - "nodeby" - ] - }, - { - "filename": "docs/performance/continuous-benchmark.md", - "ignoreWords": [ - "vbor" - ] - }, - { - "filename": "docs/performance/loadtest.md", - "ignoreWords": [ - "GOMAXPROCS", - "maxprocs", - "streaminsert" - ] - }, - { - "filename": "docs/tutorial/get-started-with-faiss-agent.md", - "ignoreWords": [ - "cvspq", - "jrnlw" - ] - }, - { - "filename": "docs/tutorial/get-started.md", - "ignoreWords": [ - "cvspq", - "getstarted", - "jrnlw", - "loadbalancer" - ] - }, - { - "filename": "docs/tutorial/vald-agent-standalone-on-docker.md", - "ignoreWords": [ - "GOMAXPROCS", - "maxprocs" - ] - }, - { - "filename": "docs/tutorial/vald-multicluster-on-k8s.md", - "ignoreWords": [ - "brbsp", - "dnxbb", - "ghlpx", - "gzcr", - "hbklj", - "kgrdf", - "multicluster", - "vjbqx", - "vlmpg", - "wtlcv", - "xmws" - ] - }, - { - "filename": "docs/usecase/usage-example.md", - "ignoreWords": [ - "vectorizing" - ] - }, - { - "filename": "docs/user-guides/backup-configuration.md", - "ignoreWords": [ - "ACCESSS" - ] - }, + "patterns": [ { - "filename": "docs/user-guides/capacity-planning.md", - "ignoreWords": [ - "Burstable", - "burstable" - ] + "name": "Ignore_addr_suffix", + "pattern": "/\\b\\w*addr\\b/" }, { - "filename": "docs/user-guides/client-api-config.md", - "ignoreWords": [ - "Milli", - "achive", - "rerank" - ] + "name": "Ignore_addrs_suffix", + "pattern": "/\\b\\w*addrs\\b/" }, { - "filename": "docs/user-guides/cluster-role-binding.md", - "ignoreWords": [ - "clusterrolebinding", - "finalizers", - "retrive", - "valdmirrortargets" - ] + "name": "Ignore_buf_suffix", + "pattern": "/\\b\\w*buf\\b/" }, { - "filename": "docs/user-guides/deployment.md", - "ignoreWords": [ - "finalizers", - "valdhelmopratorreleases" - ] + "name": "Ignore_cancel_suffix", + "pattern": "/\\b\\w*cancel\\b/" }, { - "filename": "example/helm/values-standalone-agent-ngt.yaml", - "ignoreWords": [ - "mnist's" - ] + "name": "Ignore_cfg_suffix", + "pattern": "/\\b\\w*cfg\\b/" }, { - "filename": "example/helm/values-with-pyroscope.yaml", - "ignoreWords": [ - "serversscheme" - ] + "name": "Ignore_ch_suffix", + "pattern": "/\\b\\w*ch\\b/" }, { - "filename": "example/helm/values.yaml", - "ignoreWords": [ - "Agnet", - "mnist's", - "serversscheme" - ] + "name": "Ignore_cnt_suffix", + "pattern": "/\\b\\w*cnt\\b/" }, { - "filename": "example/manifest/scylla/configmap.yaml", - "ignoreWords": [ - "initdb" - ] + "name": "Ignore_conf_suffix", + "pattern": "/\\b\\w*conf\\b/" }, { - "filename": "example/manifest/scylla/job.yaml", - "ignoreWords": [ - "cqlsh", - "initdb" - ] + "name": "Ignore_conn_suffix", + "pattern": "/\\b\\w*conn\\b/" }, { - "filename": "go.mod", - "ignoreWords": [ - "adal", - "afero", - "ajstarks", - "amqp", - "ansiterm", - "antihax", - "appengine", - "armon", - "astcopy", - "astequal", - "autorest", - "azcore", - "azidentity", - "benbjohnson", - "beorn", - "blackfriday", - "bmizerany", - "boombuler", - "buger", - "bytefmt", - "campoy", - "cenkalti", - "cespare", - "chunkreader", - "chzyer", - "cloudfoundry", - "cloudsql", - "cmdflag", - "colorstring", - "configsources", - "cpuguy", - "cpuid", - "creack", - "davecgh", - "dbus", - "dejavu", - "demangle", - "denisenkom", - "devigned", - "dgryski", - "difflib", - "diskv", - "dnaeon", - "easyjson", - "embedmd", - "emicklei", - "errcheck", - "evanphx", - "eventstream", - "fastuuid", - "felixge", - "fgprof", - "filippo", - "firestore", - "flowrate", - "fogleman", - "fortytw", - "fpdf", - "frankban", - "freetype", - "glfw", - "goautoneg", - "gobwas", - "godbus", - "godebug", - "godeltaprof", - "gofpdf", - "gofpdi", - "gofrs", - "gofuzz", - "gogrep", - "gojsonpointer", - "gojsonreference", - "gojsonschema", - "gomega", - "gomodules", - "gonic", - "gostub", - "gotool", - "gover", - "gregjones", - "groupcache", - "grpcreplay", - "hailocab", - "hanwen", - "honnef", - "httpcache", - "httpfs", - "httphead", - "httpreplay", - "httpsnoop", - "iancoleman", - "ianlancetaylor", - "imdario", - "imds", - "inconshreveable", - "isatty", - "jackc", - "jessevdk", - "jmespath", - "jmoiron", - "joho", - "josharian", - "jsonparser", - "jsonpointer", - "jsonreference", - "jstemmer", - "kisielk", - "kyaml", - "kylelemons", - "leaktest", - "leodido", - "liggitt", - "logex", - "logfmt", - "logr", - "lucasb", - "mailru", - "mattn", - "matttproud", - "mergo", - "mitchellh", - "modocache", - "monochromegane", - "montanaflynn", - "mountinfo", - "mssqldb", - "munnerz", - "nhooyr", - "niemeyer", - "nxadm", - "objx", - "ocsql", - "onsi", - "otelhttp", - "otlpmetric", - "otlpmetricgrpc", - "otlptracegrpc", - "peterbourgon", - "pflag", - "pgio", - "pgmock", - "pgpassfile", - "pgproto", - "pgservicefile", - "pgtype", - "phpdave", - "pierrec", - "pmezard", - "prashantv", - "progressbar", - "quicktest", - "ratelimit", - "replayers", - "rogpeppe", - "russross", - "ruudk", - "sbinet", - "schollz", - "secretmanager", - "sergi", - "shlex", - "shopspring", - "shurcoo", - "sirupsen", - "spdystream", - "sqlexp", - "sqlmock", - "sqlx", - "starlark", - "stdinfo", - "stdr", - "stix", - "stoewer", - "strcase", - "strparse", - "tabwriter", - "toolsmith", - "treeprint", - "typeparams", - "udpa", - "ugorji", - "vfsgen", - "xeipuuv", - "xlab", - "xxhash", - "zapr" - ] + "name": "Ignore_ctx_suffix", + "pattern": "/\\b\\w*ctx\\b/" }, { - "filename": "hack/benchmark/assets/x1b/loader.go", - "ignoreWords": [ - "fname" - ] + "name": "Ignore_dim_suffix", + "pattern": "/\\b\\w*dim\\b/" }, { - "filename": "hack/benchmark/assets/x1b/loader_test.go", - "ignoreWords": [ - "fname" - ] + "name": "Ignore_dur_suffix", + "pattern": "/\\b\\w*dur\\b/" }, { - "filename": "hack/benchmark/internal/db/nosql/cassandra/cassandra_test.go", - "ignoreWords": [ - "Metas", - "metas" - ] + "name": "Ignore_env_suffix", + "pattern": "/\\b\\w*env\\b/" }, { - "filename": "hack/benchmark/internal/db/nosql/cassandra/testdata.json", - "ignoreWords": [ - "Adipisicing", - "Aliqua", - "Aliquip", - "Amet", - "Aute", - "Cillum", - "Commodo", - "Consequat", - "Cupidatat", - "Deserunt", - "Dolore", - "Duis", - "Eiusmod", - "Elit", - "Enim", - "Excepteur", - "Fugiat", - "Incididunt", - "Irure", - "Labore", - "Laboris", - "Laborum", - "Mollit", - "Nostrud", - "Nulla", - "Occaecat", - "Officia", - "Pariatur", - "Proident", - "Quis", - "Reprehenderit", - "Sint", - "Sunt", - "Tempor", - "Ullamco", - "Velit", - "Veniam", - "Voluptate", - "adipisicing", - "aliqua", - "aliquip", - "amet", - "aute", - "cillum", - "commodo", - "consequat", - "cupidatat", - "deserunt", - "dolore", - "duis", - "eiusmod", - "elit", - "enim", - "excepteur", - "fugiat", - "incididunt", - "irure", - "labore", - "laboris", - "laborum", - "mollit", - "nostrud", - "nulla", - "occaecat", - "officia", - "pariatur", - "proident", - "quis", - "reprehenderit", - "sint", - "sunt", - "tempor", - "ullamco", - "velit", - "veniam", - "voluptate" - ] + "name": "Ignore_err_suffix", + "pattern": "/\\b\\w*err\\b/" }, { - "filename": "hack/benchmark/internal/starter/agent/core/ngt/option.go", - "ignoreWords": [ - "dtype", - "otype" - ] + "name": "Ignore_error_suffix", + "pattern": "/\\b\\w*error\\b/" }, { - "filename": "hack/benchmark/src/singleflight/singleflight_bench_test.go", - "ignoreWords": [ - "durs", - "resultsmap", - "singlefligh", - "stdsingleflight" - ] + "name": "Ignore_errors_suffix", + "pattern": "/\\b\\w*errors\\b/" }, { - "filename": "hack/docker/gen/main.go", - "ignoreWords": [ - "Inernal", - "TARGETOS", - "WORKDIR", - "Workdir", - "epkg", - "gomodifytags", - "graphviz", - "tmpl", - "tonistiigi", - "workdir" - ] + "name": "Ignore_errs_suffix", + "pattern": "/\\b\\w*errs\\b/" }, { - "filename": "hack/go.mod.default", - "ignoreWords": [ - "adal", - "afero", - "ajstarks", - "amqp", - "antihax", - "appengine", - "armon", - "astcopy", - "astequal", - "autorest", - "azcore", - "azidentity", - "benbjohnson", - "beorn", - "blackfriday", - "bmizerany", - "boombuler", - "buger", - "bytefmt", - "cenkalti", - "cespare", - "chunkreader", - "chzyer", - "cloudfoundry", - "cloudsql", - "cmdflag", - "colorstring", - "configsources", - "cpuguy", - "cpuid", - "creack", - "davecgh", - "dbus", - "dejavu", - "demangle", - "denisenkom", - "devigned", - "dgryski", - "difflib", - "diskv", - "dnaeon", - "easyjson", - "emicklei", - "errcheck", - "evanphx", - "eventstream", - "fastuuid", - "firestore", - "fogleman", - "fortytw", - "fpdf", - "frankban", - "freetype", - "glfw", - "goautoneg", - "gobwas", - "godbus", - "godebug", - "godeltaprof", - "gofpdf", - "gofpdi", - "gofrs", - "gofuzz", - "gogrep", - "gojsonpointer", - "gojsonreference", - "gojsonschema", - "gomega", - "gomodules", - "gonic", - "gostub", - "gotool", - "gover", - "gregjones", - "groupcache", - "grpcreplay", - "hailocab", - "hanwen", - "honnef", - "httpcache", - "httpfs", - "httphead", - "httpreplay", - "iancoleman", - "ianlancetaylor", - "imds", - "inconshreveable", - "isatty", - "jackc", - "jessevdk", - "jmespath", - "jmoiron", - "joho", - "josharian", - "jsonparser", - "jsonpointer", - "jsonreference", - "jstemmer", - "kisielk", - "kylelemons", - "leaktest", - "leodido", - "liggitt", - "logex", - "logfmt", - "logr", - "lucasb", - "mailru", - "mattn", - "matttproud", - "mitchellh", - "modocache", - "monochromegane", - "montanaflynn", - "mountinfo", - "mssqldb", - "munnerz", - "nhooyr", - "niemeyer", - "nxadm", - "objx", - "ocsql", - "onsi", - "otlpmetric", - "otlpmetricgrpc", - "otlptracegrpc", - "peterbourgon", - "pflag", - "pgio", - "pgmock", - "pgpassfile", - "pgproto", - "pgservicefile", - "pgtype", - "phpdave", - "pierrec", - "pmezard", - "prashantv", - "progressbar", - "quicktest", - "replayers", - "rogpeppe", - "russross", - "ruudk", - "sbinet", - "schollz", - "secretmanager", - "sergi", - "shlex", - "shopspring", - "shurcoo", - "sirupsen", - "spdystream", - "sqlexp", - "sqlmock", - "sqlx", - "starlark", - "stdinfo", - "stdr", - "stix", - "stoewer", - "strcase", - "strparse", - "tabwriter", - "toolsmith", - "treeprint", - "typeparams", - "udpa", - "ugorji", - "vfsgen", - "xeipuuv", - "xlab", - "xxhash", - "zapr" - ] + "name": "Ignore_idx_suffix", + "pattern": "/\\b\\w*idx\\b/" }, { - "filename": "hack/gorules/rules_test.go", - "ignoreWords": [ - "analysistest" - ] + "name": "Ignore_len_suffix", + "pattern": "/\\b\\w*len\\b/" }, { - "filename": "hack/gorules/testdata/tests.go", - "ignoreWords": [ - "Fmts", - "newname" - ] + "name": "Ignore_mu_suffix", + "pattern": "/\\b\\w*mu\\b/" }, { - "filename": "hack/license/gen/main.go", - "ignoreWords": [ - "Pipefile", - "contributorsrc", - "dirwalk", - "gitmodules", - "helmignore", - "tmpl", - "webp", - "whitesource" - ] + "name": "Ignore_opt_suffix", + "pattern": "/\\b\\w*opt\\b/" }, { - "filename": "hack/tools/metrics/main.go", - "ignoreWords": [ - "lucasb", - "vgsvg" - ] + "name": "Ignore_opts_suffix", + "pattern": "/\\b\\w*opts\\b/" }, { - "filename": "internal/backoff/backoff_test.go", - "ignoreWords": [ - "Timelimit", - "timelimit" - ] + "name": "Ignore_pool_suffix", + "pattern": "/\\b\\w*pool\\b/" }, { - "filename": "internal/circuitbreaker/breaker_test.go", - "ignoreWords": [ - "resetted" - ] + "name": "Ignore_req_suffix", + "pattern": "/\\b\\w*req\\b/" }, { - "filename": "internal/client/v1/client/client.go", - "ignoreWords": [ - "Upsertor" - ] + "name": "Ignore_res_suffix", + "pattern": "/\\b\\w*res\\b/" }, { - "filename": "internal/client/v1/client/discoverer/discover_test.go", - "ignoreWords": [ - "copylocks", - "govet" - ] + "name": "Ignore_size_suffix", + "pattern": "/\\b\\w*size\\b/" }, { - "filename": "internal/compress/gzip_option_test.go", - "ignoreWords": [ - "zdtd" - ] - }, - { - "filename": "internal/compress/lz4/lz4.go", - "ignoreWords": [ - "pierrec" - ] - }, - { - "filename": "internal/compress/zstd_option_test.go", - "ignoreWords": [ - "zdtd" - ] - }, - { - "filename": "internal/compress/zstd_test.go", - "ignoreWords": [ - "decom", - "vecotr" - ] - }, - { - "filename": "internal/config/backup_test.go", - "ignoreWords": [ - "healthcheck" - ] - }, - { - "filename": "internal/config/blob.go", - "ignoreWords": [ - "storaget" - ] - }, - { - "filename": "internal/config/blob_test.go", - "ignoreWords": [ - "CLOUDSTORAGECONFIG" - ] - }, - { - "filename": "internal/config/cassandra.go", - "ignoreWords": [ - "TLSCA" - ] - }, - { - "filename": "internal/config/cassandra_test.go", - "ignoreWords": [ - "localserial" - ] - }, - { - "filename": "internal/config/compress_test.go", - "ignoreWords": [ - "COMPRESSCORE", - "COMPRESSORREGISTERER" - ] - }, - { - "filename": "internal/config/config.go", - "ignoreWords": [ - "dnum", - "rdst", - "snum", - "vdst" - ] - }, - { - "filename": "internal/config/config_test.go", - "ignoreWords": [ - "GETACTUALVALUE", - "GETACTUALVALUES", - "GLOBALCONFIG", - "fname" - ] - }, - { - "filename": "internal/config/faiss.go", - "ignoreWords": [ - "Voronoi", - "subquantizers", - "subvector" - ] - }, - { - "filename": "internal/config/filter_test.go", - "ignoreWords": [ - "sufix" - ] - }, - { - "filename": "internal/config/gateway_test.go", - "ignoreWords": [ - "bmanager", - "efilter", - "ireplica" - ] - }, - { - "filename": "internal/config/grpc.go", - "ignoreWords": [ - "Dail" - ] - }, - { - "filename": "internal/config/grpc_test.go", - "ignoreWords": [ - "DIALOPTION", - "GRPCCLIENT", - "GRPCCLIENTKEEPALIVE", - "healthcheck" - ] - }, - { - "filename": "internal/config/observability_test.go", - "ignoreWords": [ - "servicename" - ] - }, - { - "filename": "internal/config/redis_test.go", - "ignoreWords": [ - "Timelimit", - "timelimit" - ] - }, - { - "filename": "internal/config/server_test.go", - "ignoreWords": [ - "GPRC", - "GRPCKEEPALIVE" - ] - }, - { - "filename": "internal/config/sidecar_test.go", - "ignoreWords": [ - "AGENTSIDECAR" - ] - }, - { - "filename": "internal/conv/conv.go", - "ignoreWords": [ - "Atobs" - ] - }, - { - "filename": "internal/core/algorithm/faiss/Capi.cpp", - "ignoreWords": [ - "IVFPQ", - "Quantizer", - "quantizer", - "xids" - ] - }, - { - "filename": "internal/core/algorithm/faiss/Capi.h", - "ignoreWords": [ - "Quantizer", - "quantizer", - "xids" - ] - }, - { - "filename": "internal/core/algorithm/faiss/faiss.go", - "ignoreWords": [ - "lfaiss", - "ntotal", - "strage", - "xids" - ] - }, - { - "filename": "internal/core/algorithm/faiss/option.go", - "ignoreWords": [ - "lfaiss" - ] - }, - { - "filename": "internal/core/algorithm/ngt/Makefile", - "ignoreWords": [ - "benchmem" - ] - }, - { - "filename": "internal/core/algorithm/ngt/ngt.go", - "ignoreWords": [ - "bulkinsert", - "bulkremove", - "cstats", - "lngt", - "ospace", - "stdlib" - ] - }, - { - "filename": "internal/core/algorithm/ngt/ngt_test.go", - "ignoreWords": [ - "bulkinsert", - "ospace" - ] - }, - { - "filename": "internal/core/algorithm/ngt/option.go", - "ignoreWords": [ - "dotp", - "dproduct", - "halffloat", - "innerp", - "iproduct", - "lngt", - "nang", - "nangle", - "ncos", - "ncosine", - "normalizedang", - "normalizedcos", - "sparsejac" - ] - }, - { - "filename": "internal/core/algorithm/ngt/option_test.go", - "ignoreWords": [ - "nang", - "ncos" - ] - }, - { - "filename": "internal/db/kvs/bbolt/bbolt_test.go", - "ignoreWords": [ - "testfunc" - ] - }, - { - "filename": "internal/db/kvs/bbolt/option.go", - "ignoreWords": [ - "Freelist" - ] - }, - { - "filename": "internal/db/kvs/bbolt/option_test.go", - "ignoreWords": [ - "Freelist" - ] - }, - { - "filename": "internal/db/kvs/pogreb/options.go", - "ignoreWords": [ - "deafult" - ] - }, - { - "filename": "internal/db/kvs/pogreb/pogreb.go", - "ignoreWords": [ - "deafult" - ] - }, - { - "filename": "internal/db/kvs/redis/delete.go", - "ignoreWords": [ - "Deleter" - ] - }, - { - "filename": "internal/db/kvs/redis/hook.go", - "ignoreWords": [ - "Cmder" - ] - }, - { - "filename": "internal/db/kvs/redis/option_test.go", - "ignoreWords": [ - "defult" - ] - }, - { - "filename": "internal/db/kvs/redis/redis.go", - "ignoreWords": [ - "Deleter", - "Pipeliner" - ] - }, - { - "filename": "internal/db/kvs/redis/redis_mock.go", - "ignoreWords": [ - "Cmder", - "Pipeliner" - ] - }, - { - "filename": "internal/db/kvs/redis/redis_test.go", - "ignoreWords": [ - "cslots", - "gotc" - ] - }, - { - "filename": "internal/db/nosql/cassandra/cassandra.go", - "ignoreWords": [ - "Queryx", - "cmps", - "configuation", - "wlhf" - ] - }, - { - "filename": "internal/db/nosql/cassandra/cassandra_test.go", - "ignoreWords": [ - "Debouncer", - "Queryx", - "cmps", - "dchf", - "selete", - "unavilable", - "wlhf" - ] - }, - { - "filename": "internal/db/nosql/cassandra/delete.go", - "ignoreWords": [ - "Deleter" - ] - }, - { - "filename": "internal/db/nosql/cassandra/option.go", - "ignoreWords": [ - "TLSCA", - "eachquorum", - "localone", - "localquorum", - "localserial" - ] - }, - { - "filename": "internal/db/nosql/cassandra/option_test.go", - "ignoreWords": [ - "TLSCA" - ] - }, - { - "filename": "internal/db/rdb/mysql/mysql_test.go", - "ignoreWords": [ - "insertbysql", - "loadcontext" - ] - }, - { - "filename": "internal/db/rdb/mysql/option_test.go", - "ignoreWords": [ - "valddb", - "valdmysql" - ] - }, - { - "filename": "internal/db/storage/blob/cloudstorage/cloudstorage.go", - "ignoreWords": [ - "iblob" - ] - }, - { - "filename": "internal/db/storage/blob/cloudstorage/cloudstorage_test.go", - "ignoreWords": [ - "iblob" - ] - }, - { - "filename": "internal/db/storage/blob/cloudstorage/option.go", - "ignoreWords": [ - "urlstr" - ] - }, - { - "filename": "internal/db/storage/blob/s3/reader/reader_test.go", - "ignoreWords": [ - "roop" - ] - }, - { - "filename": "internal/db/storage/blob/s3/sdk/s3/s3manager/s3manager.go", - "ignoreWords": [ - "mngr" - ] - }, - { - "filename": "internal/db/storage/blob/s3/session/session_test.go", - "ignoreWords": [ - "btop", - "forcepathstyle", - "httpclient", - "itop", - "maxretries" - ] - }, - { - "filename": "internal/errors/benchmark.go", - "ignoreWords": [ - "benchjob", - "benchscenario", - "tbenchjob", - "tbenchscenario" - ] - }, - { - "filename": "internal/errors/cassandra.go", - "ignoreWords": [ - "consistetncy", - "tcql" - ] - }, - { - "filename": "internal/errors/cassandra_test.go", - "ignoreWords": [ - "consistetncy", - "tcql" - ] - }, - { - "filename": "internal/errors/circuitbreaker.go", - "ignoreWords": [ - "errstr" - ] - }, - { - "filename": "internal/errors/compressor.go", - "ignoreWords": [ - "registerers" - ] - }, - { - "filename": "internal/errors/compressor_test.go", - "ignoreWords": [ - "leve", - "registerers" - ] - }, - { - "filename": "internal/errors/errors_test.go", - "ignoreWords": [ - "Unwarp", - "uncomparable", - "unwrapd" - ] - }, - { - "filename": "internal/errors/file.go", - "ignoreWords": [ - "fitos" - ] - }, - { - "filename": "internal/errors/file_test.go", - "ignoreWords": [ - "fitos" - ] - }, - { - "filename": "internal/errors/lb.go", - "ignoreWords": [ - "Insuffcient" - ] - }, - { - "filename": "internal/errors/mysql_test.go", - "ignoreWords": [ - "vaef" - ] - }, - { - "filename": "internal/errors/redis.go", - "ignoreWords": [ - "KVVK" - ] - }, - { - "filename": "internal/errors/redis_test.go", - "ignoreWords": [ - "KVVK" - ] - }, - { - "filename": "internal/errors/vald_test.go", - "ignoreWords": [ - "tvald" - ] - }, - { - "filename": "internal/file/file_test.go", - "ignoreWords": [ - "utiltest" - ] - }, - { - "filename": "internal/info/info.go", - "ignoreWords": [ - "procs", - "strs" - ] - }, - { - "filename": "internal/k8s/client/client.go", - "ignoreWords": [ - "applyconfigurations", - "applycorev", - "clientgoscheme", - "snapshotv", - "volumesnapshot" - ] - }, - { - "filename": "internal/k8s/job/job.go", - "ignoreWords": [ - "batchv" - ] - }, - { - "filename": "internal/k8s/option.go", - "ignoreWords": [ - "mertics" - ] - }, - { - "filename": "internal/k8s/reconciler.go", - "ignoreWords": [ - "mertics", - "mserver" - ] - }, - { - "filename": "internal/k8s/reconciler_test.go", - "ignoreWords": [ - "mertics" - ] - }, - { - "filename": "internal/k8s/types.go", - "ignoreWords": [ - "appsv", - "batchv", - "snapshotv", - "volumesnapshot" - ] - }, - { - "filename": "internal/k8s/vald/benchmark/api/v1/job_types.go", - "ignoreWords": [ - "deepcopy" - ] - }, - { - "filename": "internal/k8s/vald/benchmark/api/v1/scenario_types.go", - "ignoreWords": [ - "deepcopy" - ] - }, - { - "filename": "internal/k8s/vald/mirror/api/v1/target_types.go", - "ignoreWords": [ - "deepcopy" - ] - }, - { - "filename": "internal/k8s/vald/mirror/target/target.go", - "ignoreWords": [ - "mirrv" - ] - }, - { - "filename": "internal/log/format/format.go", - "ignoreWords": [ - "LTSV", - "ltsv" - ] - }, - { - "filename": "internal/log/format/format_test.go", - "ignoreWords": [ - "LTSV", - "ltsv" - ] - }, - { - "filename": "internal/log/glg/glg.go", - "ignoreWords": [ - "DEBG", - "dstr" - ] - }, - { - "filename": "internal/log/glg/glg_test.go", - "ignoreWords": [ - "DEBG" - ] - }, - { - "filename": "internal/log/level/level.go", - "ignoreWords": [ - "DEBG", - "ERRO", - "FATA" - ] - }, - { - "filename": "internal/log/logger/iface.go", - "ignoreWords": [ - "finalizer" - ] - }, - { - "filename": "internal/log/logger/type.go", - "ignoreWords": [ - "Atot" - ] - }, - { - "filename": "internal/log/logger/type_test.go", - "ignoreWords": [ - "Atot", - "ZEROL" - ] - }, - { - "filename": "internal/log/nop/nop.go", - "ignoreWords": [ - "finalizer" - ] - }, - { - "filename": "internal/log/option.go", - "ignoreWords": [ - "Atot" - ] - }, - { - "filename": "internal/log/retry/retry_test.go", - "ignoreWords": [ - "foramt", - "gotr", - "wantr" - ] - }, - { - "filename": "internal/net/control/control.go", - "ignoreWords": [ - "boolint" - ] - }, - { - "filename": "internal/net/control/control_test.go", - "ignoreWords": [ - "boolint" - ] - }, - { - "filename": "internal/net/control/control_unix.go", - "ignoreWords": [ - "uapi" - ] - }, - { - "filename": "internal/net/dialer.go", - "ignoreWords": [ - "nport", - "tconnectionstate", - "tder" - ] - }, - { - "filename": "internal/net/dialer_test.go", - "ignoreWords": [ - "Nums", - "copylocks", - "govet" - ] - }, - { - "filename": "internal/net/grpc/client.go", - "ignoreWords": [ - "gbackoff", - "parseable", - "rebalancing" - ] - }, - { - "filename": "internal/net/grpc/client_test.go", - "ignoreWords": [ - "gbackoff" - ] - }, - { - "filename": "internal/net/grpc/errdetails/errdetails.go", - "ignoreWords": [ - "iobjs" - ] - }, - { - "filename": "internal/net/grpc/logger/logger.go", - "ignoreWords": [ - "Errorln", - "Infoln", - "Warningf", - "Warningln", - "grpclog" - ] - }, - { - "filename": "internal/net/grpc/logger/logger_test.go", - "ignoreWords": [ - "Errorln", - "Infoln", - "Warningf", - "Warningln", - "grpclog" - ] - }, - { - "filename": "internal/net/grpc/option.go", - "ignoreWords": [ - "gbackoff", - "metricinterceptor", - "traceinterceptor" - ] - }, - { - "filename": "internal/net/grpc/pool/pool.go", - "ignoreWords": [ - "tdelay" - ] - }, - { - "filename": "internal/net/grpc/proto/proto.go", - "ignoreWords": [ - "protoiface" - ] - }, - { - "filename": "internal/net/grpc/server_test.go", - "ignoreWords": [ - "channelz" - ] - }, - { - "filename": "internal/net/http/client/option.go", - "ignoreWords": [ - "Alives", - "Keepalives" - ] - }, - { - "filename": "internal/net/http/client/option_test.go", - "ignoreWords": [ - "Alives", - "Keepalives" - ] - }, - { - "filename": "internal/net/http/dump/dump_test.go", - "ignoreWords": [ - "hoge" - ] - }, - { - "filename": "internal/net/http/metrics/pprof.go", - "ignoreWords": [ - "felixge", - "fgprof", - "godeltaprof", - "pyprof", - "threadcreate" - ] - }, - { - "filename": "internal/net/http/middleware/timeout_test.go", - "ignoreWords": [ - "extermemly" - ] - }, - { - "filename": "internal/net/http/transport/roundtrip.go", - "ignoreWords": [ - "Roundtripper", - "roundtripper" - ] - }, - { - "filename": "internal/net/net.go", - "ignoreWords": [ - "IGMP", - "hostport", - "igmp" - ] - }, - { - "filename": "internal/net/net_test.go", - "ignoreWords": [ - "IGMP", - "hostport", - "igmp" - ] - }, - { - "filename": "internal/observability/exporter/otlp/otlp.go", - "ignoreWords": [ - "otlpmetric", - "otlpmetricgrpc", - "otlptracegrpc", - "semconv" - ] - }, - { - "filename": "internal/observability/metrics/grpc/grpc.go", - "ignoreWords": [ - "Desctiption" - ] - }, - { - "filename": "internal/observability/metrics/mem/index/index.go", - "ignoreWords": [ - "mstats" - ] - }, - { - "filename": "internal/observability/metrics/mem/mem.go", - "ignoreWords": [ - "Memstats", - "Shmem", - "buckhash", - "mcache", - "mspan", - "oinsts", - "shmem", - "toal", - "vmdata", - "vmexe", - "vmlck", - "vmlib", - "vmpin", - "vmpte", - "vmstk", - "vmswap" - ] - }, - { - "filename": "internal/observability/metrics/mem/mem_test.go", - "ignoreWords": [ - "Memstats" - ] - }, - { - "filename": "internal/observability/trace/status.go", - "ignoreWords": [ - "RPCGRPC", - "ocodes", - "semconv" - ] - }, - { - "filename": "internal/params/params.go", - "ignoreWords": [ - "commnad" - ] - }, - { - "filename": "internal/runner/runner.go", - "ignoreWords": [ - "maxprocs", - "mfunc", - "timelocation" - ] - }, - { - "filename": "internal/safety/safety.go", - "ignoreWords": [ - "revcover", - "runtimer" - ] - }, - { - "filename": "internal/servers/option.go", - "ignoreWords": [ - "strg" - ] - }, - { - "filename": "internal/servers/option_test.go", - "ignoreWords": [ - "gsrv", - "strg" - ] - }, - { - "filename": "internal/servers/server/option.go", - "ignoreWords": [ - "accesslog", - "accessloginterceptor", - "metricinterceptor", - "recoverinterceptor", - "traceinterceptor" - ] - }, - { - "filename": "internal/servers/server/server_test.go", - "ignoreWords": [ - "prestart" - ] - }, - { - "filename": "internal/servers/servers_test.go", - "ignoreWords": [ - "strg" - ] - }, - { - "filename": "internal/strings/strings_benchmark_test.go", - "ignoreWords": [ - "tstr" - ] - }, - { - "filename": "internal/sync/errgroup/group_test.go", - "ignoreWords": [ - "acquireings", - "goroutne" - ] - }, - { - "filename": "internal/sync/semaphore/semaphore.go", - "ignoreWords": [ - "cancelation" - ] - }, - { - "filename": "internal/sync/semaphore/semaphore_example_test.go", - "ignoreWords": [ - "Collatz", - "collatz", - "nonpositive" - ] - }, - { - "filename": "internal/sync/semaphore/semaphore_test.go", - "ignoreWords": [ - "Doesnt", - "unacquired" - ] - }, - { - "filename": "internal/sync/singleflight/singleflight.go", - "ignoreWords": [ - "chans", - "dups" - ] - }, - { - "filename": "internal/sync/singleflight/singleflight_test.go", - "ignoreWords": [ - "DOCHAN", - "unparam" - ] - }, - { - "filename": "internal/test/data/hdf5/hdf5.go", - "ignoreWords": [ - "Keepalives", - "Neighors" - ] - }, - { - "filename": "internal/test/data/hdf5/option.go", - "ignoreWords": [ - "dataname" - ] - }, - { - "filename": "internal/test/data/vector/gen.go", - "ignoreWords": [ - "irand" - ] - }, - { - "filename": "internal/test/mock/grpc_testify_mock.go", - "ignoreWords": [ - "losm", - "usecases" - ] - }, - { - "filename": "internal/test/mock/k8s/client.go", - "ignoreWords": [ - "crclient" - ] - }, - { - "filename": "internal/timeutil/rate/rate.go", - "ignoreWords": [ - "ratelimit" - ] - }, - { - "filename": "internal/timeutil/rate/rate_test.go", - "ignoreWords": [ - "ratelimit" - ] - }, - { - "filename": "internal/timeutil/time_test.go", - "ignoreWords": [ - "dummystring", - "hoge" - ] - }, - { - "filename": "internal/unit/unit.go", - "ignoreWords": [ - "bytefmt", - "cloudfoundry" - ] - }, - { - "filename": "internal/version/version.go", - "ignoreWords": [ - "curv" - ] - }, - { - "filename": "internal/worker/worker_test.go", - "ignoreWords": [ - "testname" - ] - }, - { - "filename": "k8s/external/minio/deployment.yaml", - "ignoreWords": [ - "ACCESSKEY", - "SECRETKEY" - ] - }, - { - "filename": "k8s/external/minio/mb-job.yaml", - "ignoreWords": [ - "ACCESSKEY", - "SECRETKEY" - ] - }, - { - "filename": "k8s/metrics/grafana/dashboards/00-vald-cluster-overview.yaml", - "ignoreWords": [ - "Misscheduled", - "Qxya", - "misscheduled" - ] - }, - { - "filename": "k8s/metrics/grafana/dashboards/02-vald-discoverer.yaml", - "ignoreWords": [ - "Jkemc", - "Versin" - ] - }, - { - "filename": "k8s/metrics/grafana/dashboards/05-vald-index-manager.yaml", - "ignoreWords": [ - "jowe" - ] - }, - { - "filename": "k8s/metrics/grafana/dashboards/10-vald-benchmark-operator.yaml", - "ignoreWords": [ - "Versin", - "fdewjfx", - "jkxz" - ] - }, - { - "filename": "k8s/metrics/grafana/dashboards/99-vald-agent-memory.yaml", - "ignoreWords": [ - "Memstats", - "buckhash", - "mcache", - "mspan", - "vmdata", - "vmexe", - "vmlck", - "vmlib", - "vmpin", - "vmpte", - "vmstk", - "vmswap" - ] - }, - { - "filename": "k8s/metrics/jaeger/jaeger.yaml", - "ignoreWords": [ - "jaegertracing" - ] - }, - { - "filename": "k8s/metrics/loki/loki.yaml", - "ignoreWords": [ - "boltdb", - "ingester", - "inmemory", - "kvstore", - "lifecycler" - ] - }, - { - "filename": "k8s/metrics/loki/promtail.yaml", - "ignoreWords": [ - "labelmap", - "promtail", - "varlibdockercontainers", - "varlog" - ] - }, - { - "filename": "k8s/metrics/prometheus/configmap.yaml", - "ignoreWords": [ - "cadvisor", - "labelmap" - ] - }, - { - "filename": "k8s/metrics/pyroscope/README.md", - "ignoreWords": [ - "mafests" - ] - }, - { - "filename": "k8s/metrics/pyroscope/base/configmap.yaml", - "ignoreWords": [ - "labelmap" - ] - }, - { - "filename": "k8s/metrics/pyroscope/base/daemonset.yaml", - "ignoreWords": [ - "ebpfspy" - ] - }, - { - "filename": "k8s/metrics/pyroscope/base/kustomization.yaml", - "ignoreWords": [ - "clusterrolebinding" - ] - }, - { - "filename": "k8s/metrics/tempo/jaeger-agent.yaml", - "ignoreWords": [ - "jaegertracing" - ] - }, - { - "filename": "k8s/metrics/tempo/tempo.yaml", - "ignoreWords": [ - "blocklist", - "ingester", - "inmemory", - "kvstore", - "lifecycler" - ] - }, - { - "filename": "k8s/operator/helm/clusterrole.yaml", - "ignoreWords": [ - "clusterrolebindings", - "clusterroles", - "customresourcedefinitions", - "horizontalpodautoscalers", - "networkpolicies", - "persistentvolumeclaims", - "poddisruptionbudgets", - "priorityclasses", - "serviceaccounts", - "statefulsets" - ] - }, - { - "filename": "k8s/operator/helm/crds/valdhelmoperatorrelease.yaml", - "ignoreWords": [ - "vhors" - ] - }, - { - "filename": "k8s/operator/helm/operator.yaml", - "ignoreWords": [ - "readyz" - ] - }, - { - "filename": "k8s/tools/benchmark/job/clusterrolebinding.yaml", - "ignoreWords": [ - "rolebinding" - ] - }, - { - "filename": "k8s/tools/benchmark/job/serviceaccount.yaml", - "ignoreWords": [ - "Versoin" - ] - }, - { - "filename": "k8s/tools/benchmark/operator/clusterrole.yaml", - "ignoreWords": [ - "deletecollection" - ] - }, - { - "filename": "k8s/tools/benchmark/operator/crds/valdbenchmarkjob.yaml", - "ignoreWords": [ - "vbjs" - ] - }, - { - "filename": "k8s/tools/benchmark/operator/crds/valdbenchmarkoperatorrelease.yaml", - "ignoreWords": [ - "valdbenchmarkoperator", - "valdbenchmarkoperatorreleases", - "vbor", - "vbors" - ] - }, - { - "filename": "k8s/tools/benchmark/operator/crds/valdbenchmarkscenario.yaml", - "ignoreWords": [ - "vbss" - ] - }, - { - "filename": "pkg/agent/core/faiss/handler/grpc/search.go", - "ignoreWords": [ - "createing" - ] - }, - { - "filename": "pkg/agent/core/faiss/service/faiss.go", - "ignoreWords": [ - "Voronoi", - "ntotal", - "saveindex", - "subquantizers", - "tpath", - "tvald" - ] - }, - { - "filename": "pkg/agent/core/faiss/service/option.go", - "ignoreWords": [ - "bdbs", - "brnd" - ] - }, - { - "filename": "pkg/agent/core/faiss/usecase/agentd.go", - "ignoreWords": [ - "faissmetrics" - ] - }, - { - "filename": "pkg/agent/core/ngt/handler/grpc/flush.go", - "ignoreWords": [ - "Cnts", - "cnts" - ] - }, - { - "filename": "pkg/agent/core/ngt/handler/grpc/index_test.go", - "ignoreWords": [ - "exteneral" - ] - }, - { - "filename": "pkg/agent/core/ngt/handler/grpc/insert.go", - "ignoreWords": [ - "vmap" - ] - }, - { - "filename": "pkg/agent/core/ngt/handler/grpc/insert_test.go", - "ignoreWords": [ - "Testingcase", - "joind", - "nonexistid", - "pushinsert" - ] - }, - { - "filename": "pkg/agent/core/ngt/handler/grpc/object_test.go", - "ignoreWords": [ - "testfunc", - "tmock" - ] - }, - { - "filename": "pkg/agent/core/ngt/handler/grpc/update.go", - "ignoreWords": [ - "idis", - "vmap" - ] - }, - { - "filename": "pkg/agent/core/ngt/handler/grpc/update_test.go", - "ignoreWords": [ - "Testint" - ] - }, - { - "filename": "pkg/agent/core/ngt/service/ngt.go", - "ignoreWords": [ - "Nopvq", - "nkvs", - "nobic", - "nopvq", - "saveindex", - "toid", - "tvald" - ] - }, - { - "filename": "pkg/agent/core/ngt/service/ngt_test.go", - "ignoreWords": [ - "Nopvq", - "additionaldigits", - "kvald", - "metafile", - "nobic", - "nopvq", - "testfunc" - ] - }, - { - "filename": "pkg/agent/core/ngt/service/option.go", - "ignoreWords": [ - "bdbs", - "brnd" - ] - }, - { - "filename": "pkg/agent/core/ngt/usecase/agentd.go", - "ignoreWords": [ - "memmetrics", - "ngtmetrics" - ] - }, - { - "filename": "pkg/agent/internal/vqueue/queue.go", - "ignoreWords": [ - "uninserted" - ] - }, - { - "filename": "pkg/agent/internal/vqueue/stateful_test.go", - "ignoreWords": [ - "getvector" - ] - }, - { - "filename": "pkg/agent/sidecar/service/restorer/restorer.go", - "ignoreWords": [ - "Typeflag" - ] - }, - { - "filename": "pkg/discoverer/k8s/service/discover.go", - "ignoreWords": [ - "mnode", - "mpod", - "reconciation", - "svcsmap" - ] - }, - { - "filename": "pkg/discoverer/k8s/service/discover_test.go", - "ignoreWords": [ - "mnode", - "mpod" - ] - }, - { - "filename": "pkg/discoverer/k8s/usecase/discovered.go", - "ignoreWords": [ - "unbackupped" - ] - }, - { - "filename": "pkg/gateway/lb/handler/grpc/aggregation.go", - "ignoreWords": [ - "Aggr", - "Insuffcient", - "aggr", - "fdist", - "fmax", - "timeoutage" - ] - }, - { - "filename": "pkg/gateway/lb/handler/grpc/aggregation_test.go", - "ignoreWords": [ - "Aggr", - "aggr" - ] - }, - { - "filename": "pkg/gateway/lb/handler/grpc/handler.go", - "ignoreWords": [ - "Cnts", - "cnts", - "indegrees", - "outdegrees" - ] - }, - { - "filename": "pkg/gateway/lb/handler/grpc/handler_test.go", - "ignoreWords": [ - "Cnts", - "cnts" - ] - }, - { - "filename": "pkg/gateway/lb/handler/grpc/pairing_heap_test.go", - "ignoreWords": [ - "gids" - ] - }, - { - "filename": "pkg/gateway/lb/handler/grpc/search_benchmark_test.go", - "ignoreWords": [ - "Aggr", - "aggr", - "datas" - ] - }, - { - "filename": "pkg/gateway/mirror/handler/grpc/handler_test.go", - "ignoreWords": [ - "clientmock", - "cmap" - ] - }, - { - "filename": "pkg/gateway/mirror/service/discovery.go", - "ignoreWords": [ - "ctgt", - "ptgt" - ] - }, - { - "filename": "pkg/gateway/mirror/service/discovery_option.go", - "ignoreWords": [ - "datacenter" - ] - }, - { - "filename": "pkg/gateway/mirror/service/mirror_test.go", - "ignoreWords": [ - "grpcmock" - ] - }, - { - "filename": "pkg/gateway/mirror/usecase/vald.go", - "ignoreWords": [ - "mirrormetrics" - ] - }, - { - "filename": "pkg/index/job/creation/service/indexer_test.go", - "ignoreWords": [ - "clientmock", - "grpcmock" - ] - }, - { - "filename": "pkg/index/job/save/service/indexer_test.go", - "ignoreWords": [ - "clientmock", - "grpcmock" - ] - }, - { - "filename": "pkg/manager/index/usecase/indexer.go", - "ignoreWords": [ - "indexmetrics" - ] - }, - { - "filename": "pkg/tools/benchmark/job/config/config.go", - "ignoreWords": [ - "JOBNAME", - "JOBNAMESPACE" - ] - }, - { - "filename": "pkg/tools/benchmark/job/service/insert.go", - "ignoreWords": [ - "Prometeus" - ] - }, - { - "filename": "pkg/tools/benchmark/job/service/job.go", - "ignoreWords": [ - "Neighors", - "USERDEFINED", - "benchjob", - "userdefined" - ] - }, - { - "filename": "pkg/tools/benchmark/job/service/option.go", - "ignoreWords": [ - "Concurency", - "USERDEFINED", - "bjns", - "userdefined" - ] - }, - { - "filename": "pkg/tools/benchmark/job/service/option_test.go", - "ignoreWords": [ - "Concurency", - "bjns" - ] - }, - { - "filename": "pkg/tools/benchmark/job/usecase/benchmarkd.go", - "ignoreWords": [ - "Concurency", - "gcli", - "unbackupped", - "usecases", - "vcli" - ] - }, - { - "filename": "pkg/tools/benchmark/operator/service/operator.go", - "ignoreWords": [ - "Progation", - "benchjob", - "benchjobs", - "benchmarkjob", - "benchscenario", - "bjob", - "cbjl", - "cbsl", - "cjobs", - "rcticker", - "wating" - ] - }, - { - "filename": "pkg/tools/benchmark/operator/service/operator_test.go", - "ignoreWords": [ - "benchjobs", - "minsit", - "scneario" - ] - }, - { - "filename": "pkg/tools/benchmark/operator/usecase/benchmarkd.go", - "ignoreWords": [ - "benchmarkmetrics", - "unbackupped", - "usecases" - ] - }, - { - "filename": "pkg/tools/cli/loadtest/assets/dataset.go", - "ignoreWords": [ - "GROUNDTRUTH", - "groundtruth", - "kosarak", - "nytimes" - ] - }, - { - "filename": "pkg/tools/cli/loadtest/assets/hdf5_loader.go", - "ignoreWords": [ - "dset", - "npoints" - ] - }, - { - "filename": "pkg/tools/cli/loadtest/assets/hdf5_loader_test.go", - "ignoreWords": [ - "dset", - "npoints" - ] - }, - { - "filename": "pkg/tools/cli/loadtest/config/config.go", - "ignoreWords": [ - "streaminsert" - ] - }, - { - "filename": "rust/libs/ngt-rs/Cargo.toml", - "ignoreWords": [ - "miette" - ] - }, - { - "filename": "rust/libs/ngt-rs/build.rs", - "ignoreWords": [ - "BFLOAT", - "DNGT", - "dylib", - "fopenmp", - "gomp", - "miette", - "rustc" - ] - }, - { - "filename": "rust/libs/ngt-rs/src/input.cpp", - "ignoreWords": [ - "cpath", - "ngtresults", - "vquery" - ] - }, - { - "filename": "rust/libs/ngt-rs/src/lib.rs", - "ignoreWords": [ - "repr" - ] - }, - { - "filename": "rust/libs/observability/Cargo.toml", - "ignoreWords": [ - "reqwest", - "scopeguard", - "serde" - ] - }, - { - "filename": "rust/libs/observability/src/macros.rs", - "ignoreWords": [ - "Updown" - ] - }, - { - "filename": "rust/libs/proto/src/payload.v1.rs", - "ignoreWords": [ - "repr" - ] - }, - { - "filename": "tests/chaos/chart/README.md", - "ignoreWords": [ - "kbps", - "minburst", - "peakrate" - ] - }, - { - "filename": "tests/chaos/chart/templates/network/bandwidth.yaml", - "ignoreWords": [ - "minburst", - "peakrate" - ] - }, - { - "filename": "tests/chaos/chart/values.yaml", - "ignoreWords": [ - "kbps", - "minburst", - "peakrate" - ] - }, - { - "filename": "tests/e2e/crud/crud_test.go", - "ignoreWords": [ - "ECRUD" - ] - }, - { - "filename": "tests/e2e/kubernetes/client/client.go", - "ignoreWords": [ - "Clientset", - "clientcmd", - "clientset" - ] - }, - { - "filename": "tests/e2e/kubernetes/kubectl/kubectl.go", - "ignoreWords": [ - "rollouts", - "subcmds" - ] - }, - { - "filename": "tests/e2e/kubernetes/portforward/portforward.go", - "ignoreWords": [ - "genericclioptions", - "portforwarder", - "spdy", - "upgrader" - ] - }, - { - "filename": "tests/e2e/operation/stream.go", - "ignoreWords": [ - "evalidator", - "svalidator" - ] + "name": "Ignore_vec_suffix", + "pattern": "/\\b\\w*vec\\b/" } + ], + "ignoreRegExpList": [ + "Ignore_addr_suffix", + "Ignore_addrs_suffix", + "Ignore_buf_suffix", + "Ignore_cancel_suffix", + "Ignore_cfg_suffix", + "Ignore_ch_suffix", + "Ignore_cnt_suffix", + "Ignore_conf_suffix", + "Ignore_conn_suffix", + "Ignore_ctx_suffix", + "Ignore_dim_suffix", + "Ignore_dur_suffix", + "Ignore_env_suffix", + "Ignore_err_suffix", + "Ignore_error_suffix", + "Ignore_errors_suffix", + "Ignore_errs_suffix", + "Ignore_idx_suffix", + "Ignore_len_suffix", + "Ignore_mu_suffix", + "Ignore_opt_suffix", + "Ignore_opts_suffix", + "Ignore_pool_suffix", + "Ignore_req_suffix", + "Ignore_res_suffix", + "Ignore_size_suffix", + "Ignore_vec_suffix" + ], + "ignoreWords": [ + "PROTOBUF", + "errgroup" ] -} \ No newline at end of file +} diff --git a/hack/cspell/main.go b/hack/cspell/main.go index 9c2cea84ec7..5b571f49f3c 100644 --- a/hack/cspell/main.go +++ b/hack/cspell/main.go @@ -2,277 +2,305 @@ package main import ( "bufio" + "cmp" "encoding/json" "flag" "fmt" "os" "regexp" - "sort" + "slices" "strings" + "sync" ) -type Override struct { - Filename string `json:"filename"` - IgnoreWords []string `json:"ignoreWords,omitempty"` +type CSpellConfig struct { + Import []string `json:"import"` + IgnorePaths []string `json:"ignorePaths"` + Patterns []PatternEntry `json:"patterns,omitempty"` + IgnoreRegExpList []string `json:"ignoreRegExpList,omitempty"` + IgnoreWords []string `json:"ignoreWords,omitempty"` + IgnoreWordsMap map[string][]string `json:"ignoreWordsMap,omitempty"` } -type CspellConfig struct { - Import []string `json:"import"` - IgnorePaths []string `json:"ignorePaths"` - IgnoreWords []string `json:"ignoreWords,omitempty"` - IgnoreRegExpList []string `json:"ignoreRegExpList,omitempty"` - Overrides []Override `json:"overrides"` +type PatternEntry struct { + Name string `json:"name"` + Pattern string `json:"pattern"` } -func main() { - var cspellOutputFile string - var configFile string - var wordThreshold int - - flag.StringVar(&cspellOutputFile, "output", "", "Path to the cspell output file") - flag.StringVar(&configFile, "config", ".cspell.json", "Path to the cspell config file") - flag.IntVar(&wordThreshold, "threshold", 10, "Word frequency threshold for adding to ignoreWords") - - flag.Parse() +type Override struct { + Files []string `json:"files"` + Words []string `json:"words"` +} - if cspellOutputFile == "" || configFile == "" { - flag.Usage() - os.Exit(1) +var ( + mandatoryImports = []string{ + "@cspell/dict-cpp/cspell-ext.json", + "@cspell/dict-docker/cspell-ext.json", + "@cspell/dict-en_us/cspell-ext.json", + "@cspell/dict-fullstack/cspell-ext.json", + "@cspell/dict-git/cspell-ext.json", + "@cspell/dict-golang/cspell-ext.json", + "@cspell/dict-k8s/cspell-ext.json", + "@cspell/dict-makefile/cspell-ext.json", + "@cspell/dict-markdown/cspell-ext.json", + "@cspell/dict-npm/cspell-ext.json", + "@cspell/dict-public-licenses/cspell-ext.json", + "@cspell/dict-rust/cspell-ext.json", + "@cspell/dict-shell/cspell-ext.json", } - // デフォルトの設定 - config := CspellConfig{ - Import: []string{ - "@cspell/dict-cpp/cspell-ext.json", - "@cspell/dict-docker/cspell-ext.json", - "@cspell/dict-en_us/cspell-ext.json", - "@cspell/dict-fullstack/cspell-ext.json", - "@cspell/dict-git/cspell-ext.json", - "@cspell/dict-golang/cspell-ext.json", - "@cspell/dict-k8s/cspell-ext.json", - "@cspell/dict-makefile/cspell-ext.json", - "@cspell/dict-markdown/cspell-ext.json", - "@cspell/dict-npm/cspell-ext.json", - "@cspell/dict-public-licenses/cspell-ext.json", - "@cspell/dict-rust/cspell-ext.json", - "@cspell/dict-shell/cspell-ext.json", - }, - IgnorePaths: []string{ - "**/*.ai", - "**/*.drawio", - "**/*.hdf5", - "**/*.key", - "**/*.lock", - "**/*.log", - "**/*.md5", - "**/*.pack", - "**/*.pdf", - "**/*.pem", - "**/*.png", - "**/*.sum", - "**/*.svg", - "**/.git/objects/**", - "**/cmd/agent/core/faiss/faiss", - "**/cmd/agent/core/ngt/ngt", - "**/cmd/agent/sidecar/sidecar", - "**/cmd/discoverer/k8s/discoverer", - "**/cmd/gateway/filter/filter", - "**/cmd/gateway/lb/lb", - "**/cmd/gateway/mirror/mirror", - "**/cmd/index/job/correction/index-correction", - "**/cmd/index/job/creation/index-creation", - "**/cmd/index/job/readreplica/rotate/readreplica-rotate", - "**/cmd/index/job/save/index-save", - "**/cmd/index/operator/index-operator", - "**/cmd/manager/index/index", - "**/cmd/tools/benchmark/job/job", - "**/cmd/tools/benchmark/operator/operator", - "**/cmd/tools/cli/loadtest/loadtest", - "**/internal/core/algorithm/ngt/assets/index", - "**/internal/test/data/agent/ngt/validIndex", - }, + mandatoryIgnorePaths = []string{ + "**/*.ai", + "**/*.drawio", + "**/*.hdf5", + "**/*.key", + "**/*.lock", + "**/*.log", + "**/*.md5", + "**/*.pack", + "**/*.pdf", + "**/*.pem", + "**/*.png", + "**/*.sum", + "**/*.svg", + "**/.cspell.json", + "**/.git/objects/**", + "**/cmd/agent/core/faiss/faiss", + "**/cmd/agent/core/ngt/ngt", + "**/cmd/agent/sidecar/sidecar", + "**/cmd/discoverer/k8s/discoverer", + "**/cmd/gateway/filter/filter", + "**/cmd/gateway/lb/lb", + "**/cmd/gateway/mirror/mirror", + "**/cmd/index/job/correction/index-correction", + "**/cmd/index/job/creation/index-creation", + "**/cmd/index/job/readreplica/rotate/readreplica-rotate", + "**/cmd/index/job/save/index-save", + "**/cmd/index/operator/index-operator", + "**/cmd/manager/index/index", + "**/cmd/tools/benchmark/job/job", + "**/cmd/tools/benchmark/operator/operator", + "**/cmd/tools/cli/loadtest/loadtest", + "**/hack/cspell/**", + "**/internal/core/algorithm/ngt/assets/index", + "**/internal/test/data/agent/ngt/validIndex", + } + suffixes = []string{ + "addr", + "addrs", + "buf", + "cancel", + "cfg", + "ch", + "cnt", + "conf", + "conn", + "ctx", + "dim", + "dur", + "env", + "err", + "error", + "errors", + "errs", + "idx", + "len", + "mu", + "opt", + "opts", + "pool", + "req", + "res", + "size", + "vec", } - // 既存の.cspell.jsonが存在する場合は読み込む - if _, err := os.Stat(configFile); err == nil { - data, err := os.ReadFile(configFile) - if err != nil { - fmt.Printf("Error reading existing cspell config file: %v\n", err) - os.Exit(1) - } - if err := json.Unmarshal(data, &config); err != nil { - fmt.Printf("Error parsing existing cspell config file: %v\n", err) - os.Exit(1) - } + sufReg = regexp.MustCompile(fmt.Sprintf("(%s)$", strings.Join(suffixes, "|"))) + + prexp = regexp.MustCompile(`Unknown word \((.*?)\) Suggestions`) +) + +func extractLine(line string) (filePath, word string, ok bool) { + filePath, line, ok = strings.Cut(line, ":") + if !ok || len(filePath) == 0 { + return "", "", false + } + _, s, ok := strings.Cut(line, " - ") + if ok { + line = s } + matches := prexp.FindStringSubmatch(line) + if len(matches) > 1 { + return filePath, matches[1], true + } + return "", "", false +} - file, err := os.Open(cspellOutputFile) +func parseCspellResult(filePath string, th int) (map[string][]string, map[string]bool, error) { + file, err := os.Open(filePath) if err != nil { - fmt.Printf("Error opening cspell output file: %v\n", err) - os.Exit(1) + return nil, nil, fmt.Errorf("could not open file: %w", err) } defer file.Close() - wordRegex := regexp.MustCompile(`Unknown word \(([^)]+)\)`) - fileWordsMap := make(map[string]map[string]struct{}) - wordFrequency := make(map[string]int) - wordVariations := make(map[string]map[string]struct{}) - suffixes := []string{ - "addr", "addrs", "buf", "cancel", "cfg", "ch", "cnt", "conf", "conn", "ctx", - "dim", "dur", "env", "err", "error", "errors", "errs", "group", "idx", - "len", "mu", "opt", "opts", "pool", "req", "res", "size", "vec", - } - + var ( + wg sync.WaitGroup + mu sync.Mutex + ) + wordsByFile := make(map[string][]string) + filesByWord := make(map[string][]string) scanner := bufio.NewScanner(file) for scanner.Scan() { line := scanner.Text() - parts := strings.SplitN(line, ":", 2) - if len(parts) < 2 { - continue - } - filename := parts[0] - wordMatch := wordRegex.FindStringSubmatch(line) - if len(wordMatch) == 2 { - word := wordMatch[1] - wordLower := strings.ToLower(word) // 大文字小文字を無視するため小文字に変換 - - if _, exists := fileWordsMap[filename]; !exists { - fileWordsMap[filename] = make(map[string]struct{}) - } - if _, alreadyCounted := fileWordsMap[filename][wordLower]; !alreadyCounted { - wordFrequency[wordLower]++ - } - fileWordsMap[filename][wordLower] = struct{}{} - - // 大文字小文字のバリエーションを記録 - if _, exists := wordVariations[wordLower]; !exists { - wordVariations[wordLower] = make(map[string]struct{}) - } - wordVariations[wordLower][word] = struct{}{} - } - } - - globalIgnoreWords := map[string]struct{}{} - globalIgnoreRegExpList := map[string]struct{}{} - - for wordLower, count := range wordFrequency { - if count >= wordThreshold { - matchedSuffix := false - for _, suffix := range suffixes { - if strings.HasSuffix(wordLower, suffix) && len(wordLower) > len(suffix) { - globalIgnoreRegExpList[fmt.Sprintf("/\\w*%s$/", suffix)] = struct{}{} - matchedSuffix = true - break + wg.Add(1) + go func() { + defer wg.Done() + // Extract the unknown word + if path, word, ok := extractLine(line); ok { + if sufReg.MatchString(word) { + return } - } - if !matchedSuffix { - // バリエーションに基づき、登録するignoreWordsを決定 - for variation := range wordVariations[wordLower] { - globalIgnoreWords[variation] = struct{}{} + mu.Lock() + w, ok := wordsByFile[path] + if !ok || w == nil { + w = make([]string, 0, 2) } + wordsByFile[path] = append(w, word) + f, ok := filesByWord[word] + if !ok || f == nil { + f = make([]string, 0, 2) + } + filesByWord[word] = append(f, path) + mu.Unlock() } - } + }() } - // ファイルごとにignoreWordsの設定 - for filename, words := range fileWordsMap { - wordList := []string{} - for wordLower := range words { - matchedSuffix := false - for _, suffix := range suffixes { - if strings.HasSuffix(wordLower, suffix) && len(wordLower) > len(suffix) { - matchedSuffix = true - break - } - } - // パターンにマッチする単語は個別のignoreWordsには登録しない - if !matchedSuffix { - for variation := range wordVariations[wordLower] { - if _, isGlobal := globalIgnoreWords[variation]; !isGlobal { - wordList = append(wordList, variation) - } - } - } - } + wg.Wait() - if len(wordList) == 0 { - continue + globalWords := make(map[string]bool) + for word, files := range filesByWord { + if len(files) >= th { + globalWords[word] = true } + } - overrideFound := false - for i, override := range config.Overrides { - if override.Filename == filename { - config.Overrides[i].IgnoreWords = append(config.Overrides[i].IgnoreWords, wordList...) - config.Overrides[i].IgnoreWords = unique(config.Overrides[i].IgnoreWords) - sort.Strings(config.Overrides[i].IgnoreWords) - overrideFound = true - break - } - } - if !overrideFound { - config.Overrides = append(config.Overrides, Override{ - Filename: filename, - IgnoreWords: unique(wordList), - }) - } + if err := scanner.Err(); err != nil { + return nil, nil, fmt.Errorf("error reading file: %w", err) } - // 空のIgnoreWordsを持つオーバーライドを削除 - filteredOverrides := []Override{} - for _, override := range config.Overrides { - if len(override.IgnoreWords) > 0 { - filteredOverrides = append(filteredOverrides, override) - } + return wordsByFile, globalWords, nil +} + +func loadConfig(path string) (config *CSpellConfig, err error) { + file, err := os.Open(path) + if err != nil { + return nil, err } - config.Overrides = filteredOverrides + defer file.Close() - // OverridesをFilenameでソート - sort.Slice(config.Overrides, func(i, j int) bool { - return config.Overrides[i].Filename < config.Overrides[j].Filename - }) + config = new(CSpellConfig) + err = json.NewDecoder(file).Decode(config) + if err != nil { + return nil, err + } + return config, nil +} - // 重複するIgnoreWordsを削除し、ソート - for i := range config.Overrides { - config.Overrides[i].IgnoreWords = unique(config.Overrides[i].IgnoreWords) - sort.Strings(config.Overrides[i].IgnoreWords) +func saveConfig(path string, config *CSpellConfig) error { + file, err := os.Create(path) + if err != nil { + return err } + defer file.Close() - // グローバルignoreWordsとignoreRegExpListも同様に処理 - for word := range globalIgnoreWords { - config.IgnoreWords = append(config.IgnoreWords, word) + encoder := json.NewEncoder(file) + encoder.SetIndent("", " ") + return encoder.Encode(config) +} + +func addPatterns(config *CSpellConfig) { + if config.Patterns == nil { + config.Patterns = make([]PatternEntry, 0, len(suffixes)) + } + if config.IgnoreRegExpList == nil { + config.IgnoreRegExpList = make([]string, 0, len(suffixes)) } - for pattern := range globalIgnoreRegExpList { - config.IgnoreRegExpList = append(config.IgnoreRegExpList, pattern) + for _, suffix := range suffixes { + pat := fmt.Sprintf("/\\b\\w*%s\\b/", suffix) + name := fmt.Sprintf("Ignore_%s_suffix", suffix) + config.Patterns = append(config.Patterns, PatternEntry{ + Name: name, + Pattern: pat, + }) + config.IgnoreRegExpList = append(config.IgnoreRegExpList, name) } - config.IgnoreWords = unique(config.IgnoreWords) - sort.Strings(config.IgnoreWords) - config.IgnoreRegExpList = unique(config.IgnoreRegExpList) - sort.Strings(config.IgnoreRegExpList) + slices.SortFunc(config.Patterns, func(left, right PatternEntry) int { + return cmp.Compare(left.Name, right.Name) + }) + slices.Sort(config.IgnoreRegExpList) +} - // ファイルに出力 - outputData, err := json.MarshalIndent(config, "", " ") - if err != nil { - fmt.Printf("Error marshaling cspell config to JSON: %v\n", err) +func main() { + configPath := flag.String("config", ".cspell.json", "Path to the existing .cspell.json file") + outputPath := flag.String("output", "", "Path to the cspell output log") + threshold := flag.Int("threshold", 5, "Threshold for declaring global words") + + flag.Parse() + + if *outputPath == "" { + fmt.Println("Error: output path is required") os.Exit(1) } - if err := os.WriteFile(configFile, outputData, 0644); err != nil { - fmt.Printf("Error writing cspell config file: %v\n", err) - os.Exit(1) + config, err := loadConfig(*configPath) + if err != nil || config == nil { + config = new(CSpellConfig) } + config.Import = mandatoryImports + config.IgnorePaths = mandatoryIgnorePaths - fmt.Printf("cspell configuration updated successfully and saved to %s\n", configFile) -} + addPatterns(config) + + wordsByFile, globalWords, err := parseCspellResult(*outputPath, *threshold) + if err != nil { + fmt.Println("Error:", err) + return + } -// unique は文字列のスライスから重複を取り除きます -func unique(slice []string) []string { - seen := map[string]struct{}{} - result := []string{} - for _, item := range slice { - if _, found := seen[item]; !found { - seen[item] = struct{}{} - result = append(result, item) + if config.IgnoreWords == nil { + config.IgnoreWords = make([]string, 0, len(globalWords)) + } + for word := range globalWords { + config.IgnoreWords = append(config.IgnoreWords, word) + fmt.Println(config.IgnoreWords) + } + slices.Sort(config.IgnoreWords) + for _, word := range config.IgnoreWords { + globalWords[word] = true + } + if config.IgnoreWordsMap == nil { + config.IgnoreWordsMap = make(map[string][]string, len(wordsByFile)) + } + for filePath, words := range wordsByFile { + words = slices.DeleteFunc(words, func(word string) bool { + return globalWords[word] + }) + if len(words) > 0 { + im, ok := config.IgnoreWordsMap[filePath] + if !ok || im == nil { + slices.Sort(words) + config.IgnoreWordsMap[filePath] = words + } else { + words = append(im, words...) + slices.Sort(words) + config.IgnoreWordsMap[filePath] = slices.Compact(words) + } } } - return result + + if err := saveConfig(*configPath, config); err != nil { + fmt.Println("Error: output path is required") + os.Exit(1) + } } diff --git a/hack/cspell/output.log b/hack/cspell/output.log deleted file mode 100644 index a4d0f08ed8a..00000000000 --- a/hack/cspell/output.log +++ /dev/null @@ -1,59 +0,0 @@ -.gitfiles:272:25 - Unknown word (japansearch) Suggestions: [] -.gitfiles:1300:24 - Unknown word (errgroup) Suggestions: [regroup, regroups, eardrop] -.gitfiles:1953:10 - Unknown word (PROTOBUF) Suggestions: [PROOF, PROTO, PROTON, PRONOUN, PROTEUS] -.github/workflows/e2e-max-dim.yml:84:19 - Unknown word (maxdim) Suggestions: [maxim, Maxim, maim, maxi, mxim] -.golangci.yml:64:7 - Unknown word (maintidx) Suggestions: [mantid, mantids, mantic, mantis, minted] -.golangci.yml:84:7 - Unknown word (tenv) Suggestions: [tend, tenn, tens, tent, Tenn] -.golangci.yml:102:9 - Unknown word (goerr) Suggestions: [goer, goers, gore, gored, goren] -apis/grpc/v1/payload/payload_vtproto.pb.go:7420:7 - Unknown word (pksize) Suggestions: [prize, size, csize, resize, SIZE] -apis/grpc/v1/payload/payload.pb.go:1250:43 - Unknown word (protobuf) Suggestions: [proof, proto, proton, protos, pronoun] -CHANGELOG.md:570:10 - Unknown word (vtpool) Suggestions: [vtol, VTOL, pool, tool, spool] -CHANGELOG.md:652:27 - Unknown word (poolsize) Suggestions: [poolside, poopsie, poolsides, plosive, police] -cmd/tools/cli/benchmark/core/main.go:48:3 - Unknown word (vmsize) Suggestions: [mize, size, csize, maize, resize] -go.mod:92:13 - Unknown word (docopt) Suggestions: [dcopy, dicot, dropt, dacoit, decoct] -go.mod:168:25 - Unknown word (hostpool) Suggestions: [hotpot, hostel, hotfoot, hotpots] -go.mod:176:19 - Unknown word (pgconn) Suggestions: [pocono, pkgconf, Pocono, pinon, pennon] -go.mod:189:18 - Unknown word (godotenv) Suggestions: [goodmen, godot, godown, gotten, godot's] -go.mod:312:15 - Unknown word (xerrors) Suggestions: [errors, error, error's, exmoors, extrorse] -hack/benchmark/internal/operation/util.go:30:14 - Unknown word (tserror) Suggestions: [terror, stertor, termor, terrors, error] -hack/gorules/testdata/tests.go:47:2 - Unknown word (ireq) Suggestions: [iraq, ired, ires, Iraq, ire] -internal/client/v1/client/discoverer/discover_test.go:255:6 - Unknown word (autoconn) Suggestions: [autoconf, autozone, AutoZone, altoona, autocue] -internal/core/algorithm/ngt/ngt_test.go:46:26 - Unknown word (epool) Suggestions: [pool, spool, zpool, Pool, ZPool] -internal/core/algorithm/ngt/ngt.go:490:2 - Unknown word (rsize) Suggestions: [resize, size, csize, SIZE, CSIZE] -internal/core/algorithm/ngt/ngt.go:604:2 - Unknown word (cvec) Suggestions: [cvc, cve, CVC, CVE, hevc] -internal/db/kvs/pogreb/pogreb_test.go:65:37 - Unknown word (pogres) Suggestions: [pores, pogges, pogies, ogres, pagers] -internal/db/rdb/mysql/dbr/dbr.go:49:19 - Unknown word (occures) Suggestions: [occurs, colures, ochres, accrues, accurse] -internal/db/storage/blob/cloudstorage/cloudstorage.go:27:15 - Unknown word (gcerrors) Suggestions: [errors, gerry's, guerdons, guerra's, guerrero] -internal/k8s/job/job.go:27:4 - Unknown word (serrors) Suggestions: [errors, serous, serows, senors, servos] -internal/net/dialer.go:341:4 - Unknown word (tconn) Suggestions: [conn, Conn, tenon, tron, ton] -internal/net/dialer.go:385:9 - Unknown word (tcancel) Suggestions: [cancel, trance, tranced, trances, cancer] -internal/net/dialer.go:398:11 - Unknown word (ttcancel) Suggestions: [cancel, trance, tranced, trances] -internal/net/grpc/client.go:204:3 - Unknown word (reconn) Suggestions: [recon, recoin, recons, racon, redon] -internal/net/grpc/client.go:958:2 - Unknown word (sconn) Suggestions: [scone, scorn, conn, Conn, cson] -internal/servers/server/server.go:422:9 - Unknown word (scancel) Suggestions: [spancel, cancel, scarce, sconce, seance] -internal/servers/servers_test.go:168:6 - Unknown word (gerrs) Suggestions: [gers, Gers, gears, ger's, germs] -internal/servers/servers_test.go:173:6 - Unknown word (werrs) Suggestions: [wears, weirs, errs, ewers, wrens] -internal/servers/starter/starter.go:162:7 - Unknown word (hopt) Suggestions: [holt, hoot, hope, hopi, hops] -internal/test/data/vector/gen.go:182:3 - Unknown word (fvec) Suggestions: [fec, face, hevc, f1ac, fave] -Makefile.d/tools.mk:188:62 - Unknown word (aarch) Suggestions: [arch, anarch, Arch, larch, march] -pkg/agent/core/faiss/service/faiss_test.go:124:6 - Unknown word (icnt) Suggestions: [int, INT, cnt, CNT, cine] -pkg/agent/core/faiss/service/faiss.go:92:3 - Unknown word (cimu) Suggestions: [chimu, Chimu, gimu, chum, icmp] -pkg/agent/core/faiss/service/faiss.go:119:3 - Unknown word (cowmu) Suggestions: [colum, coma, comb, come, comm] -pkg/agent/core/ngt/handler/grpc/index_test.go:2251:5 - Unknown word (rreq) Suggestions: [req, freq, reqs, reb, rec] -pkg/agent/core/ngt/handler/grpc/insert_test.go:213:4 - Unknown word (ivec) Suggestions: [idec, ives, iovec, Idec, Ives] -pkg/agent/core/ngt/handler/grpc/object_test.go:1403:6 - Unknown word (testvec) Suggestions: [tested, testee, tester, testes, testbed] -pkg/agent/core/ngt/handler/grpc/upsert.go:261:4 - Unknown word (ures) Suggestions: [rues, ukes, ur's, urbs, urds] -pkg/agent/core/ngt/service/ngt.go:1481:6 - Unknown word (dcnt) Suggestions: [dent, dint, dunt, DENT, cnt] -pkg/agent/core/ngt/service/ngt.go:1884:2 - Unknown word (ovec) Suggestions: [opec, oven, over, OPEC, iovec] -pkg/agent/internal/vqueue/queue.go:79:2 - Unknown word (didx) Suggestions: [dido, didy, Dido, did, dix] -pkg/agent/internal/vqueue/queue.go:88:2 - Unknown word (oidx) Suggestions: [oidc, OIDC, idx, iotx, odic] -pkg/agent/internal/vqueue/queue.go:246:3 - Unknown word (iidx) Suggestions: [idx, idex, idxx, dix, ida] -pkg/gateway/filter/handler/grpc/handler.go:2437:88 - Unknown word (tvec) Suggestions: [tver, Tver, tace, hevc, tael] -pkg/gateway/filter/usecase/vald.go:78:6 - Unknown word (iaddrs) Suggestions: [aiders, addr, caddis, laders, nadirs] -pkg/gateway/filter/usecase/vald.go:118:6 - Unknown word (eaddrs) Suggestions: [eads, ears, eagers, easers, eaters] -pkg/gateway/lb/handler/grpc/handler.go:3355:9 - Unknown word (ecancel) Suggestions: [cancel, emanuel, evangel, ecanceled, Emanuel] -pkg/tools/benchmark/job/service/job.go:306:2 - Unknown word (lres) Suggestions: [lees, lies, lues, lyes, lares] -pkg/tools/benchmark/job/service/job.go:307:2 - Unknown word (sres) Suggestions: [sees, shes, sr's, sues, seres] -pkg/tools/cli/loadtest/assets/large_dataset.go:50:3 - Unknown word (tdim) Suggestions: [trim, tim, Tim, dim, tami] -pkg/tools/cli/loadtest/assets/large_dataset.go:51:3 - Unknown word (qdim) Suggestions: [dim, hdmi, qadi, qaid, qcom] -tests/e2e/operation/stream.go:532:9 - Unknown word (linearsearch) Suggestions: []