bookingsync-stylecheck 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 77fd3e6c3dd57df90127d2393ba4ca6f2f7c127e
4
- data.tar.gz: 1e447208220d1eb80438c165fd16255fbb980833
3
+ metadata.gz: 6c539661e9132a29026802785cae9e44badb1367
4
+ data.tar.gz: 659411ea93b4d0ae261c6117f96ea9825b9d046f
5
5
  SHA512:
6
- metadata.gz: bc49357075984611bd074bf872ff50b7ec2d5ab05e7a7ae7e1db4ce5dfa1004937fe3a433a8ddf5798f7e6104260d73f17dc5642871e0a38c86322eefea281bf
7
- data.tar.gz: b303efb45daf4af90004349dcb70105d81942865be8430090947f2ed354a6fe03e5c2f9c9a768e7a784a5870f609a28e231a56ca0c6bf7171994db26eca28da9
6
+ metadata.gz: 61f2fe2d4b10412be3b4ab92d42972cb7c154a591e5526286f13a00e0f4d4a0ab9a459f008da3df6b3522cf5cda3daaa6acf603da149b76fedbbfab4b77f585b
7
+ data.tar.gz: 3934fe9e9562a27c73d7831e8d5d9caead7a89f017c5a11b338625e8d27b782c948d3c3f1f66bbb3c223d3473464a4c9f51dcce0bd904466221daab35fbc8b8c
data/config/rubocop.yml CHANGED
@@ -75,9 +75,6 @@ Style/CharacterLiteral:
75
75
  Style/ClassAndModuleCamelCase:
76
76
  Enabled: true
77
77
 
78
- Style/ClassAndModuleChildren:
79
- Enabled: false
80
-
81
78
  Style/ClassCheck:
82
79
  Enabled: true
83
80
 
@@ -96,26 +93,14 @@ Style/CommentAnnotation:
96
93
  Style/CommentIndentation:
97
94
  Enabled: true
98
95
 
99
- Style/ConstantName:
100
- Enabled: false
101
-
102
96
  Style/DefWithParentheses:
103
97
  Enabled: true
104
98
 
105
- Style/Documentation:
106
- Enabled: false
107
-
108
99
  Style/DotPosition:
109
100
  Enabled: true
110
101
 
111
- Style/DoubleNegation:
112
- Enabled: false
113
-
114
- Style/EachWithObject:
115
- Enabled: false
116
-
117
102
  Style/ElseAlignment:
118
- Enabled: false
103
+ Enabled: true
119
104
 
120
105
  Style/EmptyElse:
121
106
  Enabled: true
@@ -135,160 +120,25 @@ Style/EmptyLinesAroundModuleBody:
135
120
  Style/EmptyLinesAroundMethodBody:
136
121
  Enabled: true
137
122
 
138
- Style/EmptyLiteral:
139
- Enabled: false
140
-
141
123
  Style/Encoding:
142
124
  Enabled: true
143
125
  EnforcedStyle: never
144
126
 
145
- Style/EndBlock:
146
- Enabled: false
147
-
148
- Style/EndOfLine:
149
- Enabled: false
150
-
151
- Style/EvenOdd:
152
- Enabled: false
153
-
154
- Style/FileName:
155
- Enabled: false
156
-
157
- Style/FlipFlop:
158
- Enabled: false
159
-
160
- Style/For:
161
- Enabled: false
162
-
163
- Style/FormatString:
164
- Enabled: false
165
-
166
- Style/FrozenStringLiteralComment:
167
- Enabled: false
168
-
169
- Style/GlobalVars:
170
- Enabled: false
171
-
172
- Style/GuardClause:
173
- Enabled: false
174
-
175
127
  Style/HashSyntax:
176
128
  Enabled: true
177
129
 
178
- Style/IfUnlessModifier:
179
- Enabled: false
180
-
181
- Style/IfWithSemicolon:
182
- Enabled: false
183
-
184
130
  Style/IndentationConsistency:
185
131
  Enabled: true
186
132
 
