1 # This file is synced from `Homebrew/brew` by the `.github` repository, do not modify it directly.
9 - Homebrew/sorbet/rbi/{dsl,gems}/**/*.rbi
11 - Homebrew/vendor/**/*
12 - Taps/*/*/vendor/**/*
15 rubocop-minitest: false
16 Layout/ArgumentAlignment:
19 - "/**/Formula/**/*.rb"
20 - "**/Formula/**/*.rb"
21 Layout/CaseIndentation:
23 Layout/FirstArrayElementIndentation:
24 EnforcedStyle: consistent
25 Layout/FirstHashElementIndentation:
26 EnforcedStyle: consistent
28 EnforcedStyleAlignWith: start_of_line
30 EnforcedHashRocketStyle: table
31 EnforcedColonStyle: table
32 Layout/LeadingCommentSpace:
52 - ' "/Library/Application Support/'
53 - "\"/Library/Caches/"
54 - "\"/Library/PreferencePanes/"
55 - ' "~/Library/Application Support/'
56 - "\"~/Library/Caches/"
57 - "\"~/Library/Containers"
58 - "\"~/Application Support"
59 - " was verified as official when first introduced to the cask"
60 Layout/SpaceAroundOperators:
62 Layout/SpaceBeforeBrackets:
66 - "/**/{Formula,Casks}/**/*.rb"
67 - "**/{Formula,Casks}/**/*.rb"
68 Lint/AmbiguousBlockAssociation:
73 - "/**/{Formula,Casks}/**/*.rb"
74 - "**/{Formula,Casks}/**/*.rb"
75 Lint/ParenthesesAsGroupedExpression:
78 - "/**/Formula/**/*.rb"
79 - "**/Formula/**/*.rb"
80 Lint/UnusedMethodArgument:
81 AllowUnusedKeywordArguments: true
84 Naming/BlockForwarding:
87 Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/
88 Naming/HeredocDelimiterNaming:
91 Naming/InclusiveLanguage:
100 - patches/13_fix_scope_for_show_slave_status_data.patch
103 - "\\A(fetch_)?HEAD\\?\\Z"
104 Naming/MethodParameterName:
108 Naming/VariableNumber:
111 EnforcedStyle: always
112 Style/ArgumentsForwarding:
114 Style/AutoResourceCleanup:
116 Style/BarePercentLiterals:
117 EnforcedStyle: percent_q
118 Style/BlockDelimiters:
119 BracesRequiredMethods:
121 Style/ClassAndModuleChildren:
124 Style/CollectionMethods:
126 Style/DisableCopsWithinSourceCodeDirective:
130 - "/**/{Formula,Casks}/**/*.rb"
131 - "**/{Formula,Casks}/**/*.rb"
135 - "/**/{Formula,Casks}/**/*.rb"
136 - "**/{Formula,Casks}/**/*.rb"
144 - "/**/Formula/**/*.rb"
145 - "**/Formula/**/*.rb"
146 Style/FrozenStringLiteralComment:
147 EnforcedStyle: always
150 - "/**/{Formula,Casks}/**/*.rb"
151 - "**/{Formula,Casks}/**/*.rb"
152 - Homebrew/test/**/Casks/**/*.rb
158 - "/**/{Formula,Casks}/**/*.rb"
159 - "**/{Formula,Casks}/**/*.rb"
160 Style/HashAsLastArrayItem:
163 - "/**/Formula/**/*.rb"
164 - "**/Formula/**/*.rb"
165 Style/InverseMethods:
168 Style/InvertibleUnlessCondition:
174 Style/MutableConstant:
175 EnforcedStyle: strict
176 Style/NumericLiteralPrefix:
177 EnforcedOctalStyle: zero_only
178 Style/NumericLiterals:
186 - Homebrew/cli/args.rb
187 - Homebrew/cli/args.rbi
188 Style/OptionalBooleanParameter:
191 - respond_to_missing?
192 Style/RedundantLineContinuation:
194 Style/RescueStandardError:
195 EnforcedStyle: implicit
200 Style/StringConcatenation:
203 - "/**/{Formula,Casks}/**/*.rb"
204 - "**/{Formula,Casks}/**/*.rb"
205 Style/StringLiterals:
206 EnforcedStyle: double_quotes
207 Style/StringLiteralsInInterpolation:
208 EnforcedStyle: double_quotes
211 Style/SuperWithArgsParentheses:
214 EnforcedStyle: brackets
215 Style/TernaryParentheses:
216 EnforcedStyle: require_parentheses_when_complex
217 Style/TopLevelMethodDefinition:
221 Style/TrailingCommaInArguments:
222 EnforcedStyleForMultiline: comma
223 Style/TrailingCommaInArrayLiteral:
224 EnforcedStyleForMultiline: comma
225 Style/TrailingCommaInHashLiteral:
226 EnforcedStyleForMultiline: comma
227 Style/UnlessLogicalOperators:
229 EnforcedStyle: forbid_logical_operators