bbatsov/rubocop — pull request #1508 by rrosenblum (2014-12-17 19:26:06+00:00)
Title: Fix bug where auto_correct Rake tasks does not take in the options specified in its parent task

I noticed an issue where the `auto_correct` Rake task would run against all files even if its parent's task had been given a pattern to run against.

Using the example task from the README, I would expect `rake rubocop:auto_correct` to run RuboCop using the file pattern 'lib/**/*.rb'. In actuality, it was running against all files.

```ruby
require 'rubocop/rake_task'

desc 'Run RuboCop on the lib directory'
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = ['lib/**/*.rb']
task.formatters = ['files']
task.fail_on_error = false
end
```

The change allows for the `auto_correct` task to run with the options that were given to the parent task.