version: "2" linters: default: all disable: - wsl # deprecated since v2.2.0 - musttag # is broken, it complains that things should be tagged when they are tagged # Style I don't like. - lll - nlreturn - noinlineerr - nonamedreturns - varnamelen - wsl_v5 # Complexity. - cyclop # Functional. - err113 - exhaustruct # TODO? - mnd - noctx - wrapcheck settings: depguard: rules: main: allow: - $gostd - git.lukeshu.com/dashboard gosmopolitan: allow-time-local: true revive: enable-all-rules: true rules: - name: exported # "{thing} should have comment or be unexported" disabled: true - name: package-comments disabled: true - name: var-naming disabled: true - name: line-length-limit disabled: true - name: add-constant disabled: true arguments: - allow-ints: "0,1" - name: cognitive-complexity disabled: true - name: cyclomatic disabled: true formatters: enable: - gci - gofmt - gofumpt settings: gci: sections: - standard - default - localmodule gofmt: simplify: true issues: max-issues-per-linter: 0 max-same-issues: 0 uniq-by-line: false