New Issue Checklist
Feature or Enhancement Proposal
one_declaration_per_file should accept a config key, tentatively named allow_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 is fileprivate or private:
one_declaration_per_file:
allow_visibility: fileprivate
This would be useful to ignore helper types that won't be visible to other code.