Conditionally enable fieldalignment linter in govet #2325
Labels
area/build-tools
Development tooling. I.e. pretty much everything in the `build` directory.
kind/cleanup
Refactoring code, fixing up documentation, etc
Milestone
Is your feature request related to a problem? Please describe.
In #2323 we disabled the maligned linter as it has been deprecated. The replacement is govet 'fieldalignment' but turning that on for the whole codebase produces a number of errors.
Describe the solution you'd like
As I mentioned in in #2323 (review) it would be nice to enable the checks on parts of the code base (for structures where we care about memory compaction) but leave some structs (like config structs that are only created once) organized in a more human readable fashion rather than optimizing them for memory usage.
Describe alternatives you've considered
Leave the check disabled.
The text was updated successfully, but these errors were encountered: