diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:41:34 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:42:26 -0700 |
commit | 6e1a9fbb1e9a943e04902ed3a4958f6821e39456 (patch) | |
tree | 4f2afbce761eb377ad0b0ab2e4fb2f478ff844f5 /.golangci.yml | |
parent | 5b4d97f34c4fec6268c46ceb951f3a2d85492bd6 (diff) |
lint: Set exclude-use-default=false
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml index d1c1798..6b9a830 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -55,6 +55,9 @@ linters: - varnamelen - wrapcheck linters-settings: + errcheck: + exclude-functions: + - "git.lukeshu.com/btrfs-progs-ng/lib/textui.Fprintf" gci: sections: - standard @@ -74,6 +77,10 @@ linters-settings: gomoddirectives: replace-allow-list: - github.com/jacobsa/fuse + gosec: + excludes: + - G104 # duplicates errcheck + - G304 # this program opens arbitrary files nolintlint: require-explanation: true require-specific: true @@ -83,12 +90,16 @@ linters-settings: checks: - "all" - "-ST1003" # CONST_VAL names for consistency with other btrfs code + - "-ST1000" # TODO: get this to pass + - "-ST1020" # TODO: get this to pass + - "-ST1021" # TODO: get this to pass tagliatelle: case: use-field-name: true rules: json: pascal issues: + exclude-use-default: false exclude-rules: # Ignore false positives that don't actually have any words. - linters: [dupword] |