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.

46 lines
1.3 KiB

  1. run:
  2. # timeout for analysis
  3. deadline: 4m
  4. # Linting uses a lot of memory. Keep it under control by only running a single
  5. # worker.
  6. concurrency: 1
  7. linters-settings:
  8. gofmt:
  9. # simplify code: gofmt with `-s` option, true by default
  10. simplify: true
  11. linters:
  12. enable-all: true
  13. disable:
  14. # Global variables are used in many places throughout the code base.
  15. - gochecknoglobals
  16. # Some lines are over 80 characters on purpose and we don't want to make them
  17. # even longer by marking them as 'nolint'.
  18. - lll
  19. # We don't care (enough) about misaligned structs to lint that.
  20. - maligned
  21. # We have long functions, especially in tests. Moving or renaming those would
  22. # trigger funlen problems that we may not want to solve at that time.
  23. - funlen
  24. # Disable for now as we haven't yet tuned the sensitivity to our codebase
  25. # yet. Enabling by default for example, would also force new contributors to
  26. # potentially extensively refactor code, when they want to smaller change to
  27. # land.
  28. - gocyclo
  29. # Instances of table driven tests that don't pre-allocate shouldn't trigger
  30. # the linter.
  31. - prealloc
  32. # Init functions are used by loggers throughout the codebase.
  33. - gochecknoinits
  34. issues:
  35. # Only show newly introduced problems.
  36. new-from-rev: 36838cf7f464cf73b0201798063b2caffeae4250