rubocop-rubomatic 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 437b0441f0519ff078ef2c39d67e1a1b1f744eef4d5faff27660ab6f348022aa
4
- data.tar.gz: 35bdce43a2bccc85c87e4c187436500039746d6bc07ab3bfb542e4c0a5230a54
3
+ metadata.gz: 10c9fb46582be8a5b92baf64c16a3b30149ff2486bcc32230f82084457f1dafc
4
+ data.tar.gz: 37d5fc1afb5ab5b73eb9aef9c4d6975c4bccc779853cb9819362c4286e976c35
5
5
  SHA512:
6
- metadata.gz: 37f272e6dcf8b02088f1f49e5b5c2a0fc50a8a436d4b922087adb1e225318b7aca849715ffaa6df3fb6f470f6c1dda34ba44500d4403aec5e8b217c80ca7329e
7
- data.tar.gz: 781eebd67b7ebe1dac68969796879f47a90ac9a66334b5cc496ba2b0a7fbeeeb676fc0c701f7524979623b3b042a6029f013a8cc68b147e8df3c9d58e4296c16
6
+ metadata.gz: 9271bf970f278b1505e075aa7cd34447fc8bac50f90eb4785c84481cb81f4dd8f892f3976567bfd7d4eab5f0431ee1eaa00c1084868a1adc4cc4a3aa8d97deb9
7
+ data.tar.gz: 514eaac5868a850a844b94794eccdafeee82a4a326606402890f59434297f8e6c79710f3c289742b68d5a4a13814d0735625241359e3387f3d2263381f3adec5
data/CHANGELOG.md ADDED
@@ -0,0 +1,412 @@
1
+ # Changelog
2
+
3
+ ## Unreleased changes
4
+
5
+ ## 2.1.0
6
+
7
+ ### MISC
8
+
9
+ * Updated to `rubocop 1.92.0`, `rubocop-performance 1.27.0`, `rubocop-rspec 3.10.2`, and `rubocop-thread_safety 0.8.0`
10
+ * Renamed obsolete params:
11
+ * `Bundler/GemComment/IgnoredGems` -> `AllowedGems`
12
+ * `Layout/LineLength/IgnoreCopDirectives` -> `AllowCopDirectives`
13
+ * `Lint/MissingCopEnableDirective/MaximumRangeSize` -> `MaxRangeSize`
14
+ * `Lint/NumberConversion/IgnoredClasses` -> `AllowedClasses`
15
+ * `Metrics/CollectionLiteralLength/LengthThreshold` -> `Max`
16
+ * `Style/FetchEnvVar/AllowedVars` -> `AllowedVariables`
17
+ * Removed `Style/DoubleCopDisableDirective` (superseded by `Lint/CopDirectiveSyntax`)
18
+ * Updated `LICENSE` to be BSD-3 instead of MIT
19
+
20
+ ### Layout
21
+
22
+ * Changed `Layout/HashAlignment/EnforcedLastArgumentHashStyle` from `ignore_explicit` to `always_inspect`
23
+ * Enabled `Layout/FirstHashElementLineBreak`
24
+ * Added `AllowYARDCommentBlockSeparator: false` to `Layout/LeadingCommentSpace`
25
+ * Added `NumberOfEmptyLines: 1` to `Layout/EmptyLineAfterMagicComment`
26
+
27
+ ### Lint
28
+
29
+ * Added rails-extensions methods to `Lint/SafeNavigationChain/AllowedMethods`
30
+ * Added `DelegatingMethods: [delegate]` to `Lint/DuplicateMethods`
31
+ * Enabled `Lint/UnreachablePatternBranch`
32
+ * Enabled `Lint/DataDefineOverride`
33
+ * Enabled `Lint/UnusedPrivateMethod` (requires `AllCops/UseProjectIndex` and `rubydex`)
34
+ * Enabled `Lint/DeprecatedReference` (requires `AllCops/UseProjectIndex` and `rubydex`)
35
+ * Enabled `Lint/NameTypo` (requires `AllCops/UseProjectIndex` and `rubydex`)
36
+ * Enabled `Lint/MisplacedMagicComment`
37
+ * Enabled `Lint/ArgumentMismatch` (requires `AllCops/UseProjectIndex` and `rubydex`)
38
+ * Enabled `Lint/SuperArgumentMismatch` (requires `AllCops/UseProjectIndex` and `rubydex`)
39
+
40
+ ### Style
41
+
42
+ * Enabled `Style/ReturnNil`
43
+ * Increased `Style/MultipleComparison/ComparisonsThreshold` from 2 to 3
44
+ * Added empty `DisallowedCops` to `Style/DisableCopsWithinSourceCodeDirective` (project specific)
45
+ * Added `AllowWithReason: true` to `Style/DisableCopsWithinSourceCodeDirective`
46
+ (proposed as `AllowTrailingComment`, renamed in `rubocop 1.92`)
47
+ * Enabled `Style/CollectionQuerying`
48
+ * Enabled `Style/ReverseFind` for ruby >= `4.0`
49
+ * Enabled `Style/EmptyClassDefinition` with `EnforcedStyle: class_keyword`
50
+ * Added `Style/HashLookupMethod` (disabled) with `EnforcedStyle: fetch`
51
+ * Enabled `Style/NegativeArrayIndex`
52
+ * Enabled `Style/TallyMethod`
53
+ * Disabled `Style/SelectByRange`
54
+ * Disabled `Style/SelectByKind`
55
+ * Enabled `Style/RedundantStructKeywordInit`
56
+ * Enabled `Style/RedundantMinMaxBy`
57
+ * Enabled `Style/ReduceToHash`
58
+ * Enabled `Style/PredicateWithKind`
59
+ * Enabled `Style/PartitionInsteadOfDoubleSelect`
60
+ * Enabled `Style/OneClassPerFile`
61
+ * Enabled `Style/MapJoin`
62
+ * Enabled `Style/FileOpen`
63
+ * Enabled `Style/TimeNow`
64
+ * Enabled `Style/DirectiveScope`
65
+ * `Style/DisallowedMethods` now disallows `Object#tap`
66
+ * `Style/MethodCallWithArgsParentheses` allows parentheses on `has_many`, `has_one`, `belongs_to`, `delegate`, and `accepts_nested_attributes_for`
67
+
68
+ ### RSpec
69
+
70
+ * Added `Strict: true` to `RSpec/SharedContext`
71
+ * Added `NegatedMatcher: not_change` to `RSpec/ExpectChange`
72
+ * Enabled `RSpec/Output`
73
+ * Enabled `RSpec/MatchWithSimpleRegex`
74
+ * Enabled `RSpec/DiscardedMatcher`
75
+ * `RSpec/MessageExpectation` changed to `EnforcedStyle: allow`
76
+
77
+ ### Metrics
78
+
79
+ * Changed `Metrics/CollectionLiteralLength` to exclude `db/seeds/` instead of `lib/tasks/seeds`
80
+
81
+ ## 2.0.1 (2026-05-05)
82
+
83
+ * Just a version bump
84
+
85
+ ## 2.0.0 (2026-01-05)
86
+
87
+ ### BREAKING CHANGES
88
+
89
+ * Drop support for ruby < `3.3.4`
90
+
91
+ ### Layout
92
+
93
+ * Enabled `Layout/EmptyLinesAfterModuleInclusion`
94
+ * Added `Layout/LineLength` options:
95
+ * `AllowQualifiedName: true`
96
+ * `SplitStrings: true`
97
+ * `AllowRBSInlineAnnotation: false`
98
+
99
+ ### Style
100
+
101
+ * Enabled `Style/ModuleMemberExistenceCheck`
102
+ * Added `IncludedMacroPatterns: [ ]` to `Style/MethodCallWithArgsParentheses`
103
+ * Enabled `Style/ArrayIntersectWithSingleElement`
104
+ * Added `0.0.0.0` and `127.0.0.1` to `Style/IpAddresses/AllowedAddresses`
105
+ * Added `DefaultToNil: false` to `Style/FetchEnvVar`
106
+ * Use `diff_comma` for `Style/TrailingCommaInArguments`, `Style/TrailingCommaInArrayLiteral`, and `Style/TrailingCommaInHashLiteral`
107
+
108
+ ### RSpec
109
+
110
+ * Enabled `RSpec/LeakyLocalVariable`
111
+ * Disabled `RSpec/MultipleExpectations`
112
+ * Increased `RSpec/NestedGroups/Max` from 3 to 5
113
+ * Increased `RSpec/MultipleMemoizedHelpers/Max` from 5 to 10
114
+
115
+ ### Gemspec
116
+
117
+ * Enabled `Gemspec/AttributeAssignment` (in gemspec_on.yml)
118
+
119
+ ## 1.6.3 (2025-06-18)
120
+
121
+ * Missing inclusion of `config/rspec.yml`
122
+
123
+ ## 1.6.2 (2025-06-18)
124
+
125
+ * Updated to `rubocop 1.76.2`
126
+ * Set defaults for `Naming/PredicateMethod/AllowBangMethods`
127
+
128
+ ## 1.6.1 (2025-06-13)
129
+
130
+ * Changed `ENV['RUBY_MAJOR']` to `ENV['RUBY_VERSION']`
131
+
132
+ ## 1.6.0 (2025-06-12)
133
+
134
+ * Upgrade to `ruobcop 1.76.1`
135
+ * This includes the change from `require:` to `plugins:`.
136
+ While `require:` will still work, there will be a deprecation warning
137
+ * Set
138
+ * `Layout/LeadingCommentSpace/AllowSteepAnnotation` to `false`
139
+ * `Lint/DuplicateBranch/IgnoreDuplicateElseBranch` to `true`
140
+ * Enabled
141
+ * `Lint/ArrayLiteralInRegexp`
142
+ * `Lint/ConstantReassignment`
143
+ * `Lint/CopDirectiveSyntax`
144
+ * `Lint/DuplicateSetElement`
145
+ * `Lint/HashNewWithKeywordArgumentsAsDefault`
146
+ * `Lint/NumericOperationWithConstantResult`
147
+ * `Lint/RedundantTypeConversion`
148
+ * `Lint/SharedMutableDefault`
149
+ * `Lint/SuppressedExceptionInNumberConversion`
150
+ * `Lint/UnescapedBracketInRegexp`
151
+ * `Lint/UselessConstantScoping`
152
+ * `Lint/UselessDefaultValueArgument`
153
+ * `Lint/UselessDefined`
154
+ * `Lint/UselessNumericOperation`
155
+ * `Lint/UselessOr`
156
+ * `Naming/PredicateMethod`
157
+ * `Style/AmbiguousEndlessMethodDefinition`
158
+ * `Style/BitwisePredicate`
159
+ * `Style/ComparableBetween`
160
+ * `Style/CombinableDefined`
161
+ * `Style/DigChain`
162
+ * `Style/EmptyStringInsideInterpolation`
163
+ * `Style/FileNull`
164
+ * `Style/FileTouch`
165
+ * `Style/HashFetchChain`
166
+ * `Style/HashSlice`
167
+ * `Style/ItAssignment`
168
+ * `Style/ItBlockParameter`
169
+ * `Style/KeywordArgumentsMergin`
170
+ * `Style/RedundantArrayFlatten`
171
+ * `Style/RedundantFormat`
172
+ * `Style/RedundantInterpolationUnfreeze`
173
+ * Disabled `Style/SafeNavigationChainLength`
174
+ * Added `rack_attack.rb` to exclude list for `Style/IpAddresses`
175
+ * Upgraded to `rubocop-performance 1.25.0`
176
+ * Enabled
177
+ * `Performance/StringBytesize`
178
+ * `Performance/ZipWithoutBlock`
179
+ * Added `rubocop-packaging 0.6.0`
180
+ * Enabled `Packaging/GemspecGit`
181
+ * Added `rubocop-rspec 3.6.0`
182
+ * Did **not** enable
183
+ * `RSpec/AlignLeftLetBrace`
184
+ * `RSpec/AlignRightLetBrace`
185
+ * `RSpec/Dialect`
186
+ * `RSpec/Pending`
187
+ * Enabled
188
+ * `RSpec/AnyInstance`
189
+ * `RSpec/AroundBlock`
190
+ * `RSpec/Be`
191
+ * `RSpec/BeEmpty`
192
+ * `RSpec/BeEq`
193
+ * `RSpec/BeEql`
194
+ * `RSpec/BeNil`
195
+ * `RSpec/BeforeAfterAll`
196
+ * `RSpec/ChangeByZero`
197
+ * `RSpec/ClassCheck`
198
+ * `RSpec/ContainExactly`
199
+ * `RSpec/ContextMethod`
200
+ * `RSpec/ContextWording`
201
+ * `RSpec/DescribeClass`
202
+ * `RSpec/DescribeMethod`
203
+ * `RSpec/DescribeSymbol`
204
+ * `RSpec/DescribedClass`
205
+ * `RSpec/DescribedClassModuleWrapping`
206
+ * `RSpec/DuplicatedMetadata`
207
+ * `RSpec/EmptyExampleGroup`
208
+ * `RSpec/EmptyHook`
209
+ * `RSpec/EmptyLineAfterExample`
210
+ * `RSpec/EmptyLineAfterExampleGroup`
211
+ * `RSpec/EmptyLineAfterFinalLet`
212
+ * `RSpec/EmptyLineAfterHook`
213
+ * `RSpec/EmptyLineAfterSubject`
214
+ * `RSpec/EmptyMetadata`
215
+ * `RSpec/EmptyOutput`
216
+ * `RSpec/Eq`
217
+ * `RSpec/ExampleLength`
218
+ * `RSpec/ExampleWithoutDescription`
219
+ * `RSpec/ExampleWording`
220
+ * `RSpec/ExcessiveDocstringSpacing`
221
+ * `RSpec/ExpectActual`
222
+ * `RSpec/ExpectChange`
223
+ * `RSpec/ExpectInHook`
224
+ * `RSpec/ExpectInLet`
225
+ * `RSpec/ExpectOutput`
226
+ * `RSpec/Focus`
227
+ * `RSpec/HookArgument`
228
+ * `RSpec/HooksBeforeExamples`
229
+ * `RSpec/IdenticalEqualityAssertion`
230
+ * `RSpec/ImplicitBlockExpectation`
231
+ * `RSpec/ImplicitExpect`
232
+ * `RSpec/ImplicitSubject`
233
+ * `RSpec/IncludeExamples`
234
+ * `RSpec/IndexedLet`
235
+ * `RSpec/InstanceSpy`
236
+ * `RSpec/InstanceVariable`
237
+ * `RSpec/IsExpectedSpecify`
238
+ * `RSpec/ItBehavesLike`
239
+ * `RSpec/IteratedExpectation`
240
+ * `RSpec/LeadingSubject`
241
+ * `RSpec/LeakyConstantDeclaration`
242
+ * `RSpec/LetBeforeExamples`
243
+ * `RSpec/LetSetup`
244
+ * `RSpec/MatchArray`
245
+ * `RSpec/MessageChain`
246
+ * `RSpec/MessageExpectation`
247
+ * `RSpec/MessageSpies`
248
+ * `RSpec/MetadataStyle`
249
+ * `RSpec/MissingExampleGroupArgument`
250
+ * `RSpec/MissingExpectationTargetMethod`
251
+ * `RSpec/MultipleDescribes`
252
+ * `RSpec/MultipleExpectations`
253
+ * `RSpec/MultipleMemoizedHelpers`
254
+ * `RSpec/MultipleSubjects`
255
+ * `RSpec/NamedSubject`
256
+ * `RSpec/NestedGroups`
257
+ * `RSpec/NoExpectationExample`
258
+ * `RSpec/NotToNot`
259
+ * `RSpec/OverwritingSetup`
260
+ * `RSpec/PendingWithoutReason`
261
+ * `RSpec/PredicateMatcher`
262
+ * `RSpec/ReceiveCounts`
263
+ * `RSpec/ReceiveMessages`
264
+ * `RSpec/ReceiveNever`
265
+ * `RSpec/RedundantAround`
266
+ * `RSpec/RedundantPredicateMatcher`
267
+ * `RSpec/RemoveConst`
268
+ * `RSpec/RepeatedDescription`
269
+ * `RSpec/RepeatedExample`
270
+ * `RSpec/RepeatedExampleGroupBody`
271
+ * `RSpec/RepeatedExampleGroupDescription`
272
+ * `RSpec/RepeatedIncludeExample`
273
+ * `RSpec/RepeatedSubjectCall`
274
+ * `RSpec/ReturnFromStub`
275
+ * `RSpec/ScatteredLet`
276
+ * `RSpec/ScatteredSetup`
277
+ * `RSpec/SharedContext`
278
+ * `RSpec/SharedExamples`
279
+ * `RSpec/SingleArgumentMessageChain`
280
+ * `RSpec/SkipBlockInsideExample`
281
+ * `RSpec/SortMetadata`
282
+ * `RSpec/SpecFilePathFormat`
283
+ * `RSpec/SpecFilePathSuffix`
284
+ * `RSpec/StubbedMock`
285
+ * `RSpec/SubjectDeclaration`
286
+ * `RSpec/SubjectStub`
287
+ * `RSpec/UndescriptiveLiteralsDescription`
288
+ * `RSpec/UnspecifiedException`
289
+ * `RSpec/VariableDefinition`
290
+ * `RSpec/VariableName`
291
+ * `RSpec/VerifiedDoubleReference`
292
+ * `RSpec/VerifiedDoubles`
293
+ * `RSpec/VoidExpect`
294
+ * `RSpec/Yield`
295
+ * Added `rubocop-thread_safety 0.7.2`
296
+ * Enabled
297
+ * `ThreadSafety/ClassAndModuleAttributes`
298
+ * `ThreadSafety/ClassInstanceVariable`
299
+ * `ThreadSafety/DirChdir`
300
+ * `ThreadSafety/MutableClassInstanceVariable`
301
+ * `ThreadSafety/NewThread`
302
+ * `ThreadSafety/RackMiddlewareInstanceVariable`
303
+
304
+ ## 1.5.1 (2024-10-22)
305
+
306
+ ### Misc
307
+
308
+ * Move runtime dependencies back into the gemspec
309
+
310
+ ## 1.5.0 (2024-10-22)
311
+
312
+ ### Cops
313
+
314
+ * Add new `Style/MapIntoArray` cop
315
+ * Add `class_singleton` to `Layout/ClassStructure` cop
316
+ * Add `Style/SendWithLiteralMethodName` cop
317
+ * Add `Style/SuperArguments` cop
318
+ * Add `Gemspec/AddRuntimeDependency` cop
319
+ * Add `Gemspec/DevelopmentDependencies` cop
320
+
321
+ ### Options
322
+
323
+ * Update `Style/AccessModifierDeclarations` cop options
324
+ * `AllowModifiersOnSymbols: false`
325
+ * `AllowModifiersOnAttrs: false`
326
+ * Update `Style/DocumentationMethod` cop options
327
+ * Add `AllowedMethods` option with defaults of:
328
+ * `method_missing`
329
+ * `respond_to_missing?`
330
+
331
+ ### Dependencies
332
+
333
+ * `rubocop@1.65.1`
334
+ * `rubocop-performance@1.22.1`
335
+ * `rake@13.0.6`
336
+ * `rspec@3.13.0`
337
+ * `parser@3.3.4.2`
338
+
339
+ ### Misc
340
+
341
+ * Moved all gem dependencies to `Gemfile`
342
+
343
+ ## 1.4.0
344
+
345
+ ### Cops
346
+
347
+ * Added new `Lint/ItWithoutArgumentsInBlock` cop
348
+ * Added new `Style/ArrayFirstLast` cop
349
+ * Added new `Style/SuperWithArgsParentheses` cop
350
+ * Added new `Lint/LiteralAssignmentInCondition` cop
351
+ * Added new `Style/SingleLineDoEndBlock` cop
352
+ * Added new `Performance/MapMethodChain` cop
353
+
354
+ ### Options
355
+
356
+ * Added `UseAnonymousForwarding: true` to `Style/ArgumentsForwarding`, but only for ruby 3.2+
357
+
358
+ ## 1.3.0
359
+
360
+ ### Cops
361
+
362
+ * Added new `Bundler/DuplicatedGroup` cop
363
+ * Removed `SafeAutoCorrect` key from all cops
364
+
365
+ ### Options
366
+
367
+ * Added `./\**/*.json.jbuilder` to `Exclude` list for `Performance/MultilineAssignmentLayout`
368
+
369
+ ### Dependencies
370
+
371
+ * `rubocop@1.56.0`
372
+
373
+ ## 1.2.0
374
+
375
+ ### Cops
376
+
377
+ * `Metrics/BlockLength/Exclude` add route files
378
+
379
+ ## 1.1.0
380
+
381
+ ### Cops
382
+
383
+ * `Lint/DuplicateMatchPattern`
384
+ * `Lint/MixedCaseRange`
385
+ * `Lint/RedundantRegexpQuantifiers`
386
+ * `Performance/RedundantEqualityComparisonBlock/AllowRegexpMatch` added
387
+ * `Style/ExactRegexpMatch`
388
+ * `Style/MethodCallWithArgsParentheses/Exclude` added `Gemfile`
389
+ * `Style/MultipleComparison/ComparisonsThreshold` added with `2`
390
+ * `Style/RedundantArrayConstructor`
391
+ * `Style/RedundantCurrentDirectoryInPath`
392
+ * `Style/RedundantFilterChain`
393
+ * `Style/RedundantRegexpArgument`
394
+ * `Style/RedundantRegexpConstructor`
395
+ * `Style/ReturnNilInPredicateMethodDefinition`
396
+ * `Style/YAMLFileRead`
397
+
398
+ ### Dependencies
399
+
400
+ * `rubocop@1.53.0`
401
+ * `rubocop-performance@1.18.0`
402
+
403
+ ## 1.0.0
404
+
405
+ * Initial merging migration
406
+ * Replaced rubomatic
407
+ * Replaced rubocop-brands_insurance
408
+
409
+ ### Dependencies
410
+
411
+ * `rubocop@1.49.0`
412
+ * `rubocop-performance@1.16.0`
data/LICENSE CHANGED
@@ -1,22 +1,28 @@
1
+ BSD 3-Clause License
2
+
1
3
  Copyright (c) 2023 Brands Insurance Agency, Inc.
