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

Disable golangci-lint's default excluded issues #73

Merged

Conversation

svengreb
Copy link
Owner

Resolves #72

By default golangci-lint [2] excludes specific issues (matches) that are
known to be "annoying", but this also included issues explicitly enabled
by this template, e.g. the revive [3] rule to check that exported
function and methods always have a comment [4].
To prevent these issues to be found the default excludes have been
disabled through the `issues.exclude-use-default` configuration field.

[1]: https://golangci-lint.run/usage/configuration/#config-file
[2]: https://golangci-lint.run
[3]: https://github.com/mgechev/revive
[4]: https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#exported

GH-72
@svengreb svengreb added this to the Next milestone Nov 21, 2021
@svengreb svengreb self-assigned this Nov 21, 2021
@svengreb svengreb merged commit c099c6e into main Nov 21, 2021
@svengreb svengreb deleted the improvement/gh-72-disable-golangci-lint-default-excluded-issues branch November 21, 2021 11:15
@svengreb svengreb removed their assignment Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable golangci-lint's default excluded issues
1 participant