Skip to content

Fix all golangci-lint issues across codebase#13

Merged
andrew merged 1 commit intomainfrom
fix-lint-issues
Mar 29, 2026
Merged

Fix all golangci-lint issues across codebase#13
andrew merged 1 commit intomainfrom
fix-lint-issues

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Mar 18, 2026

  • Refactor buildSingleCommand to reduce cognitive complexity (47 -> under 30) by extracting helper methods
  • Convert if-else chains to switch statements in translator.go
  • Extract magic numbers into named constants in validate.go, extractor.go, and example files
  • Fix unused parameters in example code
  • Add nolint:ireturn directives for intentional interface returns in detector API

Refactor buildSingleCommand to reduce cognitive complexity by extracting
helpers. Convert if-else chains to switch statements. Extract magic
numbers into named constants. Fix unused parameters in examples. Add
nolint directives for intentional interface returns in detector API.
@andrew andrew merged commit d0bb5a6 into main Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant