forked from sds/haml-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.
The UnnecessaryInterpolation linter would incorrectly report a lint for tags with content that contained interpolation at the beginning, e.g. %tag #{interpolation} -- #{more_interpolation} This was due to the really naive way we were checking if a string only contained interpolation (only check if the first two characters were `#{`). Solve this by using the `extract_interpolated_values` helper originally defined in the `ScriptExtractor`, but is now pulled out into the `HamlLint::Utils` module. Change-Id: I6eb1b2c06b4df0a3f6dc896e089636c853464bb1 Reviewed-on: http://gerrit.causes.com/42566 Tested-by: jenkins <[email protected]> Reviewed-by: Shane da Silva <[email protected]>
- Loading branch information
Showing
4 changed files
with
30 additions
and
25 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
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