1. run:
    
  2.   tests: true
    
  3.   skip-dirs:
    
  4.     - _examples
    
  5. 
    
  6. output:
    
  7.   print-issued-lines: false
    
  8. 
    
  9. linters:
    
  10.   enable-all: true
    
  11.   disable:
    
  12.     - maligned
    
  13.     - megacheck
    
  14.     - lll
    
  15.     - gocyclo
    
  16.     - dupl
    
  17.     - gochecknoglobals
    
  18.     - funlen
    
  19.     - godox
    
  20.     - wsl
    
  21.     - gomnd
    
  22.     - gocognit
    
  23.     - goerr113
    
  24.     - nolintlint
    
  25.     - testpackage
    
  26.     - godot
    
  27.     - nestif
    
  28.     - paralleltest
    
  29.     - nlreturn
    
  30.     - cyclop
    
  31.     - exhaustivestruct
    
  32.     - gci
    
  33.     - gofumpt
    
  34.     - errorlint
    
  35.     - exhaustive
    
  36.     - ifshort
    
  37.     - wrapcheck
    
  38.     - stylecheck
    
  39.     - thelper
    
  40.     - nonamedreturns
    
  41.     - revive
    
  42.     - dupword
    
  43.     - exhaustruct
    
  44.     - varnamelen
    
  45.     - forcetypeassert
    
  46.     - ireturn
    
  47.     - maintidx
    
  48.     - govet
    
  49.     - nosnakecase
    
  50.     - testableexamples
    
  51.     - musttag
    
  52.     - depguard
    
  53.     - goconst
    
  54. 
    
  55. linters-settings:
    
  56.   govet:
    
  57.     check-shadowing: true
    
  58.   gocyclo:
    
  59.     min-complexity: 10
    
  60.   dupl:
    
  61.     threshold: 100
    
  62.   goconst:
    
  63.     min-len: 8
    
  64.     min-occurrences: 3
    
  65.   forbidigo:
    
  66.     #forbid:
    
  67.     #  - (Must)?NewLexer$
    
  68.     exclude_godoc_examples: false
    
  69. 
    
  70. 
    
  71. issues:
    
  72.   max-per-linter: 0
    
  73.   max-same: 0
    
  74.   exclude-use-default: false
    
  75.   exclude:
    
  76.     # Captured by errcheck.
    
  77.     - '^(G104|G204):'
    
  78.     # Very commonly not checked.
    
  79.     - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
    
  80.     - 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
    
  81.     - 'composite literal uses unkeyed fields'
    
  82.     - 'declaration of "err" shadows declaration'
    
  83.     - 'should not use dot imports'
    
  84.     - 'Potential file inclusion via variable'
    
  85.     - 'should have comment or be unexported'
    
  86.     - 'comment on exported var .* should be of the form'
    
  87.     - 'at least one file in a package should have a package comment'
    
  88.     - 'string literal contains the Unicode'
    
  89.     - 'methods on the same type should have the same receiver name'
    
  90.     - '_TokenType_name should be _TokenTypeName'
    
  91.     - '`_TokenType_map` should be `_TokenTypeMap`'
    
  92.     - 'rewrite if-else to switch statement'