rt_rubocop_defaults 2.5.0 → 2.6.1

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: f4b84312d1c06170b7f30049fa17e98c58ea2abec4f403b1fbea7e503b6607d9
4
- data.tar.gz: dca926fedd24d471810c8673a2b8826353a559dd8c3294614281da330dd5a754
3
+ metadata.gz: 0f3fb9cec0f2bd1ffa8da67746e239d3242abaae9c0d460317a6e551d6c7ecca
4
+ data.tar.gz: c47ff1b0a649884abd0c51dfcc2e432344b276d7254a7a40a71c34cfb69ff65c
5
5
  SHA512:
6
- metadata.gz: 224f444c803ec26acc705b3321079b4738bc8a1ff34a9d9369f43d13a08d33c96cde8876edd4461bc6a74788c86ba032048b45710af7d16fa5954d53f1cfb070
7
- data.tar.gz: 2d476213a8dbbcc79a00c93a9ba82f5e5e1bee87406307724b4d34a41837300b4365d72ad81c5c2188f9240574086e6096d2568f517f132e230ea8a53a2ca9b5
6
+ metadata.gz: 2bcdccf93af15eb95a67092d5f931f4a61cc40133840ab98d23930d9641e760b2f9dab0235152a47353b4bddbbe6b8edb986498307d3946dd06603ce774e194b
7
+ data.tar.gz: 8777bb8f4d19a2e08e9124cb9b50a6813555a56bc99f03852119bc916377815fd39aed722d798de8146878f015062451a80fc6b1d47d45d9600a14c84bdcaecc
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,96 +64,137 @@ 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#rspecfilepath
160
+ RSpec/FilePath:
161
+ Enabled: false # It's deprecated anyway
162
+
163
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecspecfilepathformat
164
+ RSpec/SpecFilePathFormat:
135
165
  Enabled: false
136
166
 
137
- RSpec/FilePath:
138
- Exclude:
139
- - spec/**/*
167
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecspecfilepathsuffix
168
+ RSpec/SpecFilePathSuffix:
169
+ Enabled: true
140
170
 
171
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmessageexpectation
141
172
  RSpec/MessageExpectation:
142
173
  Enabled: false
143
174
 
175
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmultipleexpectations
144
176
  RSpec/MultipleExpectations:
145
177
  Enabled: false
146
178
 
147
- RSpec/NamedSubject:
179
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecmultiplememoizedhelpers
180
+ RSpec/MultipleMemoizedHelpers:
148
181
  Enabled: false
149
182
 
150
- RSpec/NestedGroups:
151
- Enabled: false
183
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnamedsubject
184
+ RSpec/NamedSubject:
185
+ EnforcedStyle: named_only
152
186
 
153
- RSpec/MultipleMemoizedHelpers:
187
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnestedgroups
188
+ RSpec/NestedGroups:
154
189
  Enabled: false
155
190
 
191
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnoexpectationexample
156
192
  RSpec/NoExpectationExample:
157
193
  AllowedPatterns:
158
- - 'verify'
194
+ - 'verify'
195
+
196
+ #### FactoryBot
197
+
198
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html#rspecfactorybotsyntaxmethods
199
+ RSpec/FactoryBot/SyntaxMethods:
200
+ Enabled: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RTRuboCopDefaults
4
- VERSION = "2.5.0"
4
+ VERSION = "2.6.1"
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.5.0
4
+ version: 2.6.1
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-11-24 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