~seirdy/moac

ref: v0.3.2 moac/.golangci.toml -rw-r--r-- 2.0 KiB
91b75711Rohan Kumar Doc: Add FAQs to the README 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[run]
deadline = "1m"
skip-files = []

[linters]
disable-all=true
enable = [
	"asciicheck",
	"bodyclose",
	"cyclop",
	"deadcode",
	"depguard",
	"dogsled",
	"dupl",
	"durationcheck",
	"errcheck",
	"errname",
	"errorlint",
	"exhaustive",
	"exhaustivestruct",
	"exportloopref",
	"forbidigo",
	"forcetypeassert",
	"funlen",
	"gci",
	"gochecknoglobals",
	"gochecknoinits",
	"gocognit",
	"goconst",
	"gocritic",
	"gocyclo",
	"godot",
	"godox",
	"gofmt",
	"gofumpt",
	"goheader",
	"goimports",
	"gomnd",
	"gomoddirectives",
	"gomodguard",
	"goprintffuncname",
	"gosec",
	"gosimple",
	"govet",
	"ifshort",
	"importas",
	"ineffassign",
	"lll",
	"makezero",
	"misspell",
	"nakedret",
	"nestif",
	"nilerr",
	"nlreturn",
	"noctx",
	"nolintlint",
	"prealloc",
	"predeclared",
	"promlinter",
	"revive",
	"rowserrcheck",
	"sqlclosecheck",
	"staticcheck",
	"structcheck",
	"stylecheck",
	"tagliatelle",
	"testpackage",
	"thelper",
	"tparallel",
	"typecheck",
	"unconvert",
	"unparam",
	"unused",
	"varcheck",
	"wastedassign",
	"whitespace",
	"wrapcheck",
	"wsl",
	"goerr113",
	# "golint",       # deprecated
	# "interfacer",   # deprecated
	# "maligned",     # deprecated
	# "paralleltest", # not applicable, tests are fast enough already
	# "scopelint",    # deprecated
]

[linters-settings]

	[linters-settings.cyclop]
		max-complexity = 13
	[linters-settings.gomnd.settings.mnd]
		ignored-numbers = [2, 10, 32, 64]

[issues]
	exclude-use-default = false
	[[issues.exclude-rules]]
		path = "cmd/moac/main.go"
		linters = ["forbidigo"]
		text = "use of `fmt.Print(ln|f)?` forbidden by pattern"
	[[issues.exclude-rules]]
		path = "cmd/moac-pwgen/main.go"
		linters = ["forbidigo"]
		text = "use of `fmt.Print(ln|f)?` forbidden by pattern"
	[[issues.exclude-rules]]
		path = "givens_test.go"
		# we're testing what happens when we leave vals uninitialized
		linters = ["exhaustivestruct"]
	[[issues.exclude-rules]]
		path = "pwgen/pwgen_test.go"
		# for now, use errors for specific wrapped tests to describe failures.
		# might change this in the future
		linters = ["goerr113"]