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
