Skip to content

Reordering granularity #317

Description

@Shatur

I like when reordering feature is applied to variables inside the file.

But I'd prefer to avoid reordering the functions.

  • Sometimes I have a public function and a related private helper. It reads better when this private function located right after use. When code reordering is enabled, it might end up after a bunch of public functions.
  • Sometimes I have static private helpers and they come first in the file. I read code top to bottom, so I'd prefer them to be located after when they used by public or virtual functions.

I know it contradicts the official style guide, but it would be nice to have a CLI option that enables only variables reordering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions