aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/hardware.rb
diff options
context:
space:
mode:
authorXu Cheng2015-08-06 16:58:29 +0800
committerXu Cheng2015-08-06 17:23:56 +0800
commit0c774cff50962b6243a0bde6a3e098402263c8f5 (patch)
tree8afbc19b2776e0164b3b619800542753e5ce55e7 /Library/Homebrew/compat/hardware.rb
parent8f20ea92b30aa55943c7d0e8ce5ea9bdb6569135 (diff)
downloadbrew-0c774cff50962b6243a0bde6a3e098402263c8f5.tar.bz2
hardware: temporary disable rubocop method rename rule
Closes Homebrew/homebrew#42540. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/compat/hardware.rb')
-rw-r--r--Library/Homebrew/compat/hardware.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/compat/hardware.rb b/Library/Homebrew/compat/hardware.rb
index 3013ed3b7..6667afa58 100644
--- a/Library/Homebrew/compat/hardware.rb
+++ b/Library/Homebrew/compat/hardware.rb
@@ -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