Skip to content

Feature request: rule to check level of indents #153

@necramirez

Description

@necramirez

The indent rule space-tab-mixed-disabled recently supported checking the indent length when using spaces. #73 (comment)

However, it only checks if the number of spaces is a multiple of the value specified in the rule. That is, if I specify space2, it only checks if the number of spaces is an even number. For example, if I configured space2, this is correct:

<html>
  <head>
    <title>Title</title><!-- has 4 spaces -->
  </head>
</html>

This is correctly marked as an error:

<html>
  <head>
   <title>Title</title><!-- has 5 spaces -->
  </head>
</html>

But these are not marked as errors:

<html>
  <head>
<title>Title</title><!-- not indented at all! -->
  <title>Title</title><!-- same indent level -->
      <title>Title</title><!-- over-indented -->
  </head>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot:staleIssue marked as stale because there was no activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions