-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RuboCop to not report erroneous Style/EmptyElse warnings
When writing code like the following: - if condition :filter ... - else :filter ... ...if the filters contained no executable Ruby code the `RuboCop` linter would incorrectly report a `Style/EmptyRule` warning due to the `ScriptExtractor` not representing the filter in the extracted code. Fix by always inserting a `puts` statement for filters. Change-Id: Ia9f46c03dc923bee65a49258b62365d337509b75 Reviewed-on: http://gerrit.causes.com/47622 Tested-by: jenkins <jenkins@brigade.com> Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 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