Skip to content

Commit

Permalink
Suppresses a RuboCop's offense
Browse files Browse the repository at this point in the history
Follow up to rubocop/rubocop#7922.

This commit suppresses the following offense.

```console
% bundle exec rake
(snip)

Offenses:

lib/rubocop/cop/rails/http_status.rb:85:11: C:
Layout/EmptyLinesAroundAttributeAccessor: Add an empty line after
attribute accessor.
          attr_reader :node
          ^^^^^^^^^^^^^^^^^
lib/rubocop/cop/rails/http_status.rb:126:11: C:
Layout/EmptyLinesAroundAttributeAccessor: Add an empty line after
attribute accessor.
          attr_reader :node
          ^^^^^^^^^^^^^^^^^

145 files inspected, 2 offenses detected
```
  • Loading branch information
koic committed May 11, 2020
1 parent be82f3b commit a6b3903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rubocop/cop/rails/http_status.rb
Expand Up @@ -83,6 +83,7 @@ class SymbolicStyleChecker
'to define HTTP status code.'

attr_reader :node

def initialize(node)
@node = node
end
Expand Down Expand Up @@ -124,6 +125,7 @@ class NumericStyleChecker
PERMITTED_STATUS = %i[error success missing redirect].freeze

attr_reader :node

def initialize(node)
@node = node
end
Expand Down

0 comments on commit a6b3903

Please sign in to comment.