Skip to content

Commit

Permalink
[Fix rubocop#1849] Fix bug with nested arrays in Rake task configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosenblum committed Apr 30, 2015
1 parent 494fc90 commit c9c4f49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* [#1832](https://github.com/bbatsov/rubocop/pull/1832): Fix bug in `UnusedMethodArgument` that would cause them to report having been auto-corrected when they were not. ([@jonas054][])
* [#1834](https://github.com/bbatsov/rubocop/issues/1834): Support only boolean values for `AutoCorrect` configuration parameter, and remove warning for unknown parameter. ([@jonas054][])
* [#1843](https://github.com/bbatsov/rubocop/issues/1843): Fix crash in `TrailingBlankLines` when a file ends with a block comment without final newline. ([@jonas054][])
* [#1849](https://github.com/bbatsov/rubocop/issues/1849): Fix bug where you can not have nested arrays in the Rake task configuration. ([@rrosenblum][])

## 0.30.1 (21/04/2015)

Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/rake_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def run_cli(verbose, options)

def full_options
[].tap do |result|
result.concat(formatters.flat_map { |f| ['--format', f] })
result.concat(requires.flat_map { |r| ['--require', r] })
result.concat(formatters.map { |f| ['--format', f] }.flatten)
result.concat(requires.map { |r| ['--require', r] }.flatten)
result.concat(options)
result.concat(patterns)
end
Expand Down

0 comments on commit c9c4f49

Please sign in to comment.