2
4
 
3
- Copyright for portions of project Rubocop are held by Bozhidar Batsov and other contributors, as part of project Rubocop.
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
4
10
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
12
14
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
15
18
 
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,42 +1,43 @@
1
- = Rubomatic
1
+ # Rubomatic
2
2
 
3
3
  Gem for shared rubocop config and custom cops for BrandsInsurance
4
4
 
5
- Put your Ruby code in the file ``lib/rubocop/rubomatic``.
5
+ Put your Ruby code in the file `lib/rubocop/rubomatic`.
6
6
  To experiment with that code, run
7
- ``bin/console`` for an interactive prompt.
7
+ `bin/console` for an interactive prompt.
8
8
 
9
- == Installation
9
+ ## Installation
10
10
 
11
11
  Add this line to your application's Gemfile:
12
12
 
13
- [source,ruby]
14
- ----
13
+ ```ruby
15
14
  gem 'rubocop-rubomatic', require: false
16
- ----
15
+ ```
17
16
 
18
17
  And then execute:
19
18
 
20
- $ bundle install
19
+ ```sh
20
+ $ bundle install
21
+ ```
21
22
 
22
23
  Or install it yourself as:
23
24
 
24
- $ gem install rubocop-rubomatic
25
+ ```sh
26
+ $ gem install rubocop-rubomatic
27
+ ```
25
28
 
