Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

colon_assignment_spacing: add optional properties min_left, min_right #594

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Feb 28, 2017

  1. colon_assignment_spacing: add opt. properties min_left, min_right

    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.
    Mekeor Melire committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    ab18cb7 View commit details
    Browse the repository at this point in the history