diff options
author | Daniel Milde <daniel@milde.cz> | 2024-04-30 14:05:21 +0200 |
---|---|---|
committer | Daniel Milde <daniel@milde.cz> | 2024-04-30 14:05:21 +0200 |
commit | 5987685f54f5242716820fa5e9a7c561d832d922 (patch) | |
tree | 175cb39fcccb1b6ba345cb7fb6241fee2d829a23 | |
parent | 4d5d6081a97471d62e58b7681a7e6a55ba705e15 (diff) |
chore: ignore gocyclo
-rw-r--r-- | internal/common/ignore.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/common/ignore.go b/internal/common/ignore.go index 366b059..66d2b4e 100644 --- a/internal/common/ignore.go +++ b/internal/common/ignore.go @@ -100,6 +100,7 @@ func (ui *UI) IsHiddenDir(name, path string) bool { } // CreateIgnoreFunc returns function for detecting if dir should be ignored +// nolint: gocyclo // Why: This function is a switch statement that is not too complex func (ui *UI) CreateIgnoreFunc() ShouldDirBeIgnored { switch { case len(ui.IgnoreDirPaths) > 0 && ui.IgnoreDirPathPatterns == nil && !ui.IgnoreHidden: |