Skip to content

Restructure Checkers page in the documentation #217

@szabolcstoth

Description

@szabolcstoth

The Checkers page currently contains the main groups and inside these groups the rules are grouped by the checker classes. Due to this behavior the rules are not always ordered by their IDs. Example: the Spacing group starts with rule W1006.

The current order inside Spaces:
InconsistentUseOfTabsAndSpacesChecker: W1006
InvalidSpacingChecker: W1001, W1002
MissingTrailingBlankLineChecker: W1003, W1004, W1005

It is obvious that we should put InconsistentUseOfTabsAndSpacesChecker class at the end since it has the W1006.

But what about the following scenario: we add a new rule to InvalidSpacingChecker with W1007 (since we don't want to change the other rules' IDs due to incompatibility issues), how should we order the classes? The only possible solution I can see in this scenario is that we somehow restructure the Checkers page.

Example:

  • The page still should have the main groups: Comments, Tags, etc.
  • Inside the groups we can have the rules ordered by the IDs (no need to group/separate by the checker classes).
  • And we can mention that which checker class contains the given rule (like we mention what parameters does it have).

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions