Composite rules (#1905)

* composite rules

* add test config

* tests

* taking care of some pr comments

* naming
This commit is contained in:
Zachary Rice authored and GitHub committed 2025-07-20 11:13:38 -05:00
1 parent 72977e41b6
commit b1c9c7ecbe
9 files changed
+473 -21

No files matched your search

+12
View File
@@ -46,6 +46,18 @@ type Rule struct {
// validated is an internal flag to track whether `Validate()` has been called.
validated bool
// If a rule has RequiredRules, it makes the rule dependent on the RequiredRules.
// In otherwords, this rule is now a composite rule.
RequiredRules []*Required
SkipReport bool
}
type Required struct {
RuleID string
WithinLines *int
WithinColumns *int
}
// Validate guards against common misconfigurations.