Files
ent/.golangci.yml
Ariel Mashraki 47972774c5 go: bump go/packages version ci to 1.18+1.19 (#2832)
* bumped pkg golang.org/x/tools version to address issue #2826

* .github: update go1.19 in go generate

Co-authored-by: Ankit Patial <ankitpatial@gmail.com>
2022-08-05 11:17:53 +03:00

76 lines
1.4 KiB
YAML

run:
go: '1.19'
timeout: 5m
linters-settings:
errcheck:
ignore: fmt:.*,Read|Write|Close|Exec,io:Copy
dupl:
threshold: 100
funlen:
lines: 115
statements: 115
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; Enable back when upgrading CI to Go 1.20.
- goheader
- gosec
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
- funlen
- gosec
- gocritic
- linters:
- unused
source: ent.Schema
- path: dialect/sql/schema
linters:
- dupl
- gosec
- text: "Expect WriteFile permissions to be 0600 or less"
linters:
- gosec
- path: privacy/privacy.go
linters:
- stylecheck
- path: entc/load/schema.go
linters:
- staticcheck
- path: entc/gen/graph.go
linters:
- gocritic
- path: \.go
linters:
- staticcheck
text: SA1019