From 5dc358c1b7254aa622504cd98528779caf6dee00 Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Sun, 12 Feb 2017 11:07:03 +0530 Subject: Update rubocop config --- Library/.rubocop.yml | 9 ++++----- Library/Homebrew/rubocops.rb | 1 + Library/Homebrew/rubocops/bottle_block_cop.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 Library/Homebrew/rubocops.rb (limited to 'Library') diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 012fcd609..30b9ec81e 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -6,10 +6,9 @@ AllCops: - '**/Casks/**/*' - '**/vendor/**/*' -require: - - ./Homebrew/rubocops/bottle_block_cop.rb +require: ./Homebrew/rubocops.rb -CustomCops/CorrectBottleBlock: +Homebrew/CorrectBottleBlock: Enabled: true Metrics/AbcSize: @@ -47,7 +46,7 @@ Lint/AssignmentInCondition: Enabled: false Lint/EndAlignment: - AlignWith: variable + EnforcedStyleAlignWith: variable Lint/ParenthesesAsGroupedExpression: Enabled: false @@ -69,7 +68,7 @@ Style/BlockDelimiters: EnforcedStyle: line_count_based Style/CaseIndentation: - IndentWhenRelativeTo: end + EnforcedStyle: end Style/ClassAndModuleChildren: EnforcedStyle: nested diff --git a/Library/Homebrew/rubocops.rb b/Library/Homebrew/rubocops.rb new file mode 100644 index 000000000..1a28dd213 --- /dev/null +++ b/Library/Homebrew/rubocops.rb @@ -0,0 +1 @@ +require_relative "./rubocops/bottle_block_cop" diff --git a/Library/Homebrew/rubocops/bottle_block_cop.rb b/Library/Homebrew/rubocops/bottle_block_cop.rb index e16672683..55eb55152 100644 --- a/Library/Homebrew/rubocops/bottle_block_cop.rb +++ b/Library/Homebrew/rubocops/bottle_block_cop.rb @@ -1,6 +1,6 @@ module RuboCop module Cop - module CustomCops + module Homebrew class CorrectBottleBlock < Cop MSG = "Use rebuild instead of revision in bottle block".freeze -- cgit v1.2.3