Skip to content

Indentation checker does not check for single space indentation #107

@PatrickMcSweeny

Description

@PatrickMcSweeny

I created a test locally to see if the indentation checker would approve a solution which used single space indentation, and it did approve the solution. This is because the indentation checker only checks to see if the difference in spaces between a line and the previous line is greater than two. A better solution would be to see if the difference in spaces is equal to zero or two. We could probably get even fancier using some of the functionality in the Rubocop AST library.

I would like to work on a PR to address this as well as the refactoring that is suggested here.

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