Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: formatting code used to pass golangci-lint rules #159

Merged
merged 7 commits into from
Aug 14, 2022
Merged

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.

1 participant