diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index ac10f92e55..289f53c598 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -1,5 +1,7 @@ AllCops: TargetRubyVersion: 2.0 + Exclude: + - '**/Casks/**/*' Metrics/AbcSize: Enabled: false diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index a43727371c..a6485dca44 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -6,7 +6,7 @@ AllCops: Include: - '**/.simplecov' Exclude: - - 'cask/**/*' + - '**/Casks/**/*' - '**/vendor/**/*' # so many of these in formulae but none in here diff --git a/Library/Homebrew/cask/.rubocop.yml b/Library/Homebrew/cask/.rubocop.yml deleted file mode 100644 index 4d5672789e..0000000000 --- a/Library/Homebrew/cask/.rubocop.yml +++ /dev/null @@ -1,131 +0,0 @@ -AllCops: - TargetRubyVersion: 2.0 - Exclude: - - '**/.simplecov' - - '**/Casks/**/*' - - '**/vendor/**/*' - -Metrics/AbcSize: - Enabled: false - -Metrics/ClassLength: - Enabled: false - -Metrics/CyclomaticComplexity: - Enabled: false - -Metrics/LineLength: - Enabled: false - -Metrics/MethodLength: - Enabled: false - -Metrics/ModuleLength: - CountComments: false - Exclude: - - 'lib/hbc/locations.rb' - - 'lib/hbc/macos.rb' - - 'lib/hbc/utils.rb' - -Metrics/PerceivedComplexity: - Enabled: false - -Style/AlignHash: - EnforcedHashRocketStyle: table - EnforcedColonStyle: table - -Style/BarePercentLiterals: - EnforcedStyle: percent_q - -Style/BlockDelimiters: - EnforcedStyle: semantic - FunctionalMethods: - - expect - - let - - let! - - subject - - watch - - inject - - map - - map! - - collect - - collect! - - reject - - reject! - - delete_if - - with_object - ProceduralMethods: - - after - - at_exit - - before - - benchmark - - bm - - bmbm - - capture_io - - capture_output - - capture_subprocess_io - - chdir - - context - - create - - define_method - - define_singleton_method - - each_with_object - - fork - - measure - - new - - open - - realtime - - shutup - - tap - - each - - reverse_each - IgnoredMethods: - - it - - its - - lambda - - proc - -Style/ClassAndModuleChildren: - EnforcedStyle: nested - -Style/Documentation: - Enabled: false - -Style/FileName: - Regex: !ruby/regexp /^((([\dA-Z]+|[\da-z]+)(_([\dA-Z]+|[\da-z]+))*|(\-\-)?([\dA-Z]+|[\da-z]+)(-([\dA-Z]+|[\da-z]+))*))(\.rb)?$/ - -Style/HashSyntax: - EnforcedStyle: ruby19_no_mixed_keys - -Style/IndentArray: - EnforcedStyle: align_brackets - -Style/IndentHash: - EnforcedStyle: align_braces - -Style/PercentLiteralDelimiters: - PreferredDelimiters: - '%': '{}' - '%i': '{}' - '%q': '{}' - '%Q': '{}' - '%r': '{}' - '%s': '()' - '%w': '[]' - '%W': '[]' - '%x': '()' - -Style/RaiseArgs: - EnforcedStyle: exploded - -Style/RegexpLiteral: - EnforcedStyle: percent_r - -Style/StringLiterals: - EnforcedStyle: double_quotes - -Style/StringLiteralsInInterpolation: - EnforcedStyle: double_quotes - -Style/TrailingCommaInLiteral: - EnforcedStyleForMultiline: comma