scc-codestyle 0.2.2 → 0.3.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: cec4b200124959adad4429e8ccc53f499a31befee6d7328372dd4dc4e2d29fdb
4
- data.tar.gz: 683324312c62e31a982945502e1c37a5b9910a71566b581477aad5db0d3025a6
3
+ metadata.gz: 713a75b867534d7273f39e13c4772bb16e84cd5ad0654377b8cbfbb2cff3ade0
4
+ data.tar.gz: 8a13ed55e02adba462f140e91ebc3bf8eeb1f26cb5575c18c5c634b072b6cea1
5
5
  SHA512:
6
- metadata.gz: de834a378701437a875e5f018f8ca098f6e30371cc24e6e5602fb2bd4a26fe68a3d4c0938fefdfd6091079f7ff15edd68fbf9332c7b82c0e171763511afba2c4
7
- data.tar.gz: 62f78f2ee05f9e330ecbb89a834f2d44693343d5a94b3fc182b5e9d66d00632919642a9496484d35794e1de088cd723a5484eaa9914738da340e40e4440f0ce1
6
+ metadata.gz: 447b9490947f910d73bccddb9dd60fc3e8f78959ab053fd1bc20bab010382d18e7b81e6a3483a49755f94c03e2d319dc826346213ca9b57bfba5d67890bc0572
7
+ data.tar.gz: 959715871c0fecf2c04a57aea9962ead0684cacfb1a01b4621aaef64b1a6524f68e421f92ff5fb0c5f0b38179e68c6bfdf49d560bfe2c18baa6a635bde15ec14
data/default.yml CHANGED
@@ -16,16 +16,17 @@ AllCops:
16
16
  - tmp/**/*
17
17
  - lib/locale/*
18
18
 
19
- require: rubocop-rspec
19
+ require:
20
+ - rubocop-performance
21
+ - rubocop-rails
22
+ - rubocop-rspec
20
23
 
21
24
  # TODO: These three checks are ruby 2.3-only. Let's discuss them after we've upgraded
22
- Rails/SafeNavigation:
23
- Enabled: false
24
25
  Style/SafeNavigation:
25
26
  Enabled: false
26
27
  Style/NumericPredicate:
27
28
  Enabled: false
28
- Layout/IndentHeredoc:
29
+ Layout/HeredocIndentation:
29
30
  Enabled: false
30
31
 
31
32
  # TODO: team wants to have this enabled (2017-07-13)
@@ -106,10 +107,10 @@ Style/LineEndConcatenation:
106
107
  Layout/LeadingCommentSpace:
107
108
  Enabled: true
108
109
 
109
- Layout/AlignArray:
110
+ Layout/ArrayAlignment:
110
111
  Enabled: true
111
112
 
112
- Layout/AlignHash:
113
+ Layout/HashAlignment:
113
114
  Enabled: true
114
115
  EnforcedLastArgumentHashStyle: ignore_implicit
115
116
 
@@ -195,13 +196,13 @@ Lint/Debugger:
195
196
  Layout/EndAlignment:
196
197
  Enabled: true
197
198
 
198
- Lint/HandleExceptions:
199
+ Lint/SuppressedException:
199
200
  Enabled: true
200
201
 
201
- Lint/StringConversionInInterpolation:
202
+ Lint/RedundantStringCoercion:
202
203
  Enabled: true
203
204
 
204
- Lint/UnneededCopDisableDirective:
205
+ Lint/RedundantCopDisableDirective:
205
206
  Enabled: true
206
207
 
207
208
  Layout/SpaceInsideHashLiteralBraces:
@@ -216,7 +217,7 @@ Layout/SpaceBeforeBlockBraces:
216
217
  Style/BracesAroundHashParameters:
217
218
  Enabled: false
218
219
 
219
- Layout/TrailingBlankLines:
220
+ Layout/TrailingEmptyLines:
220
221
  Enabled: true
221
222
 
222
223
  Layout/TrailingWhitespace:
@@ -265,7 +266,7 @@ Layout/DotPosition:
265
266
  Lint/AmbiguousOperator:
266
267
  Enabled: true
267
268
 
268
- Metrics/LineLength:
269
+ Layout/LineLength:
269
270
  Enabled: true
270
271
  Max: 160
271
272
 
@@ -284,7 +285,7 @@ Metrics/PerceivedComplexity:
284
285
  Style/Alias:
285
286
  Enabled: true
286
287
 
287
- Layout/AlignParameters:
288
+ Layout/ParameterAlignment:
288
289
  Enabled: false
289
290
 
290
291
  Style/AndOr:
@@ -312,11 +313,11 @@ Style/IfUnlessModifier:
312
313
  Style/FormatString:
313
314
  Enabled: false
314
315
 
315
- Layout/IndentArray:
316
+ Layout/FirstArrayElementIndentation:
316
317
  Enabled: true
317
318
  EnforcedStyle: consistent
318
319
 
319
- Layout/IndentHash:
320
+ Layout/FirstHashElementIndentation:
320
321
  Enabled: true
321
322
  EnforcedStyle: consistent
322
323
 
@@ -398,7 +399,7 @@ Layout/MultilineHashBraceLayout:
398
399
  Style/ZeroLengthPredicate:
399
400
  Enabled: true
400
401
 
401
- Style/UnneededInterpolation:
402
+ Style/RedundantInterpolation:
402
403
  Enabled: true
403
404
 
404
405
  Style/MutableConstant:
@@ -544,7 +545,7 @@ RSpec/EmptyLineAfterSubject:
544
545
  Exclude:
545
546
  - spec/models/siebel/activity_spec.rb
546
547
 
547
- Rails/FilePath:
548
+ RSpec/FilePath:
548
549
  Enabled: true
549
550
 
550
551
  Rails/Present:
@@ -561,9 +562,6 @@ Style/PercentLiteralDelimiters:
561
562
  RSpec/ExampleWording:
562
563
  Enabled: true
563
564
 
564
- RSpec/FilePath:
565
- Enabled: true
566
-
567
565
  RSpec/EmptyLineAfterFinalLet:
568
566
  Enabled: true
569
567
 
@@ -1,5 +1,5 @@
1
1
  module Scc
2
2
  module Codestyle
3
- VERSION = '0.2.2'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
5
5
  end
@@ -17,8 +17,10 @@ Gem::Specification.new do |spec|
17
17
  end
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'rubocop', '0.53.0'
21
- spec.add_dependency 'rubocop-rspec', '1.19'
20
+ spec.add_dependency 'rubocop', '0.78.0'
21
+ spec.add_dependency 'rubocop-performance', '1.5.2'
22
+ spec.add_dependency 'rubocop-rails', '2.4.1'
23
+ spec.add_dependency 'rubocop-rspec', '1.37.1'
22
24
  spec.add_development_dependency 'bundler', '~> 1.15'
23
- spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'rake', '~> 12.3'
24
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scc-codestyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SCC Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.53.0
19
+ version: 0.78.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.53.0
26
+ version: 0.78.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.5.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.5.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.4.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.4.1
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: rubocop-rspec
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - '='
32
60
  - !ruby/object:Gem::Version
33
- version: '1.19'
61
+ version: 1.37.1
34
62
  type: :runtime
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
66
  - - '='
39
67
  - !ruby/object:Gem::Version
40
- version: '1.19'
68
+ version: 1.37.1
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: bundler
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +86,14 @@ dependencies:
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '10.0'
89
+ version: '12.3'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '10.0'
96
+ version: '12.3'
69
97
  description:
70
98
  email:
71
99
  - scc@suse.com