-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
35 lines (35 loc) · 1.09 KB
/
.golangci.yml
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
service:
golangci-lint-version: 1.19.1
run:
skip-files:
- sysl2/sysl/grammar/sysl_lexer.go
- sysl2/sysl/grammar/sysl_parser.go
- sysl2/sysl/grammar/syslparser_base_listener.go
linters:
enable-all: true
linters-settings:
errcheck:
check-blank: true
issues:
exclude-rules:
- path: sysl2/sysl/parse/listener_impl.go
text: "ST1003:" # should not use underscores in Go names
# Allow some existing TODO's
- path: (sysl2/naive/(grammarParser.go|Grammar1_test.go)|sysl2/sysl/parse/parse.go|sysl2/sysl/eval/exprEval.go)
text: 'Line contains TODO/BUG/FIXME: "TODO'
# disable funlen checks on some existing bad code
- path: ".*_test.go"
linters:
- funlen
- path: "sysl2/naive/(grammarParser|sampleGrammars).go"
linters:
- funlen
- path: "sysl2/sysl/eval/(exprEval|ValueUtil).go"
linters:
- funlen
- path: "sysl2/sysl/parse/(listener_impl|parse).go"
linters:
- funlen
- path: "sysl2/sysl/(codegen|datamodelview|visitor|fmtParser|ints_builder|ints_view|seqs|utils).go"
linters:
- funlen