gc_ruboconfig 2.30.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/rails.yml +86 -0
  3. data/rubocop.yml +70 -0
  4. metadata +30 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7570c08ee0a1adcdd100830685a4f92e21256ddbe09bcf85804442df4878230b
4
- data.tar.gz: acb43c4dde4f46a169c387c1abdf1a46e4d8191b9b5c03a12cb5f969925a9160
3
+ metadata.gz: f851228ed2c4e0b9142708b3145e26c5988dd239c789c4d7b5bb0b3b0a80d7fd
4
+ data.tar.gz: 1463b5dc0e97b339552d49289097d03395b11b99fe9c3f2a52f65aa7914f7424
5
5
  SHA512:
6
- metadata.gz: c3a76b4a30445545d5ba80acd8d0953f7a1405fb4adb1d7e69eb610c46b03dae48b0382a3035139748ce1ee95e812f4cd21ef925914e7752f68367bd6803421a
7
- data.tar.gz: 771c13dc11c8b1d52b73345b0be732838e53af2e2b016095abaf5980870243664e1cbba2b22ea329f34c1bbb1e86e3db3768f2442f7ea49bdbfbd0bd260c957e
6
+ metadata.gz: 7364e7da3b76daaa1ecdcf8c3bc70116917432c2875fc5f63f60de3d8a92eee63aa04c6dd62c93f8d9733b41729919997b1d971adc40a3f6cdd2187563ae4d75
7
+ data.tar.gz: 2a61f14446dee394aabc1a5e4171af8144d1fd1ac6ab8de4453307dc83f00a8f17bf54bdd7d28b51f5933194d00c4f553443ed21092daa30ab43d3346d451022
data/rails.yml ADDED
@@ -0,0 +1,86 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ Rails/AddColumnIndex:
5
+ Enabled: false
6
+
7
+ Rails/CompactBlank:
8
+ Enabled: true
9
+
10
+ Rails/DurationArithmetic:
11
+ Enabled: true
12
+
13
+ Rails/EagerEvaluationLogMessage:
14
+ Enabled: true
15
+
16
+ Rails/ExpandedDateRange:
17
+ Enabled: true
18
+
19
+ Rails/I18nLocaleAssignment:
20
+ Enabled: true
21
+
22
+ Rails/RedundantPresenceValidationOnBelongsTo:
23
+ Enabled: true
24
+
25
+ Rails/RedundantTravelBack:
26
+ Enabled: true
27
+
28
+ Rails/RootJoinChain:
29
+ Enabled: true
30
+
31
+ Rails/TimeZoneAssignment:
32
+ Enabled: true
33
+
34
+ Rails/UnusedIgnoredColumns:
35
+ Enabled: true
36
+
37
+ Rails/ActiveRecordCallbacksOrder:
38
+ Enabled: true
39
+
40
+ Rails/AfterCommitOverride:
41
+ Enabled: true
42
+
43
+ Rails/AttributeDefaultBlockValue:
44
+ Enabled: true
45
+
46
+ Rails/FindById:
47
+ Enabled: true
48
+
49
+ Rails/Inquiry:
50
+ Enabled: true
51
+
52
+ Rails/MailerName:
53
+ Enabled: true
54
+
55
+ Rails/MatchRoute:
56
+ Enabled: true
57
+
58
+ Rails/NegateInclude:
59
+ Enabled: true
60
+
61
+ Rails/Pluck:
62
+ Enabled: true
63
+
64
+ Rails/PluckInWhere:
65
+ Enabled: true
66
+
67
+ Rails/RenderInline:
68
+ Enabled: true
69
+
70
+ Rails/RenderPlainText:
71
+ Enabled: true
72
+
73
+ Rails/ShortI18n:
74
+ Enabled: false
75
+
76
+ Rails/SquishedSQLHeredocs:
77
+ Enabled: true
78
+
79
+ Rails/WhereEquals:
80
+ Enabled: true
81
+
82
+ Rails/WhereExists:
83
+ Enabled: true
84
+
85
+ Rails/WhereNot:
86
+ Enabled: true
data/rubocop.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  require:
2
2
  - rubocop-rspec
