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

.golangci.yml 1.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # This file contains all available configuration options
  2. # with their default values.
  3. # options for analysis running
  4. run:
  5. # default concurrency is a available CPU number
  6. concurrency: 4
  7. # timeout for analysis, e.g. 30s, 5m, default is 1m
  8. timeout: 10m
  9. # exit code when at least one issue was found, default is 1
  10. issues-exit-code: 1
  11. # which dirs to skip: issues from them won't be reported;
  12. # can use regexp here: generated.*, regexp is applied on full path;
  13. # default value is empty list, but default dirs are skipped independently
  14. # from this option's value (see skip-dirs-use-default).
  15. # "/" will be replaced by current OS file path separator to properly work
  16. # on Windows.
  17. skip-dirs:
  18. - vendor
  19. - fake
  20. - externalversions
  21. # output configuration options
  22. output:
  23. # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
  24. format: colored-line-number
  25. # print lines of code with issue, default is true
  26. print-issued-lines: true
  27. # print linter name in the end of issue text, default is true
  28. print-linter-name: true
  29. # make issues output unique by line, default is true
  30. uniq-by-line: true
  31. linters-settings:
  32. misspell:
  33. ignore-words:
  34. - mosquitto
  35. linters:
  36. disable-all: true
  37. enable:
  38. - goconst
  39. - gofmt
  40. - golint
  41. - gosimple
  42. - govet
  43. - misspell
  44. - whitespace