mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
76 lines
1.5 KiB
YAML
76 lines
1.5 KiB
YAML
run:
|
|
timeout: 3m
|
|
|
|
linters-settings:
|
|
errcheck:
|
|
ignore: fmt:.*,Read|Write|Close|Exec,io:Copy
|
|
dupl:
|
|
threshold: 100
|
|
funlen:
|
|
lines: 100
|
|
statements: 80
|
|
goheader:
|
|
template: |-
|
|
Copyright 2019-present Facebook Inc. All rights reserved.
|
|
This source code is licensed under the Apache 2.0 license found
|
|
in the LICENSE file in the root directory of this source tree.
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- funlen
|
|
- gocritic
|
|
- gofmt
|
|
- goheader
|
|
- 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
|
|
- text: "Expect WriteFile permissions to be 0600 or less"
|
|
linters:
|
|
- gosec
|
|
- path: privacy/privacy.go
|
|
linters:
|
|
- stylecheck
|