.rubocop.yml: merge rubocop-cask configuration.
This commit is contained in:
parent
491ceb6c4c
commit
ec3e7b2ae5
@ -1,7 +1,6 @@
|
|||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 2.3
|
TargetRubyVersion: 2.3
|
||||||
Exclude:
|
Exclude:
|
||||||
- '**/Casks/**/*'
|
|
||||||
- '**/vendor/**/*'
|
- '**/vendor/**/*'
|
||||||
DisplayCopNames: false
|
DisplayCopNames: false
|
||||||
|
|
||||||
@ -15,6 +14,10 @@ FormulaAudit:
|
|||||||
FormulaAuditStrict:
|
FormulaAuditStrict:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
# enable all cask audits
|
||||||
|
Cask:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
# disable all formulae strict audits by default
|
# disable all formulae strict audits by default
|
||||||
NewFormulaAudit:
|
NewFormulaAudit:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
@ -39,6 +42,8 @@ Layout/CaseIndentation:
|
|||||||
# this is a bit less "floaty"
|
# this is a bit less "floaty"
|
||||||
Layout/EndAlignment:
|
Layout/EndAlignment:
|
||||||
EnforcedStyleAlignWith: start_of_line
|
EnforcedStyleAlignWith: start_of_line
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
|
||||||
# enforce use of <<~EOS
|
# enforce use of <<~EOS
|
||||||
Layout/IndentHeredoc:
|
Layout/IndentHeredoc:
|
||||||
@ -108,10 +113,14 @@ Metrics/LineLength:
|
|||||||
Max: 170
|
Max: 170
|
||||||
# ignore manpage comments and long single-line strings
|
# ignore manpage comments and long single-line strings
|
||||||
IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options :']
|
IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options :']
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
|
||||||
# dashes in filenames are typical
|
# dashes in filenames are typical
|
||||||
Naming/FileName:
|
Naming/FileName:
|
||||||
Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/
|
Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
|
||||||
# implicitly allow EOS as we use it everywhere
|
# implicitly allow EOS as we use it everywhere
|
||||||
Naming/HeredocDelimiterNaming:
|
Naming/HeredocDelimiterNaming:
|
||||||
@ -176,6 +185,7 @@ Style/HashSyntax:
|
|||||||
- '**/cmd/**/*'
|
- '**/cmd/**/*'
|
||||||
- '**/lib/**/*'
|
- '**/lib/**/*'
|
||||||
- '**/spec/**/*'
|
- '**/spec/**/*'
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
|
||||||
# this doesn't make sense for wide lines below maximum line length
|
# this doesn't make sense for wide lines below maximum line length
|
||||||
# https://github.com/rubocop-hq/rubocop/issues/6149
|
# https://github.com/rubocop-hq/rubocop/issues/6149
|
||||||
@ -206,10 +216,14 @@ Style/StderrPuts:
|
|||||||
# ruby style guide favorite
|
# ruby style guide favorite
|
||||||
Style/StringLiterals:
|
Style/StringLiterals:
|
||||||
EnforcedStyle: double_quotes
|
EnforcedStyle: double_quotes
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
|
||||||
# consistency with above
|
# consistency with above
|
||||||
Style/StringLiteralsInInterpolation:
|
Style/StringLiteralsInInterpolation:
|
||||||
EnforcedStyle: double_quotes
|
EnforcedStyle: double_quotes
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
|
||||||
# consistency helps readability and helps people who don't know Ruby
|
# consistency helps readability and helps people who don't know Ruby
|
||||||
Style/StringMethods:
|
Style/StringMethods:
|
||||||
@ -222,6 +236,8 @@ Style/SymbolArray:
|
|||||||
# make things a bit easier to read
|
# make things a bit easier to read
|
||||||
Style/TernaryParentheses:
|
Style/TernaryParentheses:
|
||||||
EnforcedStyle: require_parentheses_when_complex
|
EnforcedStyle: require_parentheses_when_complex
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
|
||||||
# messes with existing plist/caveats style
|
# messes with existing plist/caveats style
|
||||||
Style/TrailingBodyOnMethodDefinition:
|
Style/TrailingBodyOnMethodDefinition:
|
||||||
@ -238,3 +254,32 @@ Style/TrailingCommaInHashLiteral:
|
|||||||
# a bit confusing to non-Rubyists but useful for longer arrays
|
# a bit confusing to non-Rubyists but useful for longer arrays
|
||||||
Style/WordArray:
|
Style/WordArray:
|
||||||
MinSize: 4
|
MinSize: 4
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
|
||||||
|
# exclude some styles for casks (for now)
|
||||||
|
# TODO: make Homebrew/brew, casks and formulae more consistent
|
||||||
|
Layout/ElseAlignment:
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
Layout/IndentArray:
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
Layout/IndentHash:
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
Layout/IndentationWidth:
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
Performance/StringReplacement:
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
Style/EmptyElse:
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
Style/PercentLiteralDelimiters:
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
Style/RegexpLiteral:
|
||||||
|
Exclude:
|
||||||
|
- '**/Casks/**/*'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user