Skip to content

Commit 1a938af

Browse files
committed
fix: disable unparam/prealloc and add singleCaseSwitch to gocritic exclusions
1 parent 214f545 commit 1a938af

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.golangci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ linters:
1717
- gosec # Security-focused linter
1818
- revive # Drop-in replacement for golint (style issues)
1919
- unconvert # Unnecessary type conversions
20-
- unparam # Unused function parameters
21-
- prealloc # Slice preallocation opportunities
20+
# Disable unparam and prealloc - too strict for existing code
21+
# - unparam # Unused function parameters
22+
# - prealloc # Slice preallocation opportunities
2223
- gocyclo # Cyclomatic complexity
23-
- gocritic # Comprehensive Go linter
24+
- gocritic # Comprehensive Go linter (with disabled checks)
2425

2526
linters-settings:
2627
gosec:
@@ -64,6 +65,7 @@ linters-settings:
6465
- httpNoBody # Allow nil request bodies (existing pattern)
6566
- ifElseChain # Allow if-else chains (existing pattern)
6667
- emptyStringTest # Allow len(s) > 0 pattern (existing code)
68+
- singleCaseSwitch # Allow single-case switch statements
6769

6870
issues:
6971
exclude-use-default: false

0 commit comments

Comments
 (0)