187
133
  Style/IndentationWidth:
188
134
  Enabled: true
189
135
 
190
- Style/IndentArray:
191
- Enabled: false
192
-
193
- Style/IndentHash:
194
- Enabled: false
195
-
196
- Style/InfiniteLoop:
197
- Enabled: false
198
-
199
- Style/InlineComment:
200
- Enabled: false
201
-
202
- Style/Lambda:
203
- Enabled: false
204
-
205
- Style/LambdaCall:
206
- Enabled: false
207
-
208
136
  Style/LeadingCommentSpace:
209
137
  Enabled: true
210
138
 
211
- Style/LineEndConcatenation:
212
- Enabled: false
213
-
214
139
  Style/MethodCallParentheses:
215
140
  Enabled: true
216
141
 
217
- Style/MethodDefParentheses:
218
- Enabled: false
219
-
220
- Style/MethodName:
221
- Enabled: false
222
-
223
- Style/ModuleFunction:
224
- Enabled: false
225
-
226
- Style/MultilineBlockChain:
227
- Enabled: false
228
-
229
- Style/MultilineBlockLayout:
230
- Enabled: false
231
-
232
- Style/MultilineIfThen:
233
- Enabled: false
234
-
235
- Style/MultilineOperationIndentation:
236
- Enabled: false
237
-
238
- Style/MultilineTernaryOperator:
239
- Enabled: false
240
-
241
- Style/NegatedIf:
242
- Enabled: false
243
-
244
- Style/NegatedWhile:
245
- Enabled: false
246
-
247
- Style/NestedTernaryOperator:
248
- Enabled: false
249
-
250
- Style/Next:
251
- Enabled: false
252
-
253
- Style/NilComparison:
254
- Enabled: false
255
-
256
- Style/NonNilCheck:
257
- Enabled: false
258
-
259
- Style/Not:
260
- Enabled: false
261
-
262
- Style/NumericLiterals:
263
- Enabled: false
264
-
265
- Style/OneLineConditional:
266
- Enabled: false
267
-
268
- Style/OpMethod:
269
- Enabled: false
270
-
271
- Style/ParenthesesAroundCondition:
272
- Enabled: false
273
-
274
- Style/PercentLiteralDelimiters:
275
- Enabled: false
276
-
277
- Style/PercentQLiterals:
278
- Enabled: false
279
-
280
- Style/PerlBackrefs:
281
- Enabled: false
282
-
283
- Style/PredicateName:
284
- Enabled: false
285
-
286
- Style/Proc:
287
- Enabled: false
288
-
289
- Style/RaiseArgs:
290
- Enabled: false
291
-
292
142
  Style/RedundantBegin:
293
143
  Enabled: true
294
144
 
@@ -301,30 +151,9 @@ Style/RedundantReturn:
301
151
  Style/RedundantSelf:
302
152
  Enabled: true
303
153
 
304
- Style/RegexpLiteral:
305
- Enabled: false
306
-
307
- Style/RescueModifier:
308
- Enabled: false
309
-
310
- Style/SelfAssignment:
311
- Enabled: false
312
-
313
- Style/Semicolon:
314
- Enabled: false
315
-
316
- Style/SignalException:
317
- Enabled: false
318
-
319
- Style/SingleLineBlockParams:
320
- Enabled: false
321
-
322
154
  Style/SingleLineMethods:
323
155
  Enabled: true
324
156
 
325
- Style/SpaceBeforeFirstArg:
326
- Enabled: false
327
-
328
157
  Style/SpaceAfterColon:
329
158
  Enabled: true
330
159
 
@@ -343,18 +172,6 @@ Style/SpaceAfterNot:
343
172
  Style/SpaceAfterSemicolon:
344
173
  Enabled: true
345
174
 
346
- Style/SpaceBeforeBlockBraces:
347
- Enabled: false
348
-
349
- Style/SpaceBeforeComma:
350
- Enabled: false
351
-
352
- Style/SpaceBeforeComment:
353
- Enabled: false
354
-
355
- Style/SpaceBeforeSemicolon:
356
- Enabled: false
357
-
358
175
  Style/SpaceInsideBlockBraces:
359
176
  Enabled: true
360
177
 
@@ -373,23 +190,11 @@ Style/SpaceInsideHashLiteralBraces:
373
190
  Style/SpaceInsideParens:
374
191
  Enabled: true
375
192
 
376
- Style/SpaceInsideRangeLiteral:
377
- Enabled: false
378
-
379
- Style/SpecialGlobalVars:
380
- Enabled: false
381
-
382
193
  Style/StringLiterals:
383
194
  EnforcedStyle: double_quotes
384
195
  ConsistentQuotesInMultiline: true
385
196
  Enabled: true
386
197
 
387
- Style/StringLiteralsInInterpolation:
388
- Enabled: false
389
-
390
- Style/SymbolProc:
391
- Enabled: false
392
-
393
198
  Style/Tab:
394
199
  Enabled: true
395
200
 
@@ -402,189 +207,6 @@ Style/TrailingCommaInArguments:
402
207
  Style/TrailingWhitespace:
403
208
  Enabled: true
404
209
 
405
- Style/TrivialAccessors:
406
- Enabled: false
407
-
408
- Style/UnlessElse:
409
- Enabled: false
410
-
411
- Style/UnneededCapitalW:
412
- Enabled: false
413
-
414
- Style/UnneededPercentQ:
415
- Enabled: false
416
-
417
- Style/VariableInterpolation:
418
- Enabled: false
419
-
420
- Style/VariableName:
421
- Enabled: false
422
-
423
- Style/WhenThen:
424
- Enabled: false
425
-
426
- Style/WhileUntilDo:
427
- Enabled: false
428
-
429
- Style/WhileUntilModifier:
430
- Enabled: false
431
-
432
- Style/WordArray:
433
- Enabled: false
434
-
435
- #################### Metrics ################################
436
-
437
- Metrics/AbcSize:
438
- Enabled: false
439
-
440
- Metrics/BlockNesting:
441
- Enabled: false
442
-
443
- Metrics/ClassLength:
444
- Enabled: false
445
-
446
- Metrics/CyclomaticComplexity:
447
- Enabled: false
448
-
449
- Metrics/LineLength:
450
- Enabled: false
451
-
452
- Metrics/MethodLength:
453
- Enabled: false
454
-
455
- Metrics/ParameterLists:
456
- Enabled: false
457
-
458
- Metrics/PerceivedComplexity:
459
- Enabled: false
460
-
461
- #################### Lint ################################
462
- ### Warnings
463
-
464
- Lint/AmbiguousOperator:
465
- Enabled: false
466
-
467
- Lint/AmbiguousRegexpLiteral:
468
- Enabled: false
469
-
470
- Lint/AssignmentInCondition:
471
- Enabled: false
472
-
473
- Lint/BlockAlignment:
474
- Enabled: false
475
-
476
- Lint/ConditionPosition:
477
- Enabled: false
478
-
479
- Lint/Debugger:
480
- Enabled: false
481
-
482
- Lint/DefEndAlignment:
483
- Enabled: false
484
-
485
- Lint/DeprecatedClassMethods:
486
- Enabled: false
487
-
488
- Lint/ElseLayout:
489
- Enabled: false
490
-
491
- Lint/EmptyEnsure:
492
- Enabled: false
493
-
494
- Lint/EmptyInterpolation:
495
- Enabled: false
496
-
497
210
  Lint/EndAlignment:
