This repository has been archived by the owner on Jan 17, 2018. It is now read-only.
forked from sds/scss-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UnnecessaryParentReference with multiple parent refs
The `UnnecessaryParentReference` linter would incorrectly report lints for cases like the following: p { & + & { ... } } In these situations, the first ampersand is required, since if you wrote something like this: p { + & { ... } } ...the Sass compiler would produce the following invalid CSS: + p { ... } Fix the problem by detecting if there are multiple ampersand references in the sequence and ignoring it if that is the case. Change-Id: Ica6042785883e3ed1c76d24dd8a25da5899bdfda Reviewed-on: http://gerrit.causes.com/41625 Tested-by: jenkins <[email protected]> Reviewed-by: Shane da Silva <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters