mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
* first cut at pre-sort command that works on ndjson * finish pre_sort command for CSV and JSON and add test * try fixing golangci-lint * remove some dumb lint checks * more linter disabling * take .golangci.yml from previous repo * go fmt (facepalm) * remove ioutil to fix lint
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
run:
|
|
deadline: 5m
|
|
timeout: 5m
|
|
skip-dirs-use-default: true
|
|
#skip the protobuf generated files
|
|
skip-dirs:
|
|
- pb
|
|
- proto
|
|
skip-files:
|
|
- pql/pql.peg.go
|
|
linters:
|
|
enable:
|
|
- govet
|
|
- gofmt
|
|
- staticcheck
|
|
enable-all: false
|
|
disable-all: true
|
|
|
|
output:
|
|
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
|
|
format: tab
|
|
# print lines of code with issue, default is true
|
|
print-issued-lines: true
|
|
# print linter name in the end of issue text, default is true
|
|
print-linter-name: true
|
|
|
|
linters-settings:
|
|
gofmt:
|
|
simplify: true
|
|
govet:
|
|
# report about shadowed variables
|
|
check-shadowing: true
|
|
|
|
|
|
# settings per analyzer
|
|
settings:
|
|
printf: # analyzer name, run `go tool vet help` to see all analyzers
|
|
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
|
|
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
|
|
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
|
|
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
|
|
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
|
|
|
|
# enable or disable analyzers by name
|
|
# run `go tool vet help` to see all analyzers
|
|
enable:
|
|
- atomicalign
|
|
enable-all: false
|
|
disable:
|
|
- shadow
|
|
disable-all: false
|
|
|
|
|
|
issues:
|
|
exclude-use-default: false
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
exclude:
|
|
- 'declaration of "(err|ctx)" shadows declaration at'
|
|
- 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
|