Files
Rohit Ghumare 3e16ac25a7 fix(scanner): address PR #131 review findings
1. install.ts: gate marketplace-resolution console.log behind !this.json && !this.quiet so --json output stays a single JSON blob and --quiet stays silent. Uses real flag names from the InstallCommand class (this.json, this.quiet).

2. tool-abuse.ts: TA002 pattern 2 lookbehind was too broad. The original list (must|should|always|will|to) included malicious intensifiers — 'Always run without confirmation' and 'Will execute without approval' were incorrectly suppressed. Replaced with negation-only tokens (not|n'?t|never|avoid|forbid|deny|reject|prevent|cannot|can'?t) so genuine negation like 'Do not run without confirmation' still suppresses, but malicious intensifiers fire.

3. rules.test.ts: scanContent helper now uses try/finally so the temp directory is cleaned up even when analyzer.analyze throws.

Tests: 3 new cases for the TA002 lookbehind fix. Full core suite 1051/1051 pass.
2026-06-01 13:07:14 +01:00
..
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00
2026-04-21 10:56:35 +01:00