Skip to content

setup revive: cannot configure rule: "argument-limit": invalid value passed as argument number to the "argument-limit" rule #5683

Answered by ldez
Integralist asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

This is a side effect of JSON parsing, I recommend using YAML or TOML.

YAML
formatters:
  enable:
    - goimports
    - gofumpt
    - golines
  exclusions:
    generated: lax
    paths:
      - third_party$
      - builtin$
      - examples$
issues:
  max-issues-per-linter: 0
  max-same-issues: 0
linters:
  enable:
    - asasalint
    - asciicheck
    - bidichk
    - bodyclose
    - canonicalheader
    - containedctx
    - contextcheck
    - copyloopvar
    - decorder
    - dogsled
    - dupl
    - dupword
    - durationcheck
    - errchkjson
    - errname
    - errorlint
    - exhaustive
    - exhaustruct
    - exptostd
    - fatcontext
    - forcetypeassert
    - gocheckcompiler…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants