Skip to content

one_declaration_per_file: Allow certain types in same file #6072

@rgoldberg

Description

@rgoldberg

New Issue Checklist

Feature or Enhancement Proposal

Add an array property (tentatively called allowed_types) for one_declaration_per_file to allow certain types in same the file as other types. e.g.:

one_declaration_per_file:
  allowed_types: [enum, protocol]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIdeas for improvements of existing features and rules.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions