-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Fix docs for disabled rules in rulesets #6679
docs: Fix docs for disabled rules in rulesets #6679
Conversation
Pull Request Test Coverage Report for Build 3421913941
💛 - Coveralls |
aeefcb1
to
5a78926
Compare
$rules = $definition->getRules(); | ||
$rules = array_filter( | ||
$definition->getRules(), | ||
static fn ($config) => false !== $config, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like the strict check against explicitly disabled rule by comparing to false
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it. I wonder if we can cover with tests somehow?
IMO the generated docs are the best test cases we can have, not sure we need something else. |
Actually the docs should still document the fact that rulesets do disable those rules. I'm going to rework these changes a bit. |
5a78926
to
b019825
Compare
No description provided.