Skip to content

New Linters(import aliases, log messages, cli help commands) #1525

Closed
@Glyphack

Description

@Glyphack

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementstaleNo recent correspondence or work activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions