rubocop-codeur 0.2.0 → 0.2.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: c60553e7427774219eb421a3ad856abf774951523a9c72e6d0770990ef9f2d82
4
- data.tar.gz: e7ce247889bdac1392bba4677ee6c916a3eadc2885afcfeff46c4db5af8f8a7a
3
+ metadata.gz: e1a90072801743e45a060bdf3b4176f0c006b51417d91d5422c3d3715dcbb2cb
4
+ data.tar.gz: 1e62a3f8cb565fbd2ffa12d63445642c1be4b44064171141d6b6ade4247e7c6c
5
5
  SHA512:
6
- metadata.gz: 91b702d8c2c116a0542f85daaed265b3b2b8777da1f049462d8e309e8c0633cc7f59054d856c29cd7f2f3460ad2400f59ad90c4d8f8564b2683d90e9afb86e9b
7
- data.tar.gz: 59f8a6b58226fc72fe8a039116078b546df45d99246a02211ac4700220d40af5a122322774ad484be0c2880ba8dec958487411c091a3885274d9746864124c69
6
+ metadata.gz: d26e6d8f0a9e20ba030edb70ced0bef86b88cb7fcf8ba94084dba30419ad8df18c6ccd347804d87f4e71e2340368dca29dbcb1a03d08126a6d9a36cfa4057a52
7
+ data.tar.gz: a3c124d88f7ce6732e9cdadeb66fc9d7981d8849b0409d673c2cde9202367a357bb039e4cc0768e40d931e3f76218f0f62f477e4bae7582e334e12585e259afb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-codeur (0.2.0)
4
+ rubocop-codeur (0.2.1)
5
5
  rubocop (~> 1.25)
6
6
  rubocop-github (~> 0.17)
7
7
  rubocop-minitest (~> 0.10, >= 0.10.2)
@@ -19,7 +19,7 @@ GEM
19
19
  ast (2.4.2)
20
20
  concurrent-ruby (1.1.9)
21
21
  docile (1.4.0)
22
- i18n (1.9.0)
22
+ i18n (1.9.1)
23
23
  concurrent-ruby (~> 1.0)
24
24
  minitest (5.15.0)
25
25
  parallel (1.21.0)
data/default.yml CHANGED
@@ -36,10 +36,12 @@ Codeur/RailsAvoidInstanceMethodsInHelpers:
36
36
  Enabled: true
37
37
 
38
38
  Layout/AccessModifierIndentation:
39
+ Enabled: true
39
40
  EnforcedStyle: outdent
40
41
  IndentationWidth: 2
41
42
 
42
43
  Layout/ArgumentAlignment:
44
+ Enabled: true
43
45
  EnforcedStyle: with_first_argument
44
46
 
45
47
  Layout/ClassStructure:
@@ -51,6 +53,7 @@ Layout/ClassStructure:
51
53
  - constants
52
54
  - attributes
53
55
  - has_ancestry
56
+ - delegated_type
54
57
  - belongs_to
55
58
  - has_many
56
59
  - has_one
@@ -123,29 +126,36 @@ Layout/ClassStructure:
123
126
  - validate
124
127
 
125
128
  Layout/FirstArrayElementIndentation:
129
+ Enabled: true
126
130
  EnforcedStyle: consistent
127
131
 
128
132
  Layout/FirstHashElementIndentation:
133
+ Enabled: true
129
134
  EnforcedStyle: consistent
130
135
 
131
136
  Layout/HashAlignment:
137
+ Enabled: true
132
138
  EnforcedHashRocketStyle: table
133
139
  EnforcedColonStyle: table
134
140
 
135
141
  Layout/LineLength:
142
+ Enabled: true
136
143
  Max: 200
137
144
  AutoCorrect: false
138
145
  Exclude:
139
146
  - 'db/migrate/*'
140
147
 
141
148
  Layout/MultilineMethodCallIndentation:
149
+ Enabled: true
142
150
  EnforcedStyle: indented
143
151
 
144
152
  Layout/ParameterAlignment:
153
+ Enabled: true
145
154
  EnforcedStyle: with_fixed_indentation
