Closed
Description
Is your feature request related to a problem? Please describe.
currently there are not linters for:
- CLI help should be capitalized
- log messages should not be capitalized
- import aliases should be have a consistent pattern
Describe the solution you'd like
I would like to suggest Adding three rules to golangci-lint.
The first two linters are clear, but for the third one there is a rule we use at projectcontour.
So the rules for import alias would be:
consider import path: github.com/projectcontour/x/y/z/v*
- the alias name should be subset of x[optional]_y[optional]_z[optional]_v* where optional means it can be present or not.
- one of x or y or z must be present in alias name.
- If version exists in path, must be specified.