26
- == Usage
29
+ ## Usage
27
30
 
28
- Add the following to your ``.rubocop.yml`` config file
31
+ Add the following to your `.rubocop.yml` config file
29
32
 
30
- [source,yaml]
31
- ----
33
+ ```yaml
32
34
  inherit_gem:
33
35
  rubocop-rubomatic: config/rubocop.yml
34
- ----
36
+ ```
35
37
 
36
38
  If you need to override a setting:
37
39
 
38
- [source,yaml]
39
- ----
40
+ ```yaml
40
41
  # Add to Naming/VariableNumber.AllowedIdentifiers
41
42
  inherit_gem:
42
43
  rubocop-rubomatic: config/rubocop.yml
@@ -47,10 +48,9 @@ Naming/VariableNumber:
47
48
  - AllowedIdentifiers
48
49
  AllowedIdentifiers:
49
50
  - street_2
50
- ----
51
+ ```
51
52
 
52
- [source,yaml]
53
- ----
53
+ ```yaml
54
54
  # Completely override Naming/VariableNumber.AllowedIdentifiers
55
55
  inherit_gem:
56
56
  rubocop-rubomatic: config/rubocop.yml
@@ -61,27 +61,26 @@ Naming/VariableNumber:
61
61
  - AllowedIdentifiers
62
62
  AllowedIdentifiers:
63
63
  - street_2
64
- ----
64
+ ```
65
65
 
