Skip to content

Fix 30 golangci-lint issues#10

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

Fix 30 golangci-lint issues#10
andrew merged 1 commit intomainfrom
fix/lint-issues

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Mar 18, 2026

Extract helpers to reduce cognitive complexity in affected.go and depsdev/depsdev.go. Add named constants for CVSS thresholds, severity levels, ecosystem strings, and other magic numbers. Convert if-else chains to switch statements. Remove unused parameter from ghsa.convertAdvisories.

Extract helpers to reduce cognitive complexity in affected.go and
depsdev/depsdev.go. Add named constants for CVSS thresholds, severity
levels, ecosystem strings, and other magic numbers. Convert if-else
chains to switch statements. Remove unused parameter from
ghsa.convertAdvisories.
@andrew andrew merged commit 65b21de 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