Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation rule reports incorrect errors with Sass maps #104

Closed
maxlapides opened this issue Sep 4, 2015 · 2 comments · Fixed by #289
Closed

Indentation rule reports incorrect errors with Sass maps #104

maxlapides opened this issue Sep 4, 2015 · 2 comments · Fixed by #289
Labels
Milestone

Comments

@maxlapides
Copy link

Using this indentation rule:

  indentation:
    - 2
    -
      size: 4

I have a Sass map that looks like this (starting on line 1 of my file):

$colors: (
    base: (
        red: #fff,
        blue: #fff
    ),
    text: (
        default: #fff,
        light: #fff
    )
);

And here's the error I get:

app/scss/_colors.scss
  6:5  error  Indentation of 4, expected 8   indentation
  7:9  error  Indentation of 8, expected 12  indentation
  8:9  error  Indentation of 8, expected 12  indentation

Thanks for any help :)

@DanPurdy DanPurdy added the bug label Sep 5, 2015
@DanPurdy
Copy link
Member

DanPurdy commented Sep 5, 2015

Yeah, recreated this. Will look into it.

it's currently expecting to see the following which is clearly wrong.

Thanks for the report and the error log. 👍

$colors: (
    base: (
        red: #fff,
        blue: #fff
    ),
        text: (
            default: #fff,
            light: #fff
    )
);

@DanPurdy
Copy link
Member

DanPurdy commented Sep 5, 2015

Relates also to #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants