Skip to content

Sane default for golanglint-ci  #48

Open
@haani-niyaz

Description

@haani-niyaz

As per https://golangci-lint.run/usage/quick-start/ golanglint-ci enables a limited set of defaults. The disabled list contains some useful linters that perhaps should be enabled as it provides greater linting coverage. IMO some examples:

These could still be perceived as subjective so some consideration must be given to what is objectively useful. It is also best to consider adding these at the start of the project rather than midway as a custom/disparate styles may have proliferated through the code base and fixing the linting issues become cumbersome.

Acceptance Criteria

  • Assess linters that would be highly beneficial
  • Options to disable certain rules should exist (if deemed not applicable)
  • Add .golangci.yml file with enabled linters
  • Update docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions