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 "revive" linter #1729

Merged
merged 5 commits into from
Feb 14, 2021
Merged

Add "revive" linter #1729

merged 5 commits into from
Feb 14, 2021

Conversation

sspaink
Copy link
Contributor

@sspaink sspaink commented Feb 10, 2021

Closes #238

This PR adds support for the revive linter. Tested by running T=revive.go make test_linters, added a simple example config but all the configuration settings in revive have been implemented.

I assume having this linter disabled by default is what would be wanted, not sure what it takes to be enabled by default.

Just let me know if there is anything you would like me to change, thanks!

@boring-cyborg
Copy link

boring-cyborg bot commented Feb 10, 2021

Hey, thank you for opening your first Pull Request !

@CLAassistant
Copy link

CLAassistant commented Feb 10, 2021

CLA assistant check
All committers have signed the CLA.

@ldez ldez added the linter: new Support new linter label Feb 11, 2021
@ldez
Copy link
Member

ldez commented Feb 11, 2021

Hello,

could you rebase your PR? thank you

Sebastian Spaink added 2 commits February 11, 2021 10:06
Assume disabled by default
pkg/golinters/revive.go Outdated Show resolved Hide resolved
pkg/golinters/revive.go Outdated Show resolved Hide resolved
pkg/golinters/revive.go Outdated Show resolved Hide resolved
test/testdata/configs/revive.yml Outdated Show resolved Hide resolved
pkg/golinters/revive.go Outdated Show resolved Hide resolved
pkg/golinters/revive.go Outdated Show resolved Hide resolved
pkg/golinters/revive.go Outdated Show resolved Hide resolved
pkg/golinters/revive.go Outdated Show resolved Hide resolved
pkg/golinters/revive.go Outdated Show resolved Hide resolved
pkg/golinters/revive.go Outdated Show resolved Hide resolved
@ldez ldez changed the title Add "revive" linter as a plugin Add "revive" linter Feb 14, 2021
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ldez ldez merged commit 35b6f35 into golangci:master Feb 14, 2021
@golangci-automator
Copy link

Hey, @sspaink — we just merged your PR to golangci-lint! 🔥🚀

golangci-lint is built by awesome people like you. Let us say “thanks”: we just invited you to join the GolangCI organization on GitHub.
This will add you to our team of maintainers. Accept the invite by visiting this link.

By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.
More information about contributing is here.

Thanks again!

ashanbrown pushed a commit to ashanbrown/golangci-lint that referenced this pull request Feb 20, 2021
@ldez ldez added this to the v1.37 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linter: new Support new linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support revive
3 participants