You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

  1. run:
  2. tests: true
  3. skip-dirs:
  4. - _examples
  5. output:
  6. print-issued-lines: false
  7. linters:
  8. enable-all: true
  9. disable:
  10. - maligned
  11. - megacheck
  12. - lll
  13. - gocyclo
  14. - dupl
  15. - gochecknoglobals
  16. - funlen
  17. - godox
  18. - wsl
  19. - gomnd
  20. - gocognit
  21. - goerr113
  22. - nolintlint
  23. - testpackage
  24. - godot
  25. - nestif
  26. linters-settings:
  27. govet:
  28. check-shadowing: true
  29. gocyclo:
  30. min-complexity: 10
  31. dupl:
  32. threshold: 100
  33. goconst:
  34. min-len: 8
  35. min-occurrences: 3
  36. issues:
  37. max-per-linter: 0
  38. max-same: 0
  39. exclude-use-default: false
  40. exclude:
  41. # Captured by errcheck.
  42. - '^(G104|G204):'
  43. # Very commonly not checked.
  44. - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
  45. - 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
  46. - 'composite literal uses unkeyed fields'
  47. - 'declaration of "err" shadows declaration'
  48. - 'should not use dot imports'
  49. - 'Potential file inclusion via variable'
  50. - 'should have comment or be unexported'
  51. - 'comment on exported var .* should be of the form'
  52. - 'at least one file in a package should have a package comment'
  53. - 'string literal contains the Unicode'
  54. - 'methods on the same type should have the same receiver name'
  55. - '_TokenType_name should be _TokenTypeName'
  56. - '`_TokenType_map` should be `_TokenTypeMap`'