Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
ec3e7b2a
Unverified
Commit
ec3e7b2a
authored
6 years ago
by
Mike McQuaid
Browse files
Options
Downloads
Patches
Plain Diff
.rubocop.yml: merge rubocop-cask configuration.
parent
491ceb6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/.rubocop.yml
+46
-1
46 additions, 1 deletion
Library/.rubocop.yml
with
46 additions
and
1 deletion
Library/.rubocop.yml
+
46
−
1
View file @
ec3e7b2a
AllCops
:
TargetRubyVersion
:
2.3
Exclude
:
-
'
**/Casks/**/*'
-
'
**/vendor/**/*'
DisplayCopNames
:
false
...
...
@@ -15,6 +14,10 @@ FormulaAudit:
FormulaAuditStrict
:
Enabled
:
true
# enable all cask audits
Cask
:
Enabled
:
true
# disable all formulae strict audits by default
NewFormulaAudit
:
Enabled
:
false
...
...
@@ -39,6 +42,8 @@ Layout/CaseIndentation:
# this is a bit less "floaty"
Layout/EndAlignment
:
EnforcedStyleAlignWith
:
start_of_line
Exclude
:
-
'
**/Casks/**/*'
# enforce use of <<~EOS
Layout/IndentHeredoc
:
...
...
@@ -108,10 +113,14 @@ Metrics/LineLength:
Max
:
170
# ignore manpage comments and long single-line strings
IgnoredPatterns
:
[
'
#:
'
,
'
url
"'
,
'
mirror
"'
,
'
plist_options
:'
]
Exclude
:
-
'
**/Casks/**/*'
# dashes in filenames are typical
Naming/FileName
:
Regex
:
!ruby/regexp
/^[\w\@\-\+\.]+(\.rb)?$/
Exclude
:
-
'
**/Casks/**/*'
# implicitly allow EOS as we use it everywhere
Naming/HeredocDelimiterNaming
:
...
...
@@ -176,6 +185,7 @@ Style/HashSyntax:
-
'
**/cmd/**/*'
-
'
**/lib/**/*'
-
'
**/spec/**/*'
-
'
**/Casks/**/*'
# this doesn't make sense for wide lines below maximum line length
# https://github.com/rubocop-hq/rubocop/issues/6149
...
...
@@ -206,10 +216,14 @@ Style/StderrPuts:
# ruby style guide favorite
Style/StringLiterals
:
EnforcedStyle
:
double_quotes
Exclude
:
-
'
**/Casks/**/*'
# consistency with above
Style/StringLiteralsInInterpolation
:
EnforcedStyle
:
double_quotes
Exclude
:
-
'
**/Casks/**/*'
# consistency helps readability and helps people who don't know Ruby
Style/StringMethods
:
...
...
@@ -222,6 +236,8 @@ Style/SymbolArray:
# make things a bit easier to read
Style/TernaryParentheses
:
EnforcedStyle
:
require_parentheses_when_complex
Exclude
:
-
'
**/Casks/**/*'
# messes with existing plist/caveats style
Style/TrailingBodyOnMethodDefinition
:
...
...
@@ -238,3 +254,32 @@ Style/TrailingCommaInHashLiteral:
# a bit confusing to non-Rubyists but useful for longer arrays
Style/WordArray
:
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/**/*'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment