From d64060f077f45a98acb5a13936b269d97ed4c6b3 Mon Sep 17 00:00:00 2001 From: Mark Delk Date: Sun, 10 May 2020 18:48:52 -0500 Subject: [PATCH] add `rakefile` (lowercase) to default config 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 ``` --- CHANGELOG.md | 2 ++ config/default.yml | 1 + spec/rubocop/target_finder_spec.rb | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34e010f649e..20d107b2088 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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][]) @@ -4503,3 +4504,4 @@ [@diogoosorio]: https://github.com/diogoosorio [@jeffcarbs]: https://github.com/jeffcarbs [@laurmurclar]: https://github.com/laurmurclar +[@jethrodaniel]: https://github.com/jethrodaniel diff --git a/config/default.yml b/config/default.yml index 6c3d488bdd6..c30a22610cb 100644 --- a/config/default.yml +++ b/config/default.yml @@ -54,6 +54,7 @@ AllCops: - '**/Podfile' - '**/Puppetfile' - '**/Rakefile' + - '**/rakefile' - '**/Snapfile' - '**/Steepfile' - '**/Thorfile' diff --git a/spec/rubocop/target_finder_spec.rb b/spec/rubocop/target_finder_spec.rb index 04a5bd3510d..f9dd81fe963 100755 --- a/spec/rubocop/target_finder_spec.rb +++ b/spec/rubocop/target_finder_spec.rb @@ -53,6 +53,7 @@ Podfile Puppetfile Rakefile + rakefile Snapfile Steepfile Thorfile