Commit 8d99783
feat: log skip reason when detectors are skipped in scan
Previously, when a detector had skip=True (e.g., AlwaysSkip detector),
the harness silently continued with no indication to the user about why
the detector was not run.
Changes:
- Add skip_reason attribute to Detector base class
- Log the reason at INFO level when a detector is skipped
- Default reason is 'disabled via config' when skip_reason is not set
Fixes #1061
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Oxygen <1391083091@qq.com>1 parent 6dbfae5 commit 8d99783
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
199 | 208 | | |
200 | | - | |
201 | | - | |
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
| |||
0 commit comments