146
155
  IndentationWidth: 2
147
156
 
148
157
  Lint/DuplicateMethods:
158
+ Enabled: true
149
159
  Exclude:
150
160
  - 'db/migrate/*'
151
161
 
@@ -159,11 +169,13 @@ Lint/StructNewOverride:
159
169
  Enabled: true
160
170
 
161
171
  Metrics/AbcSize:
172
+ Enabled: true
162
173
  Max: 65
163
174
  Exclude:
164
175
  - 'db/migrate/*'
165
176
 
166
177
  Metrics/BlockLength:
178
+ Enabled: true
167
179
  Max: 60
168
180
  Exclude:
169
181
  - 'config/routes.rb'
@@ -171,28 +183,34 @@ Metrics/BlockLength:
171
183
  - 'app/states/*'
172
184
 
173
185
  Metrics/ClassLength:
186
+ Enabled: true
174
187
  Max: 300
175
188
  Exclude:
176
189
  - 'app/models/**/*'
177
190
 
178
191
  Metrics/CyclomaticComplexity:
192
+ Enabled: true
179
193
  Max: 10
180
194
 
181
195
  Metrics/MethodLength:
196
+ Enabled: true
182
197
  Max: 60
183
198
  Exclude:
184
199
  - 'db/migrate/*'
185
200
 
186
201
  Metrics/ModuleLength:
202
+ Enabled: true
187
203
  Max: 300
188
204
 
189
205
  Metrics/PerceivedComplexity:
206
+ Enabled: true
190
207
  Max: 10
191
208
 
192
209
  Minitest/TestMethodName:
193
210
  Enabled: false
194
211
 
195
212
  Minitest/MultipleAssertions:
213
+ Enabled: true
196
214
  Max: 30
197
215
 
198
216
  # Disabled because it doesn't with symbols like: record_001
@@ -203,16 +221,20 @@ Rails/BulkChangeTable:
203
221
  Enabled: false
204
222
 
205
223
  Rails/CreateTableWithTimestamps:
224
+ Enabled: true
206
225
  Exclude:
207
226
  - 'db/migrate/{2012,2013,2014,2015,2016,2017,2018}*.rb'
208
227
 
209
228
  Rails/EnvironmentVariableAccess:
229
+ Enabled: true
210
230
  AllowReads: true
211
231
 
212
232
  Rails/FilePath:
233
+ Enabled: true
213
234
  EnforcedStyle: arguments
214
235
 
215
236
  Rails/ReversibleMigration:
237
+ Enabled: true
216
238
  Exclude:
217
239
  - 'db/migrate/{2012,2013,2014,2015,2016,2017,2018}*.rb'
218
240
 
@@ -230,6 +252,7 @@ Rails/TimeZone:
230
252
  AutoCorrect: false
231
253
 
232
254
  Rails/UnknownEnv:
255
+ Enabled: true
233
256
  Environments:
234
257
  - development
235
258
  - test
@@ -240,18 +263,22 @@ Style/AsciiComments:
240
263
  Enabled: false
241
264
 
242
265
  Style/ClassAndModuleChildren:
266
+ Enabled: true
243
267
  AutoCorrect: true
244
268
 
245
269
  Style/ConditionalAssignment:
270
+ Enabled: true
246
271
  Enabled: false
247
272
 
248
273
  Style/Documentation:
249
274
  Enabled: false
250
275
 
251
276
  Style/EmptyMethod:
277
+ Enabled: true
252
278
  EnforcedStyle: expanded
253
279
 
254
280
  Style/GuardClause:
281
+ Enabled: true
255
282
  MinBodyLength: 3
256
283
 
257
284
  Style/HashEachMethods:
@@ -279,9 +306,11 @@ Style/NumericPredicate:
279
306
  Enabled: false
280
307
 
281
308
  Style/StringLiterals:
309
+ Enabled: true
282
310
  EnforcedStyle: single_quotes
283
311
 
284
312
  Style/SymbolArray:
313
+ Enabled: true
285
314
  MinSize: 7
286
315
 
287
316
  Style/FormatStringToken:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Codeur
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-codeur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codeur