Commit a56a924
ci(lint): exclude goconst linter from test files
Repeated string literals in table-driven tests are idiomatic Go
and do not need to be extracted into constants. This suppresses
385 goconst warnings that only appear in _test.go files.
Also set goconst ignore-tests so test-file occurrences are not
counted toward the threshold for production code strings, and
raise min-occurrences to 4 to avoid false positives on strings
like "TBD" that appear only a few times in production code.
Signed-off-by: Frankowski, Tomasz <tomasz.frankowski@intel.com>1 parent 1e40611 commit a56a924
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
0 commit comments