Thomas E Lackey
976a97234f
Some checks failed
Pull Request Labeler / triage (push) Successful in 2s
Lint / Run flake8 on python integration tests (push) Failing after 38s
CodeQL / Analyze (go) (push) Failing after 2m7s
Tests / cleanup-runs (push) Has been skipped
Run Gosec / Gosec (push) Failing after 1m31s
Lint / Run golangci-lint (push) Successful in 4m48s
Tests / test-rpc (push) Failing after 4m15s
Tests / sdk_tests (push) Failing after 1m45s
Tests / test-unit-cover (push) Failing after 8m38s
Tests / test-importer (push) Successful in 8m58s
Work around bug https://github.com/golangci/golangci-lint/issues/3906 and https://github.com/cachix/install-nix-action/issues/161 and address other lint/CI issues. Reviewed-on: cerc-io/laconicd#114 Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
run:
|
|
tests: false
|
|
# timeout for analysis, e.g. 30s, 5m, default is 1m
|
|
# timeout: 5m
|
|
|
|
linters:
|
|
enable:
|
|
- bodyclose
|
|
# - depguard # 20231120 disable until https://github.com/golangci/golangci-lint/issues/3906 is released
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- goconst
|
|
- gocritic
|
|
- gofumpt
|
|
# - revive # 20231120 overly sensitive unused detection
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- lll
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- exportloopref
|
|
- staticcheck
|
|
- stylecheck
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- nolintlint
|
|
- asciicheck
|
|
- exportloopref
|
|
- gofumpt
|
|
- gomodguard
|
|
- whitespace
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- gosec
|
|
- linters:
|
|
- lll
|
|
source: "https://"
|
|
max-same-issues: 50
|
|
|
|
linters-settings:
|
|
lll:
|
|
line-length: 150
|
|
dogsled:
|
|
max-blank-identifiers: 3
|
|
golint:
|
|
min-confidence: 0
|
|
maligned:
|
|
suggest-new: true
|
|
misspell:
|
|
locale: US
|
|
nolintlint:
|
|
allow-unused: false
|
|
allow-leading-space: true
|
|
require-explanation: false
|
|
require-specific: false
|
|
gofumpt:
|
|
lang-version: "1.19"
|
|
gomodguard:
|
|
blocked:
|
|
versions: # List of blocked module version constraints
|
|
- https://github.com/etcd-io/etcd: # Blocked module with version constraint
|
|
version: ">= 3.4.10 || ~3.3.23" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons
|
|
reason: "CVE-2020-15114; CVE-2020-15136; CVE-2020-15115" # Reason why the version constraint exists. (Optional)
|
|
- https://github.com/dgrijalva/jwt-go: # Blocked module with version constraint
|
|
version: ">= 4.0.0-preview1" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons
|
|
reason: "CVE-2020-26160" # Reason why the version constraint exists. (Optional)
|