| # This file is autogenerated! Do not modify manually. | |
| # Generated by regen_golangci_config.py based on golangci/project.yaml template. | |
| version: "2" | |
| # ref: https://golangci-lint.run/usage/configuration/#config-file | |
| linters: | |
| enable: | |
| - copyloopvar | |
| - whitespace | |
| disable: | |
| - errcheck | |
| - errorlint | |
| - govet | |
| - ineffassign | |
| - intrange | |
| - noctx | |
| - staticcheck | |
| - unused | |
| issues: | |
| # Maximum issues count per one linter. Set to 0 to disable. Default is 50. | |
| max-issues-per-linter: 0 | |
| # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. | |
| max-same-issues: 0 | |
| formatters: | |
| enable: | |
| - gci | |
| settings: | |
| # https://golangci-lint.run/usage/linters/#gci | |
| gci: | |
| # Reorder import sections based on how they are ordered in `sections`. | |
| custom-order: true | |
| sections: | |
| # All standard packages. | |
| - standard | |
| # All packages that didn't fit other categories, usually third party. | |
| - default | |
| # All Chromium imports (including luci-go). | |
| - prefix(go.chromium.org) | |
| # Imports from the local package tree. | |
| - prefix(go.chromium.org/luci/logdog) | |
| # All blank (import "_" ...) imports. | |
| - blank | |
| # All dot (import ".' ...") imports. | |
| - dot | |
| exclusions: | |
| generated: lax | |
| paths: | |
| - third_party$ | |
| - builtin$ | |
| - examples$ |