Files
linea-monorepo/prover/.golangci.yml
Håvard Anda Estensen 9713fef2a6 perf(prover): preallocate slices (#119)
* chore(prover): add prealloc linter
* perf(prover): preallocate slices
2024-11-19 10:19:50 +01:00

38 lines
798 B
YAML

linters:
disable-all: true
# @alex: we will need to sort out the linters because they take too much time
# and memory to run practically since we merged go-corset. We shall revise
# our toolset.
enable:
- gofmt
# - staticcheck
- gosec
# - gosimple
# - govet
- ineffassign
- prealloc
run:
issues-exit-code: 1
# List of build tags, all linters use it.
# Default: [].
# build-tags:
issues:
exclude-dirs:
- compressor
- zkevm/arithmetization
exclude:
# Only appears on CI
- '.*printf: non-constant format string in call to.*'
linters-settings:
staticcheck:
checks:
- all
- '-SA1019' # disable the rule against deprecated code
- '-SA1006'
gosec:
excludes:
- G115 # Conversions from int -> uint etc