|  | 
|  | 1 | +version: "2" | 
| 1 | 2 | run: | 
| 2 |  | -  # timeout for analysis, e.g. 30s, 5m, default is 1m | 
| 3 |  | -  timeout: 2m | 
| 4 |  | - | 
| 5 |  | -  # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules": | 
| 6 |  | -  # If invoked with -mod=readonly, the go command is disallowed from the implicit | 
| 7 |  | -  # automatic updating of go.mod described above. Instead, it fails when any changes | 
| 8 |  | -  # to go.mod are needed. This setting is most useful to check that go.mod does | 
| 9 |  | -  # not need updates, such as in a continuous integration and testing system. | 
| 10 |  | -  # If invoked with -mod=vendor, the go command assumes that the vendor | 
| 11 |  | -  # directory holds the correct copies of dependencies and ignores | 
| 12 |  | -  # the dependency descriptions in go.mod. | 
| 13 | 3 |   modules-download-mode: readonly | 
| 14 |  | - | 
| 15 | 4 | linters: | 
| 16 | 5 |   enable: | 
| 17 | 6 |     - bodyclose | 
| 18 |  | -    - errcheck | 
| 19 | 7 |     - goconst | 
| 20 |  | -    - gofmt | 
| 21 |  | -    - gosimple | 
| 22 |  | -    - govet | 
| 23 |  | -    - ineffassign | 
| 24 | 8 |     - lll | 
| 25 | 9 |     - misspell | 
| 26 |  | -    - staticcheck | 
| 27 |  | -    - typecheck | 
| 28 | 10 |     - unconvert | 
| 29 | 11 |     - unparam | 
| 30 |  | -    - unused | 
| 31 |  | - | 
| 32 |  | -linters-settings: | 
| 33 |  | -  errcheck: | 
| 34 |  | -    # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`; | 
| 35 |  | -    # default is false: such cases aren't reported by default. | 
| 36 |  | -    check-blank: true | 
| 37 |  | -  govet: | 
| 38 |  | -    enable: | 
| 39 |  | -      - shadow | 
| 40 |  | -  lll: | 
| 41 |  | -    line-length: 120 | 
| 42 |  | -  misspell: | 
| 43 |  | -    locale: US | 
| 44 |  | -  unused: | 
| 45 |  | -    check-exported: false | 
| 46 |  | -  unparam: | 
| 47 |  | -    check-exported: false | 
| 48 |  | - | 
| 49 |  | -issues: | 
| 50 |  | -  # Which dirs to exclude: issues from them won't be reported. | 
| 51 |  | -  # Can use regexp here: `generated.*`, regexp is applied on full path, | 
| 52 |  | -  # including the path prefix if one is set. | 
| 53 |  | -  # Default dirs are skipped independently of this option's value (see exclude-dirs-use-default). | 
| 54 |  | -  # "/" will be replaced by current OS file path separator to properly work on Windows. | 
| 55 |  | -  # Default: [] | 
| 56 |  | -  exclude-dirs: | 
| 57 |  | -    - configs | 
| 58 |  | -  exclude-rules: | 
| 59 |  | -    # SA1029 – Inappropriate key in call to context.WithValue | 
| 60 |  | -    # https://staticcheck.io/docs/checks#SA1029 | 
| 61 |  | -    - linters: | 
| 62 |  | -        - staticcheck | 
| 63 |  | -      text: "SA1029:" | 
|  | 12 | +  settings: | 
|  | 13 | +    errcheck: | 
|  | 14 | +      check-blank: true | 
|  | 15 | +    govet: | 
|  | 16 | +      enable: | 
|  | 17 | +        - shadow | 
|  | 18 | +    lll: | 
|  | 19 | +      line-length: 120 | 
|  | 20 | +    misspell: | 
|  | 21 | +      locale: US | 
|  | 22 | +    unparam: | 
|  | 23 | +      check-exported: false | 
|  | 24 | +  exclusions: | 
|  | 25 | +    generated: lax | 
|  | 26 | +    presets: | 
|  | 27 | +      - comments | 
|  | 28 | +      - common-false-positives | 
|  | 29 | +      - legacy | 
|  | 30 | +      - std-error-handling | 
|  | 31 | +    rules: | 
|  | 32 | +      - linters: | 
|  | 33 | +          - staticcheck | 
|  | 34 | +        text: 'SA1029:' | 
|  | 35 | +    paths: | 
|  | 36 | +      - configs | 
|  | 37 | +      - third_party$ | 
|  | 38 | +      - builtin$ | 
|  | 39 | +      - examples$ | 
|  | 40 | +formatters: | 
|  | 41 | +  enable: | 
|  | 42 | +    - gofmt | 
|  | 43 | +  exclusions: | 
|  | 44 | +    generated: lax | 
|  | 45 | +    paths: | 
|  | 46 | +      - configs | 
|  | 47 | +      - third_party$ | 
|  | 48 | +      - builtin$ | 
|  | 49 | +      - examples$ | 
0 commit comments