Commit 55637ba
committed
feat: add ruleset management for configurable static analysis
Add a comprehensive ruleset management system that allows:
- Enabling/disabling individual rules by ID
- Setting rule severity levels (Off, Info, Warning, Error, Critical)
- Organizing rules by category (Security, DeadCode, Types, WordPress, etc.)
- Predefined rulesets: strict, security, wordpress, minimal, default
- Ruleset merging for inheritance-style configuration
- JSON serialization for loading/saving rulesets
Includes 30+ rule definitions across 7 categories and comprehensive tests.1 parent 2fdc452 commit 55637ba
5 files changed
Lines changed: 602 additions & 1 deletion
File tree
- src/Sanctify
- test
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
| 100 | + | |
| 101 | + | |
0 commit comments