Files
ent/.golangci.yml
Alex Snast ce2bc07c1a ent/circleci: adding linter tests
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/80

Reviewed By: a8m

Differential Revision: D17837182

fbshipit-source-id: 9fb539fd6cebc064d2d2804bd52e0fbf413cfc93
2019-10-10 04:45:07 -07:00

58 lines
1.0 KiB
YAML

run:
tests: true
deadline: 2m
linters-settings:
errcheck:
ignore: fmt:.*,Read|Write|Close|Exec,io:Copy
dupl:
threshold: 100
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dupl
- errcheck
- gocritic
- gofmt
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- misspell
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
- gosec
- linters:
- unused
source: ent.Schema
- path: entc/integration/ent/schema/card.go
text: "`internal` is unused"
- path: dialect/sql/builder.go
text: "can be `Querier`"
linters:
- interfacer
- path: dialect/sql/builder.go
text: "SQL string concatenation"
linters:
- gosec
- path: dialect/sql/schema/migrate.go
text: "weak cryptographic primitive"
linters:
- gosec