498
- Enabled: false
499
-
500
- Lint/EndInMethod:
501
- Enabled: false
502
-
503
- Lint/EnsureReturn:
504
- Enabled: false
505
-
506
- Lint/Eval:
507
- Enabled: false
508
-
509
- Lint/HandleExceptions:
510
- Enabled: false
511
-
512
- Lint/InvalidCharacterLiteral:
513
- Enabled: false
514
-
515
- Lint/LiteralInCondition:
516
- Enabled: false
517
-
518
- Lint/LiteralInInterpolation:
519
- Enabled: false
520
-
521
- Lint/Loop:
522
- Enabled: false
523
-
524
- Lint/ParenthesesAsGroupedExpression:
525
- Enabled: false
526
-
527
- Lint/RequireParentheses:
528
- Enabled: false
529
-
530
- Lint/RescueException:
531
- Enabled: false
532
-
533
- Lint/ShadowingOuterLocalVariable:
534
- Enabled: false
535
-
536
- Lint/StringConversionInInterpolation:
537
- Enabled: false
538
-
539
- Lint/UnderscorePrefixedVariableName:
540
- Enabled: false
541
-
542
- Lint/UnusedBlockArgument:
543
- Enabled: false
544
-
545
- Lint/UnusedMethodArgument:
546
- Enabled: false
547
-
548
- Lint/UnreachableCode:
549
- Enabled: false
550
-
551
- Lint/UselessAccessModifier:
552
- Enabled: false
553
-
554
- Lint/UselessAssignment:
555
- Enabled: false
556
-
557
- Lint/UselessComparison:
558
- Enabled: false
559
-
560
- Lint/UselessElseWithoutRescue:
561
- Enabled: false
562
-
563
- Lint/UselessSetterCall:
564
- Enabled: false
565
-
566
- Lint/Void:
567
- Enabled: false
568
-
569
- ##################### Rails ##################################
570
-
571
- Rails/ActionFilter:
572
- Enabled: false
573
-
574
- Rails/Delegate:
575
- Enabled: false
576
-
577
- Rails/HasAndBelongsToMany:
578
- Enabled: false
579
-
580
- Rails/Output:
581
- Enabled: false
582
-
583
- Rails/ReadWriteAttribute:
584
- Enabled: false
585
-
586
- Rails/ScopeArgs:
587
- Enabled: false
588
-
589
- Rails/Validation:
590
- Enabled: false
211
+ AlignWith: variable
212
+ Enabled: true
@@ -4,7 +4,7 @@ namespace :style do
4
4
  namespace :rubocop do
5
5
  desc "Run RuboCop with auto_correct"
6
6
  task :with_auto_correct do
7
- options = ["--rails", "--auto-correct"]
7
+ options = ["--rails", "--auto-correct", "--display-cop-names"]
8
8
  options += ["--fail-level", "refactor"]
9
9
  options += ["-c", BookingSync::Stylecheck::RubocopHelpers.config]
10
10
  sh "bundle exec rubocop #{options.join(' ')}" do |ok, _res|
@@ -14,7 +14,7 @@ namespace :style do
14
14
 
15
15
  desc "Run RuboCop without auto_correct"
16
16
  task :without_auto_correct do
17
- options = ["--rails"]
17
+ options = ["--rails", "--display-cop-names"]
18
18
  options += ["--fail-level", "refactor"]
19
19
  options += ["-c", BookingSync::Stylecheck::RubocopHelpers.config]
20
20
  sh "bundle exec rubocop #{options.join(' ')}" do |ok, _res|
@@ -26,7 +26,7 @@ namespace :style do
26
26
  task :custom, [:command_string, :no_fail] do |t, args|
27
27
  args[:no_fail] ||= false
28
28
 
29
- options = ["--rails", "--fail-level", "refactor"]
29
+ options = ["--rails", "--fail-level", "refactor", "--display-cop-names"]
30
30
  options += ["-c", BookingSync::Stylecheck::RubocopHelpers.config]
31
31
  options += [args[:command_string]]
32
32
  sh "bundle exec rubocop #{options.join(' ')}" do |ok, res|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookingsync-stylecheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Marciniak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-21 00:00:00.000000000 Z
11
+ date: 2017-01-03 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: 0.41.0
19
+ version: 0.46.0
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.41.0
26
+ version: 0.46.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  requirements: []
73
73
  rubyforge_project:
74
- rubygems_version: 2.5.1
74
+ rubygems_version: 2.6.8
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Automatic style check for bookingsync projects