Skip to content

Commit 478ab25

Browse files
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/11350
1 parent 84cca39 commit 478ab25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rubocop/cop/rspec/cop.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module RuboCop
4-
module Cop # rubocop:disable Style/Documentation
4+
module Cop
55
WorkaroundCop = Cop.dup
66

77
# Clone of the the normal RuboCop::Cop::Cop class so we can rewrite

lib/rubocop/cop/rspec_cops.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
begin
1111
require_relative 'rspec/rails/http_status'
12-
rescue LoadError # rubocop:disable Lint/SuppressedException
12+
rescue LoadError
1313
# Rails/HttpStatus cannot be loaded if rack/utils is unavailable.
1414
end
1515

0 commit comments

Comments
 (0)