From 76a8010cb56303d1229d550be72150e3db0959f8 Mon Sep 17 00:00:00 2001 From: Postmodern Date: Sun, 11 Feb 2024 19:39:33 -0800 Subject: [PATCH] This appears to be a bug in `rubocop`. * 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 ``` --- .rubocop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index b3f3b07a..ae1bef6c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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'