arcadia_cops 3.5.3 → 4.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/config/config.yml +3 -4
  3. data/config/enabled.yml +17 -36
  4. metadata +29 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a307ceaf1d85dbfb6fdc61340ac7a377c1ccce6f425dce4638b430c4deea5577
4
- data.tar.gz: 10596c1b66bc0a161d2d36472800919baa0eff4f3ce2125a8ff2193202cfb234
3
+ metadata.gz: 714b9d3dc23913b5a89337e4a5551632776738ef54046942157ce6d06c112a7a
4
+ data.tar.gz: b7c9d8e5a4e0081656dadf9751c6fa268f163464647c088e24a9862e8d3b3160
5
5
  SHA512:
6
- metadata.gz: 9c96aab67cfbd5b4200e56234bad254b63487a53520000be9f21905f83e2df33a25ce31b7c8364bdc256a2be314dc803f48b2dcb1e897367d08b20239f5a90b3
7
- data.tar.gz: 2a9ec0ad89dbc322c8014cc861889fa03d1a5ed680aef2933e903d724b34c39c94bcd6b2ef7cea4c879f4500864588a32fa807eaf1526f2152e58983458f5b47
6
+ metadata.gz: 966b8836e19926088a5df02b7f6e466c2afa13c34df55f2000e491bb251f3ea054c806ab255f9f3dc0e63d2b4c17a3a9c4faa35e88bbcbe6b86b1abf9c7e7637
7
+ data.tar.gz: 5d8b2ed5eb87eaea927afa7f76d7499cd4674b7d781eb10605e64b77ebe6ed453fc6c3b1cfda42b8a6e29d59c20d10324f596f96f27c0cd73b8c66a945e36d15
data/config/config.yml CHANGED
@@ -1,7 +1,9 @@
1
1
  # This is the default configuration file. Enabling and disabling is configured
2
2
  # in separate files. This file adds all other parameters apart from Enabled.
3
3
 
4
- require: rubocop-rspec
4
+ require:
5
+ - rubocop-rails
6
+ - rubocop-rspec
5
7
 
6
8
  # Common configuration.
7
9
  AllCops:
@@ -71,6 +73,3 @@ AllCops:
71
73
  # Else if .ruby-version exists and it contains an MRI version it is used.
72
74
  # Otherwise we fallback to the oldest officially supported Ruby version (2.1).
73
75
  # TargetRubyVersion: 2.5 # SPECIFY IN PROJECT .ruby-version file
74
-
75
- Rails:
76
- Enabled: false
data/config/enabled.yml CHANGED
@@ -6,18 +6,18 @@ Layout/AccessModifierIndentation:
6
6
  Description: Check indentation of private/protected visibility modifiers.
7
7
  StyleGuide: '#indent-public-private-protected'
8
8
 
9
- Layout/AlignArray:
9
+ Layout/ArrayAlignment:
10
10
  Description: >-
11
11
  Align the elements of an array literal if they span more than
12
12
  one line.
13
13
  StyleGuide: '#align-multiline-arrays'
14
14
 
15
- Layout/AlignHash:
15
+ Layout/HashAlignment:
16
16
  Description: >-
17
17
  Align the elements of a hash literal if they span more than
18
18
  one line.
19
19
 
20
- Layout/AlignParameters:
20
+ Layout/ParameterAlignment:
21
21
  Description: Align the parameters of a method call if they span more than one line.
22
22
  StyleGuide: "#no-double-indent"
23
23
  EnforcedStyle: with_fixed_indentation
