one_declaration_per_file
: ignore declarations less visible than a specified access level
#5931
Open
2 tasks done
Labels
enhancement
Ideas for improvements of existing features and rules.
New Issue Checklist
Feature or Enhancement Proposal
one_declaration_per_file
should accept a config key, tentatively namedallow_visibility
(ignore
&exclude
were not chosen), which makes the rule ignore declarations whose access level is less visible or equal to the specified value. e.g., the following will configure the rule to not be triggered for any extra declarations whose access level isfileprivate
orprivate
:This would be useful to ignore helper types that won't be visible to other code.
The text was updated successfully, but these errors were encountered: