Update rubocop config

This commit is contained in:
Gautham Goli 2017-02-12 11:07:03 +05:30
parent 1f5cf4fd40
commit 5dc358c1b7
3 changed files with 6 additions and 6 deletions

View File

@ -6,10 +6,9 @@ AllCops:
- '**/Casks/**/*' - '**/Casks/**/*'
- '**/vendor/**/*' - '**/vendor/**/*'
require: require: ./Homebrew/rubocops.rb
- ./Homebrew/rubocops/bottle_block_cop.rb
CustomCops/CorrectBottleBlock: Homebrew/CorrectBottleBlock:
Enabled: true Enabled: true
Metrics/AbcSize: Metrics/AbcSize:
@ -47,7 +46,7 @@ Lint/AssignmentInCondition:
Enabled: false Enabled: false
Lint/EndAlignment: Lint/EndAlignment:
AlignWith: variable EnforcedStyleAlignWith: variable
Lint/ParenthesesAsGroupedExpression: Lint/ParenthesesAsGroupedExpression:
Enabled: false Enabled: false
@ -69,7 +68,7 @@ Style/BlockDelimiters:
EnforcedStyle: line_count_based EnforcedStyle: line_count_based
Style/CaseIndentation: Style/CaseIndentation:
IndentWhenRelativeTo: end EnforcedStyle: end
Style/ClassAndModuleChildren: Style/ClassAndModuleChildren:
EnforcedStyle: nested EnforcedStyle: nested

View File

@ -0,0 +1 @@
require_relative "./rubocops/bottle_block_cop"

View File

@ -1,6 +1,6 @@
module RuboCop module RuboCop
module Cop module Cop
module CustomCops module Homebrew
class CorrectBottleBlock < Cop class CorrectBottleBlock < Cop
MSG = "Use rebuild instead of revision in bottle block".freeze MSG = "Use rebuild instead of revision in bottle block".freeze