diff --git a/.golangci.yaml b/.golangci.yaml index e49641e..b8021a3 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -2,15 +2,11 @@ linters: enable-all: true disable: - depguard - - dupl - exhaustruct - - goconst + - gochecknoglobals - tenv - varnamelen - - testpackage - wsl - - gochecknoglobals - - paralleltest linters-settings: cyclop: @@ -46,23 +42,11 @@ linters-settings: gosimple: checks: ["all", "-S1008"] - wrapcheck: - ignoreSigRegexps: - - unix.*?\( - - os.*?\( - - filepath.*?\( - nestif: # Minimal complexity of if statements to report. # Default: 5 min-complexity: 6 - gomoddirectives: - # List of allowed `replace` directives. - # Default: [] - replace-allow-list: - - github.com/charmbracelet/bubbletea - paralleltest: ignore-missing-subtests: true @@ -80,8 +64,9 @@ issues: # Exclude some linters from running on tests files. - path: _test\.go linters: - - tparallel - - revive + - err113 - funlen - ireturn - - err113 + - paralleltest + - revive + - tparallel diff --git a/cmd/treeball/util.go b/cmd/treeball/util.go index adcf6cb..fca0dbd 100644 --- a/cmd/treeball/util.go +++ b/cmd/treeball/util.go @@ -52,7 +52,7 @@ type OSWalker struct{} // WalkDir is a wrapper method for the native [filepath.WalkDir] function. func (w OSWalker) WalkDir(root string, fn fs.WalkDirFunc) error { - return filepath.WalkDir(root, fn) + return filepath.WalkDir(root, fn) //nolint:wrapcheck } type fileInfoDirEntry struct {