Skip to content

linters-settings config not applying #3469

Closed Answered by ldez
geoff-maddock asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

YAML is based on indentation, the section linters-settings must be at the first level.

https://golangci-lint.run/usage/configuration/

linters:
    # disable-all: true
    # Uncomment to enable all linters
    # enable-all: true
    # disabling linters that are abandoned or replaced with better versions
    disable:
        - golint
        - deadcode
        - exhaustivestruct
        - ifshort
        - interfacer
        - maligned
        - nosnakecase 
        - scopelint
        - structcheck
        - varcheck
    # additional non-default linters that we want to use
    enable:
        - gochecknoglobals
        - gocritic
        - goconst
        - godox
        - goerr113

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants