.golangci.yml 974 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. run:
  2. # do not run on test files yet
  3. tests: false
  4. # all available settings of specific linters
  5. linters-settings:
  6. errcheck:
  7. # report about not checking of errors in type assetions: `a := b.(MyStruct)`;
  8. # default is false: such cases aren't reported by default.
  9. check-type-assertions: false
  10. # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
  11. # default is false: such cases aren't reported by default.
  12. check-blank: false
  13. lll:
  14. line-length: 100
  15. tab-width: 4
  16. prealloc:
  17. simple: false
  18. range-loops: false
  19. for-loops: false
  20. whitespace:
  21. multi-if: false # Enforces newlines (or comments) after every multi-line if statement
  22. multi-func: false # Enforces newlines (or comments) after every multi-line function signature
  23. linters:
  24. enable:
  25. - megacheck
  26. - govet
  27. disable:
  28. - maligned
  29. - prealloc
  30. disable-all: false
  31. presets:
  32. - bugs
  33. - unused
  34. fast: false