hardware: temporary disable rubocop method rename rule

Closes Homebrew/homebrew#42540.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-08-06 16:58:29 +08:00
parent 8f20ea92b3
commit 0c774cff50

View File

@ -1,10 +1,14 @@
class Hardware
class << self
def is_32_bit?
# We won't change the name because of backward compatibility.
# So disable rubocop here.
def is_32_bit? # rubocop:disable Style/PredicateName
!CPU.is_64_bit?
end
def is_64_bit?
# We won't change the name because of backward compatibility.
# So disable rubocop here.
def is_64_bit? # rubocop:disable Style/PredicateName
CPU.is_64_bit?
end