sasstools / sass-lint

Pure Node.js Sass linting
MIT License
1.77k stars 530 forks source link

Extra space at end of @keyframes definition causes 'Fatal' block validity #1228

Open abrom opened 6 years ago

abrom commented 6 years ago

What version of Sass Lint are you using?

1.12.1

Please include any relevant parts of your configuration

N/A completely vanilla

What did you do? Please include the actual source code causing the issue.

@keyframes spin 
  100% 
    transform: rotate(360deg)

Note, to reproduce the issue, there needs to be a space after @keyframes spin

What did you expect to happen?

Parser to warn about the trailing space

What actually happened? Please include any error messages given to you by Sass Lint.

  1:1  error  Please check validity of the block starting from line #1  Fatal
zwass commented 5 years ago

I am seeing similar errors, though no amount of playing with the whitespace seems to fix it. I notice this older issue (https://github.com/sasstools/sass-lint/issues/642) which other users report was not fixed.

zwass commented 5 years ago

I actually had an errant colon in my @keyframes line. Fixing this fixed the linter warning.