diff --git a/.simplecov b/.simplecov index 869c7c0db8b..8f9fa266e0c 100644 --- a/.simplecov +++ b/.simplecov @@ -1,3 +1,5 @@ +# frozen_string_literal: true + SimpleCov.start do add_filter '/spec/' add_filter '/vendor/bundle/' diff --git a/CHANGELOG.md b/CHANGELOG.md index 53bb2ab9253..3087c78b225 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## master (unreleased) +### New features + +* [#7895](https://github.com/rubocop-hq/rubocop/pull/7895): Include `.simplecov` file by default. ([@robotdana][]) + ### Bug fixes * [#7882](https://github.com/rubocop-hq/rubocop/pull/7882): Fix `Style/CaseEquality` when `AllowOnConstant` is `true` and the method receiver is implicit. ([@rafaelfranca][]) diff --git a/config/default.yml b/config/default.yml index c64fa1e4e50..1d040c3f230 100644 --- a/config/default.yml +++ b/config/default.yml @@ -35,6 +35,7 @@ AllCops: - '**/*.watchr' - '**/.irbrc' - '**/.pryrc' + - '**/.simplecov' - '**/buildfile' - '**/Appraisals' - '**/Berksfile' diff --git a/spec/rubocop/target_finder_spec.rb b/spec/rubocop/target_finder_spec.rb index f21311654ae..64ccc118701 100644 --- a/spec/rubocop/target_finder_spec.rb +++ b/spec/rubocop/target_finder_spec.rb @@ -36,6 +36,7 @@ RUBY_FILENAMES = %w[.irbrc .pryrc + .simplecov Appraisals Berksfile Brewfile