~mna/snow unlisted

snow/.golangci.toml -rw-r--r-- 2.6 KiB
424066c5Martin Angers doc: v0.0.5 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[linters]
  disable-all = true
  enable = [
    "deadcode",
    "errcheck",
    "gochecknoinits",
    "gochecknoglobals",
    "gofmt",
    "golint",
    "gosec",
    "gosimple",
    "govet",
    "ineffassign",
    "misspell",
    "nakedret",
    "prealloc",
    "staticcheck",
    "structcheck",
    "typecheck",
    "unconvert",
    "unparam",
    #"unused",
    "varcheck",
  ]

[issues]
  # regexps of issue texts to exclude
  # NOTE: using this instead of [[issues.exclude-rules]] as SpaceVim respects those
  # exclusions, but does not respect the specific exclude-rules.
  exclude = [
    # cmd/*: package-level vars for binaries, assigned with linker flags
    "`version` is a global variable",
    "`buildDate` is a global variable",
    "`shortUsage` is a global variable",
    "`longUsage` is a global variable",
    "`commands` is a global variable",

    # pkg/codegen
    "`basicIdentsToGo` is a global variable",
    "`goKeywords` is a global variable",
    "`tokenToGoToken` is a global variable",
    "`testUpdateCodegenTests` is a global variable",

    # pkg/internal/filetest
    "`testUpdateAllTests` is a global variable",

    # pkg/parser
    "`declStart` is a global variable",
    "`stmtStart` is a global variable",
    "`testUpdateParserTests` is a global variable",

    # pkg/scanner
    "`PrintError` is a global variable",
    "`testUpdateScannerTests` is a global variable",

    # pkg/semantic
    "`basicKindSizes` is a global variable",
    "`selectorTypeContext` is a global variable",

    # pkg/token
    "`NewFileSet` is a global variable",
    "`tokens` is a global variable",
    "`keywords` is a global variable",
    "`operators` is a global variable",

    # pkg/typecheck
    "`basicKindStrings` is a global variable",
    "`binaryOpsTable` is a global variable",
    "`boolsCompare` is a global variable",
    "`floatsCompare` is a global variable",
    "`floatsWidening` is a global variable",
    "`identToBasicKind` is a global variable",
    "`intsCompare` is a global variable",
    "`intsWidening` is a global variable",
    "`nodeType` is a global variable",
    "`objectType` is a global variable",
    "`stringsCompare` is a global variable",
    "`stringsWidening` is a global variable",
    "`testUpdateCheckTests` is a global variable",
    "`testUpdateScopesTests` is a global variable",
    "`testUpdateStaticTests` is a global variable",
    "`testUpdateTypesTests` is a global variable",
    "`typeContextStrings` is a global variable",
    "`typeContextValues` is a global variable",
    "`typeType` is a global variable",
    "`unaryOpsTable` is a global variable",
    "`universeIdents` is a global variable",
  ]