1 Debian patch touch this file
| 1 | version: "2" |
| 2 | |
| 3 | run: |
| 4 | timeout: 5m |
| 5 | |
| 6 | linters: |
| 7 | exclusions: |
| 8 | presets: |
| 9 | - std-error-handling |
| 10 | enable: |
| 11 | - gosec # Detects security problems. |
| 12 | # Keep all extras disabled for now to focus on the integer overflow problem. |
| 13 | # TODO: enable these and other good linters |
| •14 | # - dogsled # Detects assignments with too many blank identifiers. |
| 15 | # - errcheck |
| 16 | # - errchkjson # Detects unsupported types passed to json encoding functions and reports if checks for the returned error can be omitted. |
| 17 | # - exhaustive # Detects missing options in enum switch statements. |
| 18 | # - gocyclo |
| 19 | # - govet |
| 20 | # - ineffassign |
| 21 | # - makezero # Finds slice declarations with non-zero initial length. |
| 22 | # - misspell # Detects commonly misspelled English words in comments. |
| 23 | # - nakedret # Detects uses of naked returns. |
| 24 | # - prealloc # Detects slice declarations that could potentially be pre-allocated. |
| 25 | # - predeclared # Detects code that shadows one of Go's predeclared identifiers. |
| 26 | # - reassign # Detects reassigning a top-level variable in another package. |
| 27 | # - staticcheck |
| 28 | # - thelper # Detects test helpers without t.Helper(). |
| 29 | # - tparallel # Detects inappropriate usage of t.Parallel(). |
| 30 | # - unconvert # Detects unnecessary type conversions. |
| 31 | # - unused |
| 32 | # - usestdlibvars # Detects the possibility to use variables/constants from the Go standard library. |
| 33 | # - usetesting # Reports uses of functions with replacement inside the testing package. |
| 34 | # - usestdlibvars # Detects the possibility to use variables/constants from the Go standard library. |
| 35 | # - usetesting # Reports uses of functions with replacement inside the testing package. |
| 36 | settings: |
| 37 | govet: |
| 38 | disable: |
| 39 | - stdversion |
| 40 | gosec: |
| 41 | excludes: |
| 42 | - G404 # Weak random number generator used in tests. |
| 43 | - G304 # File inclusion |