summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-01 22:41:34 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-01 22:42:26 -0700
commit64d3e13455a5f4e08978c79818379065cc9d2e61 (patch)
treecf6324a6c1ca797e72c81763af7030dc19bd046f
parent162636379372d081ee91dd7bd003f2f215e1a856 (diff)
lint: Set exclude-use-default=false
-rw-r--r--.golangci.yml11
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]