rt_rubocop_defaults 2.4.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31fd45af71b36b4ea2ad41b5d614a771ada2873dd8ddf9759259b90448701983
4
- data.tar.gz: 33c7e0b97737a486f7c32adc6165b1cf7214e234f1bc86d1fc390c0427b5360e
3
+ metadata.gz: 3466c4d4d8794a3f2b08b08e12a181b621fc1c125cbcc6ea3436d324045422d2
4
+ data.tar.gz: 48cef9a660490480d8af46135bd247c1bb4cbc3cbe985c0f337ac174d0cc05c7
5
5
  SHA512:
6
- metadata.gz: d361c75e1bdfba0de97072a16a93e6510c030c45b1499fd528204aaa8944110817663d38d90ed2210f28eec3340fedba0897001f528726a2d60ea5e2fa682810
7
- data.tar.gz: b1b61b5a094bf9f4d8fcd93193685130c1c49120e0502a508013c201193448662adbf5e0035f06c8a121f3f864ee98c1fc7b8bcb851afffbf906f118105d174f
6
+ metadata.gz: 76bcb6ab7601eeb7ff39e81247f768f877651a0edeef315f45720518e6b62362277ae6885ce6c91d881a66c4677ecdeed8576f8e8193d1f7d4e7409069b13b53
7
+ data.tar.gz: cd8a45300eb504089844e6bde73a5b07a7c0d444fbc8540eb9bf4e6aafab6a913bd545b9c880baa433cf5183cb59a0c5660f29daf488c4b43cce0ce1c0da7fd5
data/config/default.yml CHANGED
@@ -7,8 +7,10 @@ AllCops:
7
7
  # HINT: New cops are enabled by default and have to be disabled if they do not fit the projects needs
8
8
  NewCops: enable
9
9
 
10
+
10
11
  ### Lint
11
12
 
13
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintnestedmethoddefinition
12
14
  Lint/NestedMethodDefinition:
13
15
  Exclude:
14
16
  - api/sinatra/**/*
@@ -16,6 +18,7 @@ Lint/NestedMethodDefinition:
16
18
 
17
19
  ### Metrics
18
20
 
21
+ # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsabcsize
19
22
  Metrics/AbcSize:
20
23
  Max: 18
21
24
  Severity: refactor
@@ -23,6 +26,7 @@ Metrics/AbcSize:
23
26
  - 'api/sinatra/**/*'
24
27
  - 'app/api/routes.rb'
25
28
 
29
+ # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsblocklength
26
30
  Metrics/BlockLength:
27
31
  Exclude:
28
32
  - '*.gemspec'
@@ -33,20 +37,16 @@ Metrics/BlockLength:
33
37
  - 'config/initializers/**/*'
34
38
  - 'spec/**/*'
35
39
 
40
+ # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsclasslength
36
41
  Metrics/ClassLength:
37
42
  Exclude:
38
43
  - spec/**/*
39
44
 
45
+ # https://docs.rubocop.org/rubocop/cops_metrics.html#metricscyclomaticcomplexity
40
46
  Metrics/CyclomaticComplexity:
41
47
  Severity: refactor
42
48
 
43
- Layout/LineLength:
44
- Max: 119
45
- Exclude:
46
- - Guardfile
47
- - Gemfile
48
- IgnoreCopDirectives: true
49
-
49
+ # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsmethodlength
50
50
  Metrics/MethodLength:
51
51
  CountComments: false # count full line comments?
52
52
  Max: 10
@@ -55,6 +55,7 @@ Metrics/MethodLength:
55
55
  - 'api/sinatra/**/*'
56
56
  - 'app/api/routes.rb'
57
57
 
58
+ # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsmodulelength
58
59
  Metrics/ModuleLength:
59
60
  Exclude:
60
61
  - 'app/api/routes.rb'
@@ -63,92 +64,133 @@ Metrics/ModuleLength:
63
64
 
64
65
  ### Style / Layout
65
66
 
67
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layoutlinelength
68
+ Layout/LineLength:
69
+ Max: 119
70
+ Exclude:
71
+ - Guardfile
72
+ - Gemfile
73
+ IgnoreCopDirectives: true
74
+
75
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layoutmultilineoperationindentation
76
+ Layout/MultilineOperationIndentation:
77
+ Description: Checks indentation of binary operations that span more than one line.
78
+ EnforcedStyle: indented
79
+
66
80
  #### Hash
81
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layouthashalignment
67
82
  Layout/HashAlignment:
68
83
  EnforcedColonStyle: table
69
84
  EnforcedHashRocketStyle: table
