Skip to content

Commit

Permalink
Merge pull request #1850 from rrosenblum/multilevel_flatten
Browse files Browse the repository at this point in the history
[Fix #1849] Fix bug with nested arrays in Rake task configuration
  • Loading branch information
bbatsov committed Apr 30, 2015
2 parents 494fc90 + c9c4f49 commit 3a56293
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 3a56293

Please sign in to comment.