3
+ - rubocop-rails
3
4
  - rubocop-performance
4
5
 
5
6
  AllCops:
@@ -36,6 +37,9 @@ Lint/AmbiguousRange:
36
37
  Metrics/ClassLength:
37
38
  Enabled: false
38
39
 
40
+ Metrics/AbcSize:
41
+ Max: 60
42
+
39
43
  Layout/LineLength:
40
44
  Max: 90
41
45
 
@@ -53,10 +57,14 @@ Metrics/ModuleLength:
53
57
 
54
58
  Metrics/ParameterLists:
55
59
  CountKeywordArgs: false
60
+ Max: 10
56
61
 
57
62
  Metrics/PerceivedComplexity:
58
63
  Max: 11
59
64
 
65
+ Metrics/CyclomaticComplexity:
66
+ Max: 10
67
+
60
68
  Style/AsciiComments:
61
69
  Enabled: false
62
70
 
@@ -496,3 +504,65 @@ Layout/SpaceBeforeBrackets:
496
504
 
497
505
  Layout/LineEndStringConcatenationIndentation:
498
506
  Enabled: true
507
+
508
+ Style/HashSyntax:
509
+ Enabled: false
510
+
511
+ Style/FileRead:
512
+ Enabled: false
513
+
514
+ Style/FileWrite:
515
+ Enabled: false
516
+
517
+ Style/MapToHash:
518
+ Enabled: true
519
+
520
+ Style/NumberedParameters:
521
+ Enabled: true
522
+
523
+ Style/NumberedParametersLimit:
524
+ Enabled: true
525
+ Max: 2
526
+
527
+ Style/OpenStructUse:
528
+ Enabled: false
529
+
530
+ Style/SelectByRegexp:
531
+ Enabled: false
532
+
533
+ Security/IoMethods:
534
+ Enabled: true
535
+
536
+ Gemspec/RequireMFA:
537
+ Enabled: true
538
+
539
+ Lint/AmbiguousOperatorPrecedence:
540
+ Enabled: true
541
+
542
+ Lint/IncompatibleIoSelectWithFiberScheduler:
543
+ Enabled: true
544
+
545
+ Lint/RequireRelativeSelfPath:
546
+ Enabled: true
547
+
548
+ Lint/UselessRuby2Keywords:
549
+ Enabled: true
550
+
551
+ Naming/BlockForwarding:
552
+ Enabled: true
553
+ EnforcedStyle: "explicit"
554
+
555
+ RSpec/ExcessiveDocstringSpacing:
556
+ Enabled: true
557
+
558
+ RSpec/SubjectDeclaration:
559
+ Enabled: true
560
+
561
+ RSpec/Rails/AvoidSetupHook:
562
+ Enabled: true
563
+
564
+ Performance/ConcurrentMonotonicTime:
565
+ Enabled: true
566
+
567
+ Performance/StringIdentifierArgument:
568
+ Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gc_ruboconfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.30.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-05 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,55 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.19'
19
+ version: '1.25'
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: '1.19'
26
+ version: '1.25'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rubocop-rspec
28
+ name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.0
33
+ version: '1.13'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.0
40
+ version: '1.13'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop-performance
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 2.13.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 2.13.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rspec
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '1.11'
61
+ version: 2.8.0
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '1.11'
55
- description:
68
+ version: 2.8.0
69
+ description:
56
70
  email:
57
71
  - developers@gocardless.com
58
72
  executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
76
+ - rails.yml
62
77
  - rubocop.yml
63
78
  homepage: https://github.com/gocardless/ruboconfig
64
79
  licenses:
65
80
  - MIT
66
81
  metadata: {}
67
- post_install_message:
82
+ post_install_message:
68
83
  rdoc_options: []
69
84
  require_paths:
70
85
  - lib
@@ -79,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
94
  - !ruby/object:Gem::Version
80
95
  version: '0'
81
96
  requirements: []
82
- rubygems_version: 3.0.3
83
- signing_key:
97
+ rubygems_version: 3.2.22
98
+ signing_key:
84
99
  specification_version: 4
85
100
  summary: GoCardless's shared Rubocop configuration, conforming to our house style
86
101
  test_files: []