Skip to content

Commit

Permalink
This appears to be a bug in rubocop.
Browse files Browse the repository at this point in the history
* It's complaining about conditional assigment in a method where no
  assignment is being done, instead we are comparing two objects using
  the triple-equals method.

  ```ruby
  case other
  when IPRange
    @range === other.range
  else
    @range === other
  end
  ```
  • Loading branch information
postmodern committed Feb 12, 2024
1 parent 55f6fc9 commit 76a8010
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,8 @@ Style/CaseEquality:
- 'spec/network/ip_range_spec.rb'
- 'spec/network/ip_range/cidr_spec.rb'
- 'spec/network/ip_range/glob_spec.rb'

Style/ConditionalAssignment:
Exclude:
# BUG: this seems like a bug in rubocop
- 'lib/ronin/support/network/ip_range.rb'

0 comments on commit 76a8010

Please sign in to comment.