KEMBAR78
colon_assignment_spacing: add opt. properties min_left, min_right by UziTech · Pull Request #22 · coffeelint/coffeelint · GitHub
Skip to content

Conversation

UziTech
Copy link
Member

@UziTech UziTech commented Jan 14, 2020

clutchski/coffeelint#594

Usage:

    spacing:
        min_left: 1
        min_right: 2

This means that the space to the left of the assignment-colon has to be at
least 1 whitespace; and the space to the right of the assignment-colon has to
be at least 2 whitespaces.

The left and right are ignored if min_left and min_right are
non-negative. By default, min_left and min_right are ignored as they are
set to -1 by default.

Also, the code of the rule was simplified. And finally, a test case was added
as well.

Usage:
    spacing:
        min_left: 1
        min_right: 2

This means that the space to the left of the assignment-colon has to be at
least 1 whitespace; and the space to the right of the assignment-colon has to
be at least 2 whitespaces.

The `left` and `right` are ignored if `min_left` and `min_right` are
non-negative. By default, `min_left` and `min_right` are ignored as they are
set to `-1` by default.

Also, the code of the rule was simplified. And finally, a test case was added
as well.
@UziTech UziTech merged commit f6c5c76 into coffeelint:master Feb 5, 2020
@UziTech UziTech deleted the pr/594 branch February 5, 2020 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant