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/**/*'
- '**/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

View File

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

View File

@ -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