Skip to content

Commit

Permalink
add rakefile (lowercase) to default config
Browse files Browse the repository at this point in the history
We should also support `rakefile` when looking for Ruby files to
process.

As of rake-13.0.1

```
# rake/lib/rake/application.rb
DEFAULT_RAKEFILES = [
  "rakefile",
  "Rakefile",
  "rakefile.rb",
  "Rakefile.rb"
].freeze
```
  • Loading branch information
jethrodaniel committed May 11, 2020
1 parent 2a82508 commit d64060f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@

### New features

* [#7951](https://github.com/rubocop-hq/rubocop/pull/7951): Include `rakefile` file by default. ([@jethrodaniel][])
* [#7921](https://github.com/rubocop-hq/rubocop/pull/7921): Add new `Style/SlicingWithRange` cop. ([@zverok][])
* [#7895](https://github.com/rubocop-hq/rubocop/pull/7895): Include `.simplecov` file by default. ([@robotdana][])
* [#7916](https://github.com/rubocop-hq/rubocop/pull/7916): Support autocorrection for `Lint/AmbiguousRegexpLiteral`. ([@koic][])
Expand Down Expand Up @@ -4503,3 +4504,4 @@
[@diogoosorio]: https://github.com/diogoosorio
[@jeffcarbs]: https://github.com/jeffcarbs
[@laurmurclar]: https://github.com/laurmurclar
[@jethrodaniel]: https://github.com/jethrodaniel
1 change: 1 addition & 0 deletions config/default.yml
Expand Up @@ -54,6 +54,7 @@ AllCops:
- '**/Podfile'
- '**/Puppetfile'
- '**/Rakefile'
- '**/rakefile'
- '**/Snapfile'
- '**/Steepfile'
- '**/Thorfile'
Expand Down
1 change: 1 addition & 0 deletions spec/rubocop/target_finder_spec.rb
Expand Up @@ -53,6 +53,7 @@
Podfile
Puppetfile
Rakefile
rakefile
Snapfile
Steepfile
Thorfile
Expand Down

0 comments on commit d64060f

Please sign in to comment.