Skip to content

Commit

Permalink
Run rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Sep 8, 2022
1 parent 2dcd2f1 commit b4043b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
13 changes: 0 additions & 13 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,6 @@ Style/CaseLikeIf:
- 'lib/whois/parsers/whois.nic.pr.rb'
- 'lib/whois/parsers/whois.nic.uk.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/ColonMethodCall:
Exclude:
- 'spec/support/example/parser_example_group.rb'

# Offense count: 11
Style/DocumentDynamicEvalDefinition:
Exclude:
Expand Down Expand Up @@ -425,13 +419,6 @@ Style/GuardClause:
Style/HashSyntax:
Enabled: false

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowIfModifier.
Style/IfInsideElse:
Exclude:
- 'lib/whois/parsers/whois.tonic.to.rb'

# Offense count: 238
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
Expand Down
8 changes: 3 additions & 5 deletions lib/whois/parsers/whois.tonic.to.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ class WhoisTonicTo < Base
property_supported :status do
if response_incomplete?
:incomplete
elsif available?
:available
else
if available?
:available
else
:registered
end
:registered
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/support/example/parser_example_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def load_part(path)
end
end

RSpec::configure do |c|
RSpec.configure do |c|
def c.escaped_path(*parts)
/#{parts.join('\/')}/
end
Expand Down

0 comments on commit b4043b3

Please sign in to comment.