70
85
 
86
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashsyntax
71
87
  Style/HashSyntax:
72
88
  EnforcedStyle: ruby19_no_mixed_keys
73
89
 
90
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformkeys
74
91
  Style/HashTransformKeys:
75
92
  Enabled: false
76
93
 
94
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformvalues
77
95
  Style/HashTransformValues:
78
96
  Enabled: false
79
97
 
80
- Layout/MultilineOperationIndentation:
81
- Description: Checks indentation of binary operations that span more than one line.
82
- EnforcedStyle: indented
83
-
84
98
  #### Rest
99
+ # https://docs.rubocop.org/rubocop/cops_style.html#styledocumentation
85
100
  Style/Documentation:
86
101
  Enabled: false
87
102
 
103
+ # https://docs.rubocop.org/rubocop/cops_style.html#styledoublenegation
88
104
  Style/DoubleNegation:
89
105
  Enabled: false
90
106
 
107
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
91
108
  Style/ExponentialNotation:
92
- # https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
93
109
  EnforcedStyle: engineering
94
110
 
111
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylenumericliterals
95
112
  Style/NumericLiterals:
96
113
  Description: Add underscores to large numeric literals to improve their readability.
97
114
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
98
115
  Enabled: false
99
116
 
117
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleperlbackrefs
100
118
  Style/PerlBackrefs:
101
119
  Enabled: false
102
120
 
121
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleraiseargs
103
122
  Style/RaiseArgs:
104
123
  EnforcedStyle: compact
105
124
 
125
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleregexpliteral
106
126
  Style/RegexpLiteral:
107
127
  Enabled: false
108
128
 
129
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylesignalexception
109
130
  Style/SignalException:
110
131
  EnforcedStyle: only_raise
111
132
 
133
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylestringliterals
112
134
  Style/StringLiterals:
113
135
  EnforcedStyle: double_quotes
114
136
 
137
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleoptionalbooleanparameter
115
138
  Style/OptionalBooleanParameter:
116
139
  Enabled: false
117
140
 
118
-
119
141
  ### RSpec
120
142
 
143
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecdescribeclass
121
144
  RSpec/DescribeClass:
122
145
  Exclude:
123
146
  - spec/integration/**/*
124
147
 
148
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecexamplelength
125
149
  RSpec/ExampleLength:
126
150
  Enabled: false
127
151
 
152
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecexamplewording
128
153
  RSpec/ExampleWording:
129
154
  IgnoredWords:
130
155
  - only
131
156
  CustomTransform:
132
157
  have: has
133
158
 
134
- RSpec/FactoryBot/SyntaxMethods:
159
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecspecfilepathformat
160
+ RSpec/SpecFilePathFormat:
135
161
  Enabled: false
136
162
 
137
- RSpec/FilePath:
138
- Exclude:
139
- - spec/**/*
163
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecspecfilepathsuffix
164
+ RSpec/SpecFilePathSuffix:
165
+ Enabled: true
140
166
 
167
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmessageexpectation
141
168
  RSpec/MessageExpectation:
142
169
  Enabled: false
143
170
 
171
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmultipleexpectations
144
172
  RSpec/MultipleExpectations:
145
173
  Enabled: false
146
174
 
147
- RSpec/NamedSubject:
175
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmultiplememoizedhelpers
176
+ RSpec/MultipleMemoizedHelpers:
148
177
  Enabled: false
149
178
 
179
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnamedsubject
180
+ RSpec/NamedSubject:
181
+ EnforcedStyle: named_only
182
+
183
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnestedgroups
150
184
  RSpec/NestedGroups:
151
185
  Enabled: false
152
186
 
153
- RSpec/MultipleMemoizedHelpers:
187
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnoexpectationexample
188
+ RSpec/NoExpectationExample:
189
+ AllowedPatterns:
190
+ - 'verify'
191
+
192
+ #### FactoryBot
193
+
194
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html#rspecfactorybotsyntaxmethods
195
+ RSpec/FactoryBot/SyntaxMethods:
154
196
  Enabled: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RTRuboCopDefaults
4
- VERSION = "2.4.0"
4
+ VERSION = "2.6.0"
5
5
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "rubocop", "~> 1.25"
25
+ spec.add_dependency "rubocop", "~> 1.57"
26
26
  spec.add_development_dependency "bundler", "> 1.13", "< 3"
27
27
  spec.add_development_dependency "rake", "> 10.0"
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rt_rubocop_defaults
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Eger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2023-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.25'
19
+ version: '1.57'
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.25'
26
+ version: '1.57'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement