diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 17:45:11 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 20:03:30 -0700 |
commit | 45f676e42c2e136e7d337f15762a50da2ae8c633 (patch) | |
tree | d7ddab76bfb4aab7143d7b1d87b7dc33dd6323bf | |
parent | bb0c30f96220075f7a6cb192f799fa8a5594f5ea (diff) |
lint: Tighten up the nolintlint configuration
-rw-r--r-- | .golangci.yml | 3 | ||||
-rw-r--r-- | cmd/btrfs-rec/main.go | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml index 526eaea..d9ba0f6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -70,6 +70,9 @@ linters: linters-settings: gofmt: simplify: true + nolintlint: + require-explanation: true + require-specific: true issues: max-issues-per-linter: 0 max-same-issues: 0 diff --git a/cmd/btrfs-rec/main.go b/cmd/btrfs-rec/main.go index 13ae886..3f662bb 100644 --- a/cmd/btrfs-rec/main.go +++ b/cmd/btrfs-rec/main.go @@ -1,4 +1,4 @@ -// Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com> +// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com> // // SPDX-License-Identifier: GPL-2.0-or-later @@ -43,7 +43,7 @@ func main() { SilenceErrors: true, // main() will handle this after .ExecuteContext() returns SilenceUsage: true, // our FlagErrorFunc will handle it - CompletionOptions: cobra.CompletionOptions{ //nolint:exhaustivestruct + CompletionOptions: cobra.CompletionOptions{ DisableDefaultCmd: true, }, } |