Skip to content

Commit 55637ba

Browse files
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

sanctify-php.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ library
4141
Sanctify.Emit
4242
Sanctify.Config
4343
Sanctify.Report
44+
Sanctify.Ruleset
4445
other-modules:
4546
Sanctify.Parser.Lexer
4647
Sanctify.Parser.Token
@@ -96,4 +97,5 @@ test-suite sanctify-php-test
9697
sanctify-php,
9798
hspec >=2.10,
9899
hspec-megaparsec >=2.2,
99-
text
100+
text,
101+
containers

0 commit comments

Comments
 (0)