Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ linters:
enable-all: true
disable:
- depguard
- dupl
- exhaustruct
- goconst
- gochecknoglobals
- tenv
- varnamelen
- testpackage
- wsl
- gochecknoglobals
- paralleltest

linters-settings:
cyclop:
Expand Down Expand Up @@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion cmd/treeball/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down