diff --git a/.rubocop.yml b/.rubocop.yml index c3d6b402f6..884bf03f2c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,3 @@ -require: rubocop-cask - AllCops: Exclude: - '**/Gemfile' @@ -17,57 +15,3 @@ AllCops: - 'test/Casks/**/*' - 'test/plist/**/*' - 'test/support/shared_examples/**/*' - -Metrics/LineLength: - Exclude: - - '**/Casks/**/*' - -Performance/StringReplacement: - Exclude: - - '**/Casks/**/*' - -Style/AlignHash: - EnforcedHashRocketStyle: table - EnforcedColonStyle: table - -Style/BarePercentLiterals: - EnforcedStyle: percent_q - -Style/Documentation: - Exclude: - - '**/Casks/**/*' - -Style/EmptyElse: - Exclude: - - '**/Casks/**/*' - -Style/FileName: - Exclude: - - '**/Casks/**/*' - -Style/HashSyntax: - EnforcedStyle: hash_rockets - -Style/IndentArray: - EnforcedStyle: align_brackets - -Style/IndentHash: - EnforcedStyle: align_braces - -Style/PercentLiteralDelimiters: - PreferredDelimiters: - '%': '{}' - '%i': '{}' - '%q': '{}' - '%Q': '{}' - '%r': '{}' - '%s': '()' - '%w': '[]' - '%W': '[]' - '%x': '()' - -Style/RegexpLiteral: - EnforcedStyle: percent_r - -Style/TrailingComma: - EnforcedStyleForMultiline: comma diff --git a/Casks/.rubocop.yml b/Casks/.rubocop.yml new file mode 100644 index 0000000000..4e946f47fe --- /dev/null +++ b/Casks/.rubocop.yml @@ -0,0 +1,50 @@ +require: rubocop-cask + +Metrics/LineLength: + Enabled: false + +Performance/StringReplacement: + Enabled: false + +Style/AlignHash: + EnforcedHashRocketStyle: table + EnforcedColonStyle: table + +Style/BarePercentLiterals: + EnforcedStyle: percent_q + +Style/Documentation: + Enabled: false + +Style/EmptyElse: + Enabled: false + +Style/FileName: + Enabled: false + +Style/HashSyntax: + EnforcedStyle: hash_rockets + +Style/IndentArray: + EnforcedStyle: align_brackets + +Style/IndentHash: + EnforcedStyle: align_braces + +Style/PercentLiteralDelimiters: + PreferredDelimiters: + '%': '{}' + '%i': '{}' + '%q': '{}' + '%Q': '{}' + '%r': '{}' + '%s': '()' + '%w': '[]' + '%W': '[]' + '%x': '()' + +Style/RegexpLiteral: + EnforcedStyle: percent_r + +Style/TrailingComma: + EnforcedStyleForMultiline: comma