Merge pull request #1125 from reitermarkus/rubocop-macos
RuboCop: MacOS
This commit is contained in:
commit
92e6edea53
@ -96,11 +96,6 @@ Style/ClassVars:
|
|||||||
- 'Homebrew/test/testing_env.rb'
|
- 'Homebrew/test/testing_env.rb'
|
||||||
- 'Homebrew/utils.rb'
|
- 'Homebrew/utils.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
Style/ConstantName:
|
|
||||||
Exclude:
|
|
||||||
- 'Homebrew/os/mac.rb'
|
|
||||||
|
|
||||||
# Offense count: 13
|
# Offense count: 13
|
||||||
# Configuration parameters: AllowedVariables.
|
# Configuration parameters: AllowedVariables.
|
||||||
Style/GlobalVars:
|
Style/GlobalVars:
|
||||||
@ -129,7 +124,6 @@ Style/IndentArray:
|
|||||||
Style/ModuleFunction:
|
Style/ModuleFunction:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'Homebrew/global.rb'
|
- 'Homebrew/global.rb'
|
||||||
- 'Homebrew/os/mac.rb'
|
|
||||||
- 'Homebrew/os/mac/xcode.rb'
|
- 'Homebrew/os/mac/xcode.rb'
|
||||||
- 'Homebrew/os/mac/xquartz.rb'
|
- 'Homebrew/os/mac/xquartz.rb'
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@ require "os/mac/version"
|
|||||||
|
|
||||||
module OS
|
module OS
|
||||||
module Mac
|
module Mac
|
||||||
|
module_function
|
||||||
|
|
||||||
SYSTEM_DIRS = [
|
SYSTEM_DIRS = [
|
||||||
"/",
|
"/",
|
||||||
"/Applications",
|
"/Applications",
|
||||||
|
@ -2,7 +2,8 @@ require "development_tools"
|
|||||||
|
|
||||||
module OS
|
module OS
|
||||||
module Mac
|
module Mac
|
||||||
class << self
|
module_function
|
||||||
|
|
||||||
def xcode_folder
|
def xcode_folder
|
||||||
odeprecated "MacOS.xcode_folder", "MacOS::Xcode.folder"
|
odeprecated "MacOS.xcode_folder", "MacOS::Xcode.folder"
|
||||||
Xcode.folder
|
Xcode.folder
|
||||||
@ -142,5 +143,4 @@ module OS
|
|||||||
version
|
version
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
module OS
|
module OS
|
||||||
module Mac
|
module Mac
|
||||||
module Xcode
|
module Xcode
|
||||||
class << self
|
module_function
|
||||||
|
|
||||||
def provides_autotools?
|
def provides_autotools?
|
||||||
odeprecated "OS::Mac::Xcode.provides_autotools?"
|
odeprecated "OS::Mac::Xcode.provides_autotools?"
|
||||||
version < "4.3"
|
version < "4.3"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
@ -9,9 +9,9 @@ require "os/mac/keg"
|
|||||||
|
|
||||||
module OS
|
module OS
|
||||||
module Mac
|
module Mac
|
||||||
extend self
|
module_function
|
||||||
|
|
||||||
::MacOS = self # compatibility
|
::MacOS = self # rubocop:disable Style/ConstantName
|
||||||
|
|
||||||
raise "Loaded OS::Mac on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"]
|
raise "Loaded OS::Mac on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"]
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
module OS
|
module OS
|
||||||
module Mac
|
module Mac
|
||||||
module Xcode
|
module Xcode
|
||||||
extend self
|
module_function
|
||||||
|
|
||||||
V4_BUNDLE_ID = "com.apple.dt.Xcode".freeze
|
V4_BUNDLE_ID = "com.apple.dt.Xcode".freeze
|
||||||
V3_BUNDLE_ID = "com.apple.Xcode".freeze
|
V3_BUNDLE_ID = "com.apple.Xcode".freeze
|
||||||
|
@ -3,7 +3,7 @@ module OS
|
|||||||
X11 = XQuartz = Module.new
|
X11 = XQuartz = Module.new
|
||||||
|
|
||||||
module XQuartz
|
module XQuartz
|
||||||
extend self
|
module_function
|
||||||
|
|
||||||
FORGE_BUNDLE_ID = "org.macosforge.xquartz.X11".freeze
|
FORGE_BUNDLE_ID = "org.macosforge.xquartz.X11".freeze
|
||||||
APPLE_BUNDLE_ID = "org.x.X11".freeze
|
APPLE_BUNDLE_ID = "org.x.X11".freeze
|
||||||
|
Loading…
x
Reference in New Issue
Block a user