|
15 | 15 | [linters-settings.gocognit] |
16 | 16 | min-complexity = 15.0 |
17 | 17 |
|
18 | | - [linters-settings.maligned] |
19 | | - suggest-new = true |
20 | | - |
21 | 18 | [linters-settings.goconst] |
22 | 19 | min-len = 3.0 |
23 | 20 | min-occurrences = 3.0 |
24 | 21 |
|
25 | 22 | [linters-settings.misspell] |
26 | 23 | locale = "US" |
27 | 24 |
|
| 25 | + [linters-settings.stylecheck] |
| 26 | + checks = ["all", "-ST1000"] |
| 27 | + |
| 28 | + [linters-settings.gomoddirectives] |
| 29 | + replace-allow-list = [ |
| 30 | + "github.com/abbot/go-http-auth", |
| 31 | + "github.com/go-check/check", |
| 32 | + "github.com/gorilla/mux", |
| 33 | + "github.com/mailgun/minheap", |
| 34 | + "github.com/mailgun/multibuf", |
| 35 | + ] |
| 36 | + |
28 | 37 | [linters] |
29 | 38 | enable-all = true |
30 | 39 | disable = [ |
| 40 | + "interfacer", # Deprecated |
| 41 | + "golint", # Deprecated |
| 42 | + "maligned", # Deprecated |
| 43 | + "scopelint", # Deprecated |
| 44 | + "cyclop", # Duplicate of gocyclo |
31 | 45 | "lll", # Long lines are ok. |
32 | | - "dupl", |
33 | | - "prealloc", |
34 | | - "maligned", |
35 | | - "gochecknoinits", |
36 | | - "gochecknoglobals", |
| 46 | + "dupl", # Not relevant |
| 47 | + "prealloc", # Not relevant |
| 48 | + "gochecknoinits", # Too strict |
| 49 | + "gochecknoglobals", # Too strict |
37 | 50 | "gomnd", # Does not allow for any config or time values |
38 | 51 | "gosec", # Does not allow exec.Command with variable |
39 | | - "scopelint", |
40 | | - "funlen", |
41 | 52 | "bodyclose", # Too many false positives |
42 | | - "godox", |
43 | 53 | "goconst", # Too many false positives |
44 | | - "testpackage", # Does not allow testing private funcs |
| 54 | + "wrapcheck", # Too strict |
45 | 55 | "goerr113", # Forces wrapping all errors |
46 | 56 | "noctx", # Too strict |
47 | 57 | "exhaustive", # Too strict |
| 58 | + "exhaustivestruct", # Too strict |
48 | 59 | "nlreturn", # Too strict |
49 | | - "wrapcheck", |
50 | | - "exhaustivestruct", |
51 | | - "tparallel", |
| 60 | + "ireturn", # Not relevant |
| 61 | + "varnamelen", # Not relevant |
| 62 | + "nilnil", # Not relevant |
| 63 | + "testpackage", # Does not allow testing private funcs |
| 64 | + "tparallel", # Not relevant |
| 65 | + "paralleltest", # Not relevant |
| 66 | + "funlen", |
52 | 67 | ] |
53 | 68 |
|
54 | 69 | [issues] |
|
0 commit comments