-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use golangci-lint action in github #2397
Conversation
golangci-lint run --out-format=tab --new-from-rev "$BASEREV" ./... | ||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | ||
version: v1.43 | ||
only-new-issues: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, glad to see this works now. The reason we didn't use it before was that only-new-issues
didn't work the same as --new-from-rev
so it always showed old issues.
dffbca7
to
809942f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mstoykov Did you assert that it fails in case of not respected rules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nitpick can be a moving comment about the golangci version closer to a version (.golangci.yml
).
But apart from that awesome stuff! 👍
@codebien unfortunately github interfaces no longer shows it - but I had commits which failed. As a side note it not only failed the step but made annotation, which is ... less spammy than comments but also arguably harder to notice so. But yeah it worked. |
No description provided.