From 64d3e13455a5f4e08978c79818379065cc9d2e61 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 1 Jan 2023 22:41:34 -0700 Subject: lint: Set exclude-use-default=false --- .golangci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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] -- cgit v1.2.3