Update rubocop config
This commit is contained in:
parent
1f5cf4fd40
commit
5dc358c1b7
@ -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
|
||||||
|
|||||||
1
Library/Homebrew/rubocops.rb
Normal file
1
Library/Homebrew/rubocops.rb
Normal file
@ -0,0 +1 @@
|
|||||||
|
require_relative "./rubocops/bottle_block_cop"
|
||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user