Commit 478ab25
committed
Fix an offenses when using RuboCop 0.81.0
RuboCop 0.81 has been released.
https://github.com/rubocop-hq/rubocop/releases/tag/v0.81.0
This PR fixes the following offenses when using RuboCop 0.81.0.
```console
% cd path/to/rubocop-rspec
% bundle exec rake internal_investigation
(snip)
Offenses:
lib/rubocop/cop/rspec/cop.rb:4:14: W: Lint/RedundantCopDisableDirective:
Unnecessary disabling of Style/Documentation.
module Cop # rubocop:disable Style/Documentation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/rubocop/cop/rspec_cops.rb:12:18: W: Lint/RedundantCopDisableDirective:
Unnecessary disabling of Lint/SuppressedException.
rescue LoadError # rubocop:disable Lint/SuppressedException
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
202 files inspected, 2 offenses detected
rake aborted!
Command failed with status (1): [bundle exec rubocop --require
rubocop-rspe...]
/Users/koic/src/github.com/rubocop-hq/rubocop-rspec/Rakefile:32:in
`block in <top (required)>'
/Users/koic/.rbenv/versions/2.7.1/bin/bundle:23:in `load'
/Users/koic/.rbenv/versions/2.7.1/bin/bundle:23:in `<main>'
Tasks: TOP => internal_investigation
(See full trace by running task with --trace)
```
https://circleci.com/gh/rubocop-hq/rubocop-rspec/113501 parent 84cca39 commit 478ab25
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments