|
1 | | -linters-settings: |
2 | | - gocritic: |
3 | | - disabled-checks: |
4 | | - - ifElseChain |
5 | | - |
6 | | - goimports: |
7 | | - local-prefixes: github.com/rubenv/sql-migrate |
8 | | - |
9 | | - govet: |
10 | | - enable-all: true |
11 | | - disable: |
12 | | - - fieldalignment |
13 | | - |
14 | | - depguard: |
15 | | - rules: |
16 | | - main: |
17 | | - allow: |
18 | | - - $gostd |
19 | | - - github.com/denisenkom/go-mssqldb |
20 | | - - github.com/go-sql-driver/mysql |
21 | | - - github.com/go-gorp/gorp/v3 |
22 | | - - github.com/lib/pq |
23 | | - - github.com/mattn/go-sqlite3 |
24 | | - - github.com/mitchellh/cli |
25 | | - - github.com/olekukonko/tablewriter |
26 | | - - github.com/rubenv/sql-migrate |
27 | | - - gopkg.in/check.v1 |
28 | | - - gopkg.in/yaml.v2 |
29 | | - |
30 | | - exhaustive: |
31 | | - default-signifies-exhaustive: true |
32 | | - |
33 | | - nolintlint: |
34 | | - allow-unused: false |
35 | | - allow-no-explanation: |
36 | | - - depguard |
37 | | - require-explanation: true |
38 | | - require-specific: true |
39 | | - |
40 | | - revive: |
41 | | - enable-all-rules: false |
42 | | - rules: |
43 | | - - name: atomic |
44 | | - - name: blank-imports |
45 | | - - name: bool-literal-in-expr |
46 | | - - name: call-to-gc |
47 | | - - name: constant-logical-expr |
48 | | - - name: context-as-argument |
49 | | - - name: context-keys-type |
50 | | - - name: dot-imports |
51 | | - - name: duplicated-imports |
52 | | - - name: empty-block |
53 | | - - name: empty-lines |
54 | | - - name: error-naming |
55 | | - - name: error-return |
56 | | - - name: error-strings |
57 | | - - name: errorf |
58 | | - - name: exported |
59 | | - - name: identical-branches |
60 | | - - name: imports-blocklist |
61 | | - - name: increment-decrement |
62 | | - - name: indent-error-flow |
63 | | - - name: modifies-parameter |
64 | | - - name: modifies-value-receiver |
65 | | - - name: package-comments |
66 | | - - name: range |
67 | | - - name: range-val-address |
68 | | - - name: range-val-in-closure |
69 | | - - name: receiver-naming |
70 | | - - name: string-format |
71 | | - - name: string-of-int |
72 | | - - name: struct-tag |
73 | | - - name: time-naming |
74 | | - - name: unconditional-recursion |
75 | | - - name: unexported-naming |
76 | | - - name: unexported-return |
77 | | - - name: superfluous-else |
78 | | - - name: unreachable-code |
79 | | - - name: var-declaration |
80 | | - - name: waitgroup-by-value |
81 | | - - name: unused-receiver |
82 | | - - name: unnecessary-stmt |
83 | | - - name: unused-parameter |
84 | | - |
| 1 | +version: "2" |
85 | 2 | run: |
86 | 3 | tests: true |
87 | | - timeout: 1m |
88 | | - |
89 | 4 | linters: |
90 | | - disable-all: true |
| 5 | + default: none |
91 | 6 | enable: |
92 | 7 | - asciicheck |
93 | 8 | - depguard |
94 | 9 | - errcheck |
| 10 | + - errorlint |
95 | 11 | - exhaustive |
96 | 12 | - gocritic |
97 | | - - gofmt |
98 | | - - gofumpt |
99 | | - - goimports |
100 | 13 | - govet |
101 | 14 | - ineffassign |
102 | 15 | - nolintlint |
103 | 16 | - revive |
104 | 17 | - staticcheck |
105 | | - - typecheck |
| 18 | + - unparam |
106 | 19 | - unused |
107 | 20 | - whitespace |
108 | | - - errorlint |
109 | | - - gosimple |
110 | | - - unparam |
111 | | - |
| 21 | + settings: |
| 22 | + depguard: |
| 23 | + rules: |
| 24 | + main: |
| 25 | + allow: |
| 26 | + - $gostd |
| 27 | + - github.com/denisenkom/go-mssqldb |
| 28 | + - github.com/go-sql-driver/mysql |
| 29 | + - github.com/go-gorp/gorp/v3 |
| 30 | + - github.com/lib/pq |
| 31 | + - github.com/mattn/go-sqlite3 |
| 32 | + - github.com/mitchellh/cli |
| 33 | + - github.com/olekukonko/tablewriter |
| 34 | + - github.com/rubenv/sql-migrate |
| 35 | + - gopkg.in/check.v1 |
| 36 | + - gopkg.in/yaml.v2 |
| 37 | + exhaustive: |
| 38 | + default-signifies-exhaustive: true |
| 39 | + gocritic: |
| 40 | + disabled-checks: |
| 41 | + - ifElseChain |
| 42 | + govet: |
| 43 | + disable: |
| 44 | + - fieldalignment |
| 45 | + enable-all: true |
| 46 | + nolintlint: |
| 47 | + require-explanation: true |
| 48 | + require-specific: true |
| 49 | + allow-no-explanation: |
| 50 | + - depguard |
| 51 | + allow-unused: false |
| 52 | + revive: |
| 53 | + enable-all-rules: false |
| 54 | + rules: |
| 55 | + - name: atomic |
| 56 | + - name: blank-imports |
| 57 | + - name: bool-literal-in-expr |
| 58 | + - name: call-to-gc |
| 59 | + - name: constant-logical-expr |
| 60 | + - name: context-as-argument |
| 61 | + - name: context-keys-type |
| 62 | + - name: dot-imports |
| 63 | + - name: duplicated-imports |
| 64 | + - name: empty-block |
| 65 | + - name: empty-lines |
| 66 | + - name: error-naming |
| 67 | + - name: error-return |
| 68 | + - name: error-strings |
| 69 | + - name: errorf |
| 70 | + - name: exported |
| 71 | + - name: identical-branches |
| 72 | + - name: imports-blocklist |
| 73 | + - name: increment-decrement |
| 74 | + - name: indent-error-flow |
| 75 | + - name: modifies-parameter |
| 76 | + - name: modifies-value-receiver |
| 77 | + - name: package-comments |
| 78 | + - name: range |
| 79 | + - name: range-val-address |
| 80 | + - name: range-val-in-closure |
| 81 | + - name: receiver-naming |
| 82 | + - name: string-format |
| 83 | + - name: string-of-int |
| 84 | + - name: struct-tag |
| 85 | + - name: time-naming |
| 86 | + - name: unconditional-recursion |
| 87 | + - name: unexported-naming |
| 88 | + - name: unexported-return |
| 89 | + - name: superfluous-else |
| 90 | + - name: unreachable-code |
| 91 | + - name: var-declaration |
| 92 | + - name: waitgroup-by-value |
| 93 | + - name: unused-receiver |
| 94 | + - name: unnecessary-stmt |
| 95 | + - name: unused-parameter |
| 96 | + exclusions: |
| 97 | + generated: lax |
| 98 | + presets: |
| 99 | + - comments |
| 100 | + - common-false-positives |
| 101 | + - legacy |
| 102 | + - std-error-handling |
| 103 | + rules: |
| 104 | + - path: (.+)\.go$ |
| 105 | + text: declaration of "err" shadows declaration at |
| 106 | + - path: (.+)\.go$ |
| 107 | + text: 'error-strings: error strings should not be capitalized or end with punctuation or a newline' |
| 108 | + - path: (.+)\.go$ |
| 109 | + text: 'ST1005: error strings should not end with punctuation or newline' |
| 110 | + - path: (.+)\.go$ |
| 111 | + text: 'ST1005: error strings should not be capitalized' |
| 112 | + paths: |
| 113 | + - third_party$ |
| 114 | + - builtin$ |
| 115 | + - examples$ |
112 | 116 | issues: |
113 | | - exclude: |
114 | | - - 'declaration of "err" shadows declaration at' # Allow shadowing of `err` because it's so common |
115 | | - - 'error-strings: error strings should not be capitalized or end with punctuation or a newline' |
116 | | - max-same-issues: 10000 |
117 | 117 | max-issues-per-linter: 10000 |
| 118 | + max-same-issues: 10000 |
| 119 | +formatters: |
| 120 | + enable: |
| 121 | + - gofmt |
| 122 | + - gofumpt |
| 123 | + - goimports |
| 124 | + settings: |
| 125 | + goimports: |
| 126 | + local-prefixes: |
| 127 | + - github.com/rubenv/sql-migrate |
| 128 | + exclusions: |
| 129 | + generated: lax |
| 130 | + paths: |
| 131 | + - third_party$ |
| 132 | + - builtin$ |
| 133 | + - examples$ |
0 commit comments