@@ -80,10 +80,6 @@ Style/CommentAnnotation:
80
80
  (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
81
81
  StyleGuide: '#annotate-keywords'
82
82
 
83
- Naming/ClassAndModuleCamelCase:
84
- Description: 'Use CamelCase for classes and modules.'
85
- StyleGuide: '#camelcase-classes'
86
-
87
83
  Style/ClassAndModuleChildren:
88
84
  Description: 'Checks style of children classes and modules.'
89
85
 
@@ -166,7 +162,7 @@ Style/HashSyntax:
166
162
  { :a => 1, :b => 2 }.
167
163
  StyleGuide: '#hash-literals'
168
164
 
169
- Layout/IndentHash:
165
+ Layout/FirstHashElementIndentation:
170
166
  Description: 'Checks the indentation of the first key in a hash literal.'
171
167
 
172
168
  Style/Lambda:
@@ -220,7 +216,7 @@ Layout/SpaceInsideParens:
220
216
  Layout/SpaceBeforeSemicolon:
221
217
  Description: 'No spaces before semicolons.'
222
218
 
223
- Layout/Tab:
219
+ Layout/IndentationStyle:
224
220
  Description: 'No hard tabs.'
225
221
  StyleGuide: '#spaces-indentation'
226
222
 
@@ -228,7 +224,7 @@ Layout/TrailingWhitespace:
228
224
  Description: 'Avoid trailing whitespace.'
229
225
  StyleGuide: '#no-trailing-whitespace'
230
226
 
231
- Layout/TrailingBlankLines:
227
+ Layout/TrailingEmptyLines:
232
228
  Description: 'Checks trailing blank lines and final newline.'
233
229
  StyleGuide: '#newline-eof'
234
230
 
@@ -249,14 +245,6 @@ Metrics/AbcSize:
249
245
  Enabled: true
250
246
  Severity: refactor
251
247
 
252
- ######### PERFORMANCE #########
253
-
254
- Performance/Size:
255
- Description: >-
256
- Use `size` instead of `count` for counting
257
- the number of elements in `Array` and `Hash`.
258
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
259
-
260
248
  ######### RAILS #########
261
249
 
262
250
  Rails/ActionFilter:
@@ -382,7 +370,7 @@ Lint/DuplicateCaseCondition:
382
370
  Lint/DuplicateMethods:
383
371
  Description: 'Check for duplicate method definitions.'
384
372
 
385
- Lint/DuplicatedKey:
373
+ Lint/DuplicateHashKey:
386
374
  Description: 'Check for duplicate keys in hash literals.'
387
375
 
388
376
  Lint/EachWithObjectArgument:
@@ -406,7 +394,7 @@ Lint/EmptyWhen:
406
394
  Layout/EndAlignment:
407
395
  Description: 'Align ends correctly.'
408
396
 
409
- Lint/EndInMethod:
397
+ Style/EndBlock:
410
398
  Description: 'END blocks should not be placed inside method definitions.'
411
399
 
412
400
  Lint/EnsureReturn:
@@ -421,7 +409,7 @@ Lint/FloatOutOfRange:
421
409
  Lint/FormatParameterMismatch:
422
410
  Description: 'The number of parameters to format/sprint must match the fields.'
423
411
 
424
- Lint/HandleExceptions:
412
+ Lint/SuppressedException:
425
413
  Description: "Don't suppress exception."
426
414
  StyleGuide: '#dont-hide-exceptions'
427
415
 
@@ -500,7 +488,7 @@ Lint/ShadowingOuterLocalVariable:
500
488
  Do not use the same name as outer local variable
501
489
  for block arguments or block local variables.
502
490
 
503
- Lint/StringConversionInInterpolation:
491
+ Lint/RedundantStringCoercion:
504
492
  Description: 'Checks for Object#to_s usage in string interpolation.'
505
493
  StyleGuide: '#no-to-s'
506
494
 
@@ -510,13 +498,13 @@ Lint/UnderscorePrefixedVariableName:
510
498
  Lint/UnifiedInteger:
511
499
  Description: 'Use Integer instead of Fixnum or Bignum'
512
500
 
513
- Lint/UnneededCopDisableDirective:
501
+ Lint/RedundantCopDisableDirective:
514
502
  Description: >-
515
503
  Checks for rubocop:disable comments that can be removed.
516
504
  Note: this cop is not disabled when disabling all cops.
517
505
  It must be explicitly disabled.
518
506
 
519
- Lint/UnneededSplatExpansion:
507
+ Lint/RedundantSplatExpansion:
520
508
  Description: 'Checks for splat unnecessarily being called on literals'
521
509
 
522
510
  Lint/UnusedBlockArgument:
@@ -538,7 +526,7 @@ Lint/UselessAssignment:
538
526
  Description: 'Checks for useless assignment to a local variable.'
539
527
  StyleGuide: '#underscore-unused-vars'
540
528
 
541
- Lint/UselessComparison:
529
+ Lint/BinaryOperatorWithIdenticalOperands:
542
530
  Description: 'Checks for comparison of something with itself.'
543
531
 
544
532
  Lint/UselessElseWithoutRescue:
@@ -567,14 +555,11 @@ Layout/FirstArrayElementLineBreak:
567
555
  Description: Checks for a line break before the first element in a multi-line array.
568
556
 
569
557
  Layout/IndentationConsistency:
570
- Description: Keep indentation straight.
558
+ Description: This cop checks for inconsistent indentation.
571
559
  StyleGuide: "#spaces-indentation"
572
- EnforcedStyle: rails
573
-
574
- Lint/Syntax:
575
- Description: Checks syntax error
560
+ EnforcedStyle: indented_internal_methods
576
561
 
577
- Lint/UnneededRequireStatement:
562
+ Lint/RedundantRequireStatement:
578
563
  Description: Checks for unnecessary `require` statement.
579
564
 
580
565
  Naming/AsciiIdentifiers:
@@ -618,7 +603,7 @@ Style/TrailingBodyOnModule:
618
603
 
619
604
  # RSpec
620
605
 
621
- FactoryBot/AttributeDefinedStatically:
606
+ RSpec/FactoryBot/AttributeDefinedStatically:
622
607
  Description: Always declare attribute values as blocks.
623
608
  StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/AttributeDefinedStatically
624
609
 
@@ -644,10 +629,6 @@ RSpec/ImplicitExpect:
644
629
  EnforcedStyle: is_expected
645
630
  StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ImplicitExpect
646
631
 
647
- RSpec/InvalidPredicateMatcher:
648
- Description: Checks invalid usage for predicate matcher.
649
- StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InvalidPredicateMatcher
650
-
651
632
  RSpec/IteratedExpectation:
652
633
  Description: Check that `all` matcher is used instead of iterating over an array.
653
634
  StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IteratedExpectation
metadata CHANGED
@@ -1,43 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcadia_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.3
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - justin
8
- autorequire:
7
+ - engineering
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-08 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.63.1
19
+ version: '1.13'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.63.1
26
+ version: '1.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.9'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.9'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rubocop-rspec
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - '='
45
+ - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '1.32'
47
+ version: '2.2'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - '='
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '1.32'
54
+ version: '2.2'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -68,7 +82,7 @@ dependencies:
68
82
  version: '0'
69
83
  description: Contains enabled rubocops for arcadia power ruby repos.
70
84
  email:
71
- - justin@arcadiapower.com
85
+ - engineering@arcadia.com
72
86
  executables: []
73
87
  extensions: []
74
88
  extra_rdoc_files: []
@@ -80,7 +94,7 @@ homepage: https://github.com/ArcadiaPower/arcadia_cops/
80
94
  licenses:
81
95
  - MIT
82
96
  metadata: {}
83
- post_install_message:
97
+ post_install_message:
84
98
  rdoc_options: []
85
99
  require_paths:
86
100
  - lib
@@ -96,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
110
  version: '0'
97
111
  requirements: []
98
112
  rubygems_version: 3.1.2
99
- signing_key:
113
+ signing_key:
100
114
  specification_version: 4
101
115
  summary: Arcadia Power Style Cops
102
116
  test_files: []