1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2026-06-03 16:35:37 +02:00

cspell lint go code (#3706)

This commit is contained in:
6543
2024-05-24 22:35:04 +02:00
committed by GitHub
parent 4628a97c93
commit 42f2734308
44 changed files with 214 additions and 161 deletions
+55 -8
View File
@@ -1,7 +1,17 @@
{
"version": "0.2",
"language": "en",
"dictionaries": [
// language
"en_us",
// code
"go",
"node",
// package names
"npm"
],
"words": [
"abool",
"BUILDPLATFORM",
"Codeberg",
"Curr",
@@ -21,35 +31,40 @@
"Ionescu",
"Kaniko",
"Keyfunc",
"LASTEXITCODE",
"Laszlo",
"Msgf",
"Netrc",
"PROTOC",
"Pinia",
"Println",
"pwsh",
"Refspec",
"Reviewdog",
"Rydzewski",
"SSHURL",
"TARGETARCH",
"TARGETOS",
"Typeflag",
"Upsert",
"WORKDIR",
"Warnf",
"Weblate",
"Wrapf",
"anbraten",
"apimachinery",
"autoincr",
"autoscaler",
"binutils",
"bitbucketdatacenter",
"bradrydzewski",
"brightbox",
"buildx",
"ccmenu",
"charmbracelet",
"ciphertext",
"compatiblelicenses",
"corepack",
"cpuset",
"creativecommons",
"datacenter",
"desaturate",
@@ -57,11 +72,14 @@
"doublestar",
"envsubst",
"estree",
"errgroup",
"evenodd",
"excalidraw",
"favicons",
"forbidigo",
"fsnotify",
"gitea",
"gocritic",
"golangci",
"gomod",
"gonic",
@@ -73,7 +91,10 @@
"laszlocph",
"logfile",
"loglevel",
"mapstructure",
"markdownlint",
"memswap",
"moby",
"multiarch",
"multierr",
"netdns",
@@ -86,24 +107,37 @@
"ppid",
"prismjs",
"proto",
"protobuf",
"protoc",
"protoimpl",
"protoreflect",
"rawurl",
"regcred",
"repology",
"reslimit",
"riscv",
"rundll32",
"seccomp",
"secprofile",
"securecookie",
"sess",
"shellescape",
"stepbuilder",
"stretchr",
"sublicensable",
"swaggo",
"techknowlogick",
"testdata",
"tink",
"tinycolor",
"tmpfs",
"tmpl",
"tolerations",
"ttlcache",
"typecheck",
"unplugin",
"urfave",
"varchar",
"vite",
"vitejs",
"vueuse",
"waivable",
"windi",
@@ -112,6 +146,7 @@
"xlog",
"xorm",
"xormigrate",
"xyaml",
"zerolog",
"zerologger"
],
@@ -119,6 +154,7 @@
"**/node_modules/**/*",
"*.excalidraw",
"*.svg",
"*_test.go",
".cspell.json",
".git/**/*",
".gitignore",
@@ -130,18 +166,29 @@
"flake.nix",
"go.mod",
"go.sum",
"pipeline/rpc/proto/woodpecker.pb.go",
"pnpm-lock.yaml",
"server/store/datastore/migration/**/*",
"web/components.d.ts",
"web/src/assets/locales/**/*",
"**/fixtures/**",
"**/testdata/**",
// TODO: remove the following
".woodpecker/",
"agent/",
"cli/",
"cmd/",
"docs/",
"pipeline/",
"server/"
],
// Exclude imports, because they are also strings.
"ignoreRegExpList": [
// ignore mulltiline imports
"import\\s*\\((.|[\r\n])*?\\)",
// ignore single line imports
"import\\s*.*\".*?\"",
// ignore go generate directive
"//\\s*go:generate.*",
// ignore nolint directive
"//\\s*nolint:.*",
// ignore docker image names
"\\s*docker\\.io/.*"
],
"enableFiletypes": ["dockercompose"]
}