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

Add exclude-rules to golangci-lint settings #475

Merged
merged 1 commit into from
Jul 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,45 @@ linters:
enable:
- prealloc
- ineffassign
- goerr113
- misspell
- errcheck
- gosimple
- staticcheck
- gosec
- gocritic
- unparam
- deadcode
- unconvert
- typecheck
- stylecheck
- exportloopref
fast: false
linters-settings:
goimports:
local-prefixes: github.com/pipe-cd/pipe

run:
timeout: 2m
tests: false
skip-dirs:
- "vendor$"
- "^bazel"
- pkg/app/api/cmd/samplepipedapicli
- pkg/app/api/cmd/samplewebapicli
- pkg/app/api/service/pipedservice/pipedclientfake

issues:
exclude-rules:
- linters:
- gosec
text: "G204: Subprocess launched"
- linters:
- goerr113
text: "err113: do not define dynamic errors"
- linters:
- stylecheck
text: "ST1003: struct field Https"
- linters:
- stylecheck
text: "ST1003: struct field Id"