Skip to content

Conversation

@moonD4rk
Copy link
Owner

add those linters

linters:
  enable:
    - 'asciicheck'
    - 'deadcode'
    - 'depguard'
    - 'dogsled'
    - 'errorlint'
    - 'exportloopref'
    - 'gofmt'
    - 'goheader'
    - 'goimports'
    - 'gomodguard'
    - 'goprintffuncname'
    - 'gosec'
    - 'govet'
    - 'ineffassign'
    - 'makezero'
    - 'misspell'
    - 'paralleltest'
    - 'prealloc'
    - 'predeclared'
    - 'revive'
    - 'typecheck'
    - 'unconvert'
    - 'varcheck'
    - 'whitespace'

also exclude some rulers

issues:
  exclude-use-default: false
  exclude:
    - should have a package comment
    - should have comment
    # G101: Potential hardcoded credentials
    - G101
    # G103: Use of unsafe calls should be audited
    - G103
    # G304: Potential file inclusion via variable
    - G304
    # G404, G401, G502, G505: weak cryptographic list
    - G401
    - G404
    - G502
    - G505
  exclude-rules:
    - path: internal/browser/browser\.go
      linters:
        - 'deadcode'
        - 'varcheck'
        - 'unused'

@moonD4rk moonD4rk changed the title refactoring: formatting code used to pass golangci-lint rules refactor: formatting code used to pass golangci-lint rules Aug 14, 2022
@moonD4rk moonD4rk merged commit ab6ca5a into master Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants