-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve rubocop handling of multiline ruby (#415)
* Remove RubyExtractor It's not used since the new RubyExtraction system * More uniform handling of comments with a space Ex: - #hi and = #world They both get turned to - comments * Rubocop: Improved handling for multiline scripts and tag attributes * Normalize handling of indentation for tag attributes and tag script Before, if a tag had children, the attributes and script of the tag would be nested in the begin, adding to their indentation. If the tag did not have childrne, the attributes and script of the tag would not be nested, leading to occasional inconsistencies in what would happen to them based on the presence of a child... Now they are always nested. --------- Co-authored-by: Shane da Silva <[email protected]>
- Loading branch information
Showing
20 changed files
with
1,471 additions
and
1,256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'haml_lint/ruby_extractor' | ||
require 'rubocop' | ||
require 'tempfile' | ||
|
||
|
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
Oops, something went wrong.