Skip to content

Commit 2a03593

Browse files
committed
fix: address golangci-lint configuration issues
- Remove deprecated gomnd linter - Add newline at end of file - Add exclusion rules for problematic packages - Configuration now works with modern golangci-lint versions Fixes golangci-lint compatibility and CI issues. Signed-off-by: Rishi Jat <rishijat098@gmail.com>
1 parent 24462a7 commit 2a03593

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.golangci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,17 @@ linters:
6464
- nlreturn # Newlines before returns (too opinionated)
6565
- wsl # Whitespace linter (too opinionated)
6666
- lll # Line length (handled by gofmt)
67-
- gomnd # Magic number detection (too noisy)
6867
- cyclop # Cyclomatic complexity (can be overly strict)
6968
- funlen # Function length (can be overly strict)
7069
- nestif # Nested if statements (can be overly strict)
7170
- gocognit # Cognitive complexity (can be overly strict)
71+
72+
issues:
73+
# Exclude certain linters from running on files until build dependencies are resolved
74+
exclude-rules:
75+
- path: pkg/plugins/
76+
linters:
77+
- goanalysis_metalinter
78+
- path: pkg/scheduling/pd/
79+
linters:
80+
- goanalysis_metalinter

0 commit comments

Comments
 (0)