Files
ent/.golangci.yml
Alex Snast 2fc6b276ee entc: adding template type option to --template flag (#488)
* entc: adding template type option to --template flag

Signed-off-by: Alex Snast <alexsn@fb.com>

* golangci: update funlen config

* cmd/entc: remove timestamp from logging

Co-authored-by: Ariel Mashraki <ariel@mashraki.co.il>
2020-05-12 12:19:14 +03:00

71 lines
1.3 KiB
YAML

run:
timeout: 2m
linters-settings:
errcheck:
ignore: fmt:.*,Read|Write|Close|Exec,io:Copy
dupl:
threshold: 100
funlen:
lines: 110
statements: 80
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- funlen
- gocritic
- gofmt
- gosec
- gosimple
- govet
- ineffassign
- interfacer
- misspell
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
- funlen
- 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
linters:
- dupl
- gosec
- path: entc/load/load.go
text: "packages.LoadSyntax is deprecated"
linters:
- staticcheck
- text: "Expect WriteFile permissions to be 0600 or less"
linters:
- gosec