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

Enable all BUT fieldalignment govet analyzer #612

Merged
merged 2 commits into from
Jan 26, 2022

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Jan 26, 2022

The fieldanalyzer linter does not yet offer a way (afaik) to disable the "pointer bytes" diagnostic, so we're still relying on the deprecated maligned linter for struct field size ordering.

We enable all other analyzers which are not otherwise explicitly excluded.

fixes GH-611

@atc0005 atc0005 added enhancement New feature or request config linting labels Jan 26, 2022
@atc0005 atc0005 added this to the Next Maintenance Release milestone Jan 26, 2022
@atc0005 atc0005 self-assigned this Jan 26, 2022
@atc0005 atc0005 force-pushed the i611-enable-additional-govet-analyzers branch from ed09a48 to 2d00c0f Compare January 26, 2022 12:45
Retain same overall behavior, but explicitly disable the
`fieldalignment` analyzer for now until we are able to
retain the "struct size" diagnostic, but drop the "pointer bytes"
diagnostic.

refs GH-611
The `fieldanalyzer` linter does not yet offer a way (afaik) to
disable the "pointer bytes" diagnostic, so we're still relying on
the deprecated `maligned` linter for struct field size ordering.

We enable all other analzers which are not otherwise explicitly
excluded.

refs GH-611
@atc0005 atc0005 force-pushed the i611-enable-additional-govet-analyzers branch from 2d00c0f to 7e5ed2e Compare January 26, 2022 12:46
@atc0005
Copy link
Owner Author

atc0005 commented Jan 26, 2022

Ignoring linting errors (they're expected) triggered by linter config changes introduced by this PR. Will fix them in a follow-up PR.

@atc0005 atc0005 merged commit 2e5b8ff into master Jan 26, 2022
@atc0005 atc0005 deleted the i611-enable-additional-govet-analyzers branch January 26, 2022 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config enhancement New feature or request linting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable additional govet linter analyzers
1 participant