Commit bd44ddb
committed
Suppress redundant configuration logging for rubocop-rake
`rubocop-rake/config/default.yml` is being output twice:
```console
$ bundle exec rubocop -d lib/rubocop/rake/inject.rb
For /Users/koic/src/github.com/rubocop/rubocop-rake: configuration from /Users/koic/src/github.com/rubocop/rubocop-rake/.rubocop.yml
configuration from /Users/koic/src/github.com/rubocop/rubocop-rake/config/default.yml
configuration from /Users/koic/.rbenv/versions/3.5-dev/lib/ruby/gems/3.5.0+0/gems/rubocop-1.71.2/config/internal_affairs.yml
configuration from /Users/koic/.rbenv/versions/3.5-dev/lib/ruby/gems/3.5.0+0/gems/rubocop-1.71.2/config/internal_affairs.yml
Default configuration from /Users/koic/.rbenv/versions/3.5-dev/lib/ruby/gems/3.5.0+0/gems/rubocop-1.71.2/config/default.yml
configuration from /Users/koic/src/github.com/rubocop/rubocop-rake/config/default.yml
configuration from /Users/koic/src/github.com/rubocop/rubocop-rake/config/default.yml
```
Since it is already logged by `ConfigLoader.load_yaml_configuration`:
https://github.com/rubocop/rubocop/blob/v1.71.2/lib/rubocop/config_loader.rb#L71-L82
The unnecessary code on the caller side will be removed.1 parent f5ba565 commit bd44ddb
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
0 commit comments