diff options
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..3fcf71e --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,56 @@ +--- +output: + sort-results: true + +run: + go: "1.23" + +linters-settings: + goimports: + local-prefixes: www.thenautilus.net/cgit + + gci: + sections: + - standard + - default + - prefix(www.thenautilus.net/cgit) + + misspell: + locale: "UK" + + varnamelen: + ignore-names: + - ok + - w + - r + + wsl: + # sometimes I really have to start a block with a comment! + allow-separated-leading-comment: true + + +linters: + disable: + - ireturn # we should return concrete types, not interfaces, but I + # can't quite figure out how to do it... + - exhaustruct + - forbidigo + - depguard + - mnd + - nonamedreturns + presets: + - style + - bugs + - error + - format + - import + - module + - performance + - unused + + +issues: + exclude: + - 'package should be `\w+_test`' + - 'package comment should not have leading space' + |