66
- == Custom Cops
66
+ ## Custom Cops
67
67
 
68
- Add ``Rubomatic/*`` cops to your ``.rubocop.yml`` config file
68
+ Add `Rubomatic/*` cops to your `.rubocop.yml` config file
69
69
 
70
- [source,yaml]
71
- ----
70
+ ```yaml
72
71
  Rubomatic/Style/DisallowedMethods:
73
72
  Enabled: true
74
- ----
73
+ ```
75
74
 
76
- == Departments
75
+ ## Departments
77
76
 
78
- * xref:./docs/cops/layout/README.adoc[``Layout``]
79
- * xref:./docs/cops/style/README.adoc[``Style``]
77
+ * [`Layout`](./docs/cops/layout/README.md)
78
+ * [`Style`](./docs/cops/style/README.md)
80
79
 
81
- == Contributing
80
+ ## Contributing
82
81
 
83
- See xref:./CONTRIBUTING.adoc[CONTRIBUTING] for how to add your own rule
82
+ See [CONTRIBUTING](./CONTRIBUTING.md) for how to add your own rule
84
83
 
85
- == Changelog
84
+ ## Changelog
86
85
 
87
- See xref:./CHANGELOG.adoc[CHANGELOG] see see changes * xref:./docs/cops/super_cool/README.adoc[``SuperCool``]
86
+ See [CHANGELOG](./CHANGELOG.md) to see changes
data/config/bundler.yml CHANGED
@@ -20,7 +20,7 @@ Bundler/GemComment:
20
20
  - '**/*.gemfile'
