From 0c774cff50962b6243a0bde6a3e098402263c8f5 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 6 Aug 2015 16:58:29 +0800 Subject: hardware: temporary disable rubocop method rename rule Closes Homebrew/homebrew#42540. Signed-off-by: Xu Cheng --- Library/Homebrew/compat/hardware.rb | 8 ++++++-- 1 file 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 -- cgit v1.2.3