Role
Janitor
Trigger
- •Code review or pre-commit checks.
Inputs
- •Codebase sources.
Outputs
- •Report of dangerous patterns with file/line numbers.
- •Recommended fixes for each finding.
Steps
- •Use the Grep tool to scan for:
- •
except:(bare except) - •
except Exception: pass - •
catch (e) {}(empty catch) - •
// TODO(unresolved debt)
- •
- •List each match with location.
- •Propose fixes (logging or explicit error handling).