Disable funlen linter on some bad code while keeping it active for new code
@@ -7,8 +7,6 @@ run:
- sysl2/sysl/grammar/syslparser_base_listener.go
linters:
enable-all: true
- disable:
- - funlen
linters-settings:
errcheck:
check-blank: true
@@ -17,11 +15,21 @@ issues:
- 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
- text: 'Line contains TODO/BUG/FIXME: "TODO'
- - path: sysl2/naive/Grammar1_test.go
- text: 'Line contains TODO/BUG/FIXME: "TODO'
- - path: sysl2/sysl/parse/parse.go
- text: 'Line contains TODO/BUG/FIXME: "TODO'
- - path: sysl2/sysl/eval/exprEval.go
+ - 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
