github.com/kastenhq/syft@v0.0.0-20230821225854-0710af25cdbe/.golangci.yaml (about) 1 issues: 2 max-same-issues: 25 3 4 # TODO: enable this when we have coverage on docstring comments 5 # # The list of ids of default excludes to include or disable. 6 # include: 7 # - EXC0002 # disable excluding of issues about comments from golint 8 9 linters: 10 # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint 11 disable-all: true 12 enable: 13 - asciicheck 14 - bodyclose 15 - dogsled 16 - dupl 17 - errcheck 18 - exportloopref 19 - funlen 20 - gocognit 21 - goconst 22 - gocritic 23 - gocyclo 24 - gofmt 25 - goimports 26 - goprintffuncname 27 - gosec 28 - gosimple 29 - govet 30 - ineffassign 31 - misspell 32 - nakedret 33 - revive 34 - staticcheck 35 - stylecheck 36 - typecheck 37 - unconvert 38 - unparam 39 - unused 40 - whitespace 41 42 linters-settings: 43 funlen: 44 # Checks the number of lines in a function. 45 # If lower than 0, disable the check. 46 # Default: 60 47 lines: 70 48 # Checks the number of statements in a function. 49 # If lower than 0, disable the check. 50 # Default: 40 51 statements: 50 52 output: 53 uniq-by-line: false 54 run: 55 timeout: 10m 56 57 # do not enable... 58 # - deadcode # The owner seems to have abandoned the linter. Replaced by "unused". 59 # - depguard # We don't have a configuration for this yet 60 # - goprintffuncname # does not catch all cases and there are exceptions 61 # - nakedret # does not catch all cases and should not fail a build 62 # - gochecknoglobals 63 # - gochecknoinits # this is too aggressive 64 # - rowserrcheck disabled per generics https://github.com/golangci/golangci-lint/issues/2649 65 # - godot 66 # - godox 67 # - goerr113 68 # - goimports # we're using gosimports now instead to account for extra whitespaces (see https://github.com/golang/go/issues/20818) 69 # - golint # deprecated 70 # - gomnd # this is too aggressive 71 # - interfacer # this is a good idea, but is no longer supported and is prone to false positives 72 # - lll # without a way to specify per-line exception cases, this is not usable 73 # - maligned # this is an excellent linter, but tricky to optimize and we are not sensitive to memory layout optimizations 74 # - nestif 75 # - nolintlint # as of go1.19 this conflicts with the behavior of gofmt, which is a deal-breaker (lint-fix will still fail when running lint) 76 # - prealloc # following this rule isn't consistently a good idea, as it sometimes forces unnecessary allocations that result in less idiomatic code 77 # - rowserrcheck # not in a repo with sql, so this is not useful 78 # - scopelint # deprecated 79 # - structcheck # The owner seems to have abandoned the linter. Replaced by "unused". 80 # - testpackage 81 # - varcheck # The owner seems to have abandoned the linter. Replaced by "unused". 82 # - wsl # this doens't have an auto-fixer yet and is pretty noisy (https://github.com/bombsimon/wsl/issues/90)