Update rubocop config
This commit is contained in:
parent
1f5cf4fd40
commit
5dc358c1b7
@ -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
|
||||
|
||||
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 Cop
|
||||
module CustomCops
|
||||
module Homebrew
|
||||
class CorrectBottleBlock < Cop
|
||||
MSG = "Use rebuild instead of revision in bottle block".freeze
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user