Commit eb904ec
fix: Remove custom -test flag that conflicted with driver's built-in flag (#4)
The custom `-test` flag for skipping test files conflicted with
singlechecker's built-in `-test` flag (registered by checker.RegisterFlags()).
This caused the flag to be silently ignored when running the linter directly.
The driver's built-in `-test` flag provides the same functionality,
so we remove the redundant custom implementation and delegate to it.
Changes:
- Remove `analyzeTests` variable and flag registration in `init()`
- Remove test file skipping logic from `buildSkipFiles()`
- Remove `TestFileFilterSkipTests` test and rename `TestFileFilterDefault` to `TestFileFilter`
- Remove `filefilterskip` testdata fixtures
- Update README to remove go vet usage and clarify -test flag is built-in
- Retract v0.1.0-v0.4.0 due to broken -test flag
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent eb1eb1c commit eb904ec
File tree
7 files changed
+9
-106
lines changed- testdata/src/filefilterskip
7 files changed
+9
-106
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 19 | | |
30 | 20 | | |
31 | 21 | | |
| |||
267 | 257 | | |
268 | 258 | | |
269 | 259 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | 260 | | |
277 | 261 | | |
278 | 262 | | |
| |||
368 | 352 | | |
369 | 353 | | |
370 | 354 | | |
371 | | - | |
| 355 | + | |
372 | 356 | | |
373 | 357 | | |
374 | 358 | | |
375 | 359 | | |
376 | 360 | | |
377 | 361 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | 362 | | |
382 | 363 | | |
383 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
| |||
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 59 | | |
66 | 60 | | |
67 | 61 | | |
| |||
111 | 105 | | |
112 | 106 | | |
113 | 107 | | |
114 | | - | |
| 108 | + | |
115 | 109 | | |
116 | | - | |
| 110 | + | |
117 | 111 | | |
118 | 112 | | |
119 | 113 | | |
| |||
123 | 117 | | |
124 | 118 | | |
125 | 119 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 120 | | |
133 | 121 | | |
134 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments