Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add builtin rules for whitespaced code #71

Open
nervetattoo opened this Issue · 2 comments

3 participants

@nervetattoo

I think it makes sense to ship builtin rules for both tab and whitespace indentation.
Too many projects will be using different rules here so it doesn't make sense that every project needs to write custom code just to enforce their standard.

I suggest we rename the HasTabsAsIndentation to HasCorrectIndentation and passes the actual rule as a configuration:

{
    "variables": {
        "HasCorrectIndentation": {
            "character": "\t",
            "num": 1
        }
    }
}

I'll create a PR if theres no disagreement to this.

@jails
Collaborator

Yeah pretty agree for merging HasCorrectTabIndention and HasTabsAsIndentation to a configurable HasCorrectIndentation rule.

@nateabele
Owner

:thumbsup:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.