Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gocritic linter, fix a bunch of stuff #7377

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

anderseknert
Copy link
Member

@anderseknert anderseknert commented Feb 20, 2025

Brace yourselves! For there are many touched files here. No changes in semantics however.

Spent a long time trying out the various optional rules gocritic provides, and settled for a few of them. There are more I really like but that would take many hours to address across the codebase.

Perhaps others find gocritic too pedantic? If so, we can merge the fixes without enabling the rule.

Copy link

netlify bot commented Feb 21, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit b9e43cc
🔍 Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/67b7c1c356beec0008526957
😎 Deploy Preview https://deploy-preview-7377--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Brace yourselves! For there are many touched files here. No changes
in semantics however.

Spent a long time trying out the various optional rules gocritic
provides, and settled for a few of them. There are more I really
like, but that would take many hours to address across the codebase.

Perhaps others find gocritic too pedantic? If so, we can merge the
fixes without enabling the rule.

Signed-off-by: Anders Eknert <[email protected]>
@anderseknert anderseknert merged commit afb30d3 into open-policy-agent:main Feb 24, 2025
28 checks passed
@anderseknert anderseknert deleted the gocritic branch February 24, 2025 15:28
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.

2 participants