~mna/snow unlisted

ref: df88c582d9748238dda46ee3b0c471278d86d04f snow/.golangci.toml -rw-r--r-- 1.1 KiB
df88c582Martin Angers cmd/snowc: implement basic compiler command 1 year, 2 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
[linters]
  disable-all = true
  enable = [
    "deadcode",
    "errcheck",
    "gochecknoinits",
    "gochecknoglobals",
    "gofmt",
    "golint",
    "gosec",
    "gosimple",
    "govet",
    "ineffassign",
    "interfacer",
    "misspell",
    "nakedret",
    "prealloc",
    "staticcheck",
    "structcheck",
    "typecheck",
    "unconvert",
    "unparam",
    "unused",
    "varcheck",
  ]

[issues]
  # regexps of issue texts to exclude
  exclude = [
    # package-level vars for binaries, assigned with linker flags
    "`version` is a global variable",
    "`buildDate` is a global variable",
    # usage variables for command help, constant-like but built with fmt.Sprintf
    "`shortUsage` is a global variable",
    "`longUsage` is a global variable",
    "`commands` is a global variable",
  ]

[[issues.exclude-rules]]
  # slices of test cases in resp are globals because reused in multiple tests
  path = 'pkg/compiler/token\.go'
  linters = ["gochecknoglobals", "gochecknoinits"]

[[issues.exclude-rules]]
  path = 'pkg/compiler/parser.*\.go'
  linters = ["gochecknoglobals"]