21
21
  - '**/Gemfile'
22
22
  - '**/gems.rb'
23
- IgnoredGems: [ ]
23
+ AllowedGems: [ ]
24
24
  OnlyFor: [ ]
25
25
 
26
26
  Bundler/GemFilename:
data/config/layout.yml CHANGED
@@ -216,6 +216,7 @@ Layout/EmptyLineAfterGuardClause:
216
216
 
217
217
  Layout/EmptyLineAfterMagicComment:
218
218
  Enabled: true
219
+ NumberOfEmptyLines: 1
219
220
 
220
221
  Layout/EmptyLineAfterMultilineCondition:
221
222
  # This is disabled, because this style is not very common in practice.
@@ -395,7 +396,7 @@ Layout/FirstHashElementIndentation:
395
396
  - align_braces
396
397
 
397
398
  Layout/FirstHashElementLineBreak:
398
- Enabled: false
399
+ Enabled: true
399
400
  AllowMultilineFinalElement: false
400
401
 
401
402
  Layout/FirstMethodArgumentLineBreak:
@@ -483,7 +484,7 @@ Layout/HashAlignment:
483
484
  # Registers an offense for:
484
485
  # function(a: 1,
485
486
  # b: 2)
486
- EnforcedLastArgumentHashStyle: ignore_explicit
487
+ EnforcedLastArgumentHashStyle: always_inspect
487
488
  SupportedLastArgumentHashStyles:
488
489
  - always_inspect
489
490
  - always_ignore
@@ -530,6 +531,7 @@ Layout/LeadingCommentSpace:
530
531
  AllowDoxygenCommentStyle: false
531
532
  AllowGemfileRubyComment: false
532
533
  AllowSteepAnnotation: false
534
+ AllowYARDCommentBlockSeparator: false
533
535
 
534
536
  Layout/LeadingEmptyLines:
535
537
  Enabled: true
@@ -569,9 +571,9 @@ Layout/LineLength:
569
571
  - http
570
572
  - https
571
573
  SplitStrings: true
572
- # The IgnoreCopDirectives option causes the LineLength rule to ignore cop
574
+ # The AllowCopDirectives option causes the LineLength rule to ignore cop
573
575
  # directives like '# rubocop: enable ...' when calculating a line's length.
574
- IgnoreCopDirectives: true
576
+ AllowCopDirectives: true
575
577
  # The AllowedPatterns option is a list of !ruby/regexp and/or string
576
578
  # elements. Strings will be converted to Regexp objects. A line that matches
577
579
  # any regular expression listed in this option will be ignored by LineLength.