rt_rubocop_defaults 1.2.5 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/default.yml +45 -30
- data/lib/rt_rubocop_defaults/version.rb +1 -1
- data/rt_rubocop_defaults.gemspec +3 -2
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 600d40b211e3ba53163920d28e7be1f2a49f5ff75b5d0082635c1bc611909351
|
4
|
+
data.tar.gz: e8ef0725cb77cd42ea99b96ee661028008f41f2632e4061d4b5a2aab80cc5def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66147b6b910c2d957e7dca9eb35fa11ed5895d4c3f11dc1daa31bab60ce37b51639d8eb0dc7c12fc590f175011426038341a693a0e9cb437694c5b4fceea0652
|
7
|
+
data.tar.gz: 1571fe48a7b14fd7dd8ff8a80eec2609560b1a69aa2f74a26f17a405b01795b0161334bf1f371c1b6967d6aba361b429fb92badc69506ae3487f9843ae7530c9
|
data/config/default.yml
CHANGED
@@ -3,7 +3,7 @@ AllCops:
|
|
3
3
|
CacheRootDirectory: '.git'
|
4
4
|
Exclude:
|
5
5
|
- coverage/**/*
|
6
|
-
TargetRubyVersion: 2.
|
6
|
+
TargetRubyVersion: 2.4
|
7
7
|
|
8
8
|
|
9
9
|
### Lint
|
@@ -12,12 +12,6 @@ Lint/NestedMethodDefinition:
|
|
12
12
|
Exclude:
|
13
13
|
- api/sinatra/**/*
|
14
14
|
|
15
|
-
Lint/RaiseException:
|
16
|
-
Enabled: true
|
17
|
-
|
18
|
-
Lint/StructNewOverride:
|
19
|
-
Enabled: true
|
20
|
-
|
21
15
|
### Metrics
|
22
16
|
|
23
17
|
Metrics/AbcSize:
|
@@ -44,13 +38,6 @@ Metrics/ClassLength:
|
|
44
38
|
Metrics/CyclomaticComplexity:
|
45
39
|
Severity: refactor
|
46
40
|
|
47
|
-
Metrics/LineLength:
|
48
|
-
Max: 119
|
49
|
-
Exclude:
|
50
|
-
- Guardfile
|
51
|
-
- Gemfile
|
52
|
-
IgnoreCopDirectives: true
|
53
|
-
|
54
41
|
Layout/LineLength:
|
55
42
|
Max: 119
|
56
43
|
Exclude:
|
@@ -59,7 +46,6 @@ Layout/LineLength:
|
|
59
46
|
IgnoreCopDirectives: true
|
60
47
|
|
61
48
|
Metrics/MethodLength:
|
62
|
-
Enabled: true
|
63
49
|
CountComments: false # count full line comments?
|
64
50
|
Max: 10
|
65
51
|
Severity: refactor
|
@@ -75,10 +61,6 @@ Metrics/ModuleLength:
|
|
75
61
|
### Style / Layout
|
76
62
|
|
77
63
|
#### Hash
|
78
|
-
Style/AlignHash:
|
79
|
-
EnforcedColonStyle: table
|
80
|
-
EnforcedHashRocketStyle: table
|
81
|
-
|
82
64
|
Layout/HashAlignment:
|
83
65
|
EnforcedColonStyle: table
|
84
66
|
EnforcedHashRocketStyle: table
|
@@ -86,20 +68,12 @@ Layout/HashAlignment:
|
|
86
68
|
Style/HashSyntax:
|
87
69
|
EnforcedStyle: ruby19_no_mixed_keys
|
88
70
|
|
89
|
-
Style/HashEachMethods:
|
90
|
-
Enabled: true
|
91
|
-
|
92
71
|
Style/HashTransformKeys:
|
93
72
|
Enabled: false
|
94
73
|
|
95
74
|
Style/HashTransformValues:
|
96
75
|
Enabled: false
|
97
76
|
|
98
|
-
#### MultilineOperation
|
99
|
-
Style/MultilineOperationIndentation:
|
100
|
-
Description: Checks indentation of binary operations that span more than one line.
|
101
|
-
EnforcedStyle: indented
|
102
|
-
|
103
77
|
Layout/MultilineOperationIndentation:
|
104
78
|
Description: Checks indentation of binary operations that span more than one line.
|
105
79
|
EnforcedStyle: indented
|
@@ -112,6 +86,8 @@ Style/DoubleNegation:
|
|
112
86
|
Enabled: false
|
113
87
|
|
114
88
|
Style/ExponentialNotation:
|
89
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
|
90
|
+
Enabled: true
|
115
91
|
EnforcedStyle: engineering
|
116
92
|
|
117
93
|
Style/NumericLiterals:
|
@@ -131,9 +107,6 @@ Style/RegexpLiteral:
|
|
131
107
|
Style/SignalException:
|
132
108
|
EnforcedStyle: only_raise
|
133
109
|
|
134
|
-
Layout/SpaceAroundMethodCallOperator:
|
135
|
-
Enabled: true
|
136
|
-
|
137
110
|
Style/StringLiterals:
|
138
111
|
EnforcedStyle: double_quotes
|
139
112
|
|
@@ -167,3 +140,45 @@ RSpec/NamedSubject:
|
|
167
140
|
|
168
141
|
RSpec/NestedGroups:
|
169
142
|
Enabled: false
|
143
|
+
|
144
|
+
## new between 0.79 and 0.88
|
145
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
146
|
+
Enabled: true
|
147
|
+
Layout/SpaceAroundMethodCallOperator:
|
148
|
+
Enabled: true
|
149
|
+
Lint/DeprecatedOpenSSLConstant:
|
150
|
+
Enabled: true
|
151
|
+
Lint/DuplicateElsifCondition:
|
152
|
+
Enabled: true
|
153
|
+
Lint/MixedRegexpCaptureTypes:
|
154
|
+
Enabled: true
|
155
|
+
Lint/RaiseException:
|
156
|
+
Enabled: true
|
157
|
+
Lint/StructNewOverride:
|
158
|
+
Enabled: true
|
159
|
+
Style/AccessorGrouping:
|
160
|
+
Enabled: true
|
161
|
+
Style/ArrayCoercion:
|
162
|
+
Enabled: true
|
163
|
+
Style/BisectedAttrAccessor:
|
164
|
+
Enabled: true
|
165
|
+
Style/CaseLikeIf:
|
166
|
+
Enabled: true
|
167
|
+
Style/HashAsLastArrayItem:
|
168
|
+
Enabled: true
|
169
|
+
Style/HashEachMethods:
|
170
|
+
Enabled: true
|
171
|
+
Style/HashLikeCase:
|
172
|
+
Enabled: true
|
173
|
+
Style/RedundantAssignment:
|
174
|
+
Enabled: true
|
175
|
+
Style/RedundantFetchBlock:
|
176
|
+
Enabled: true
|
177
|
+
Style/RedundantFileExtensionInRequire:
|
178
|
+
Enabled: true
|
179
|
+
Style/RedundantRegexpCharacterClass:
|
180
|
+
Enabled: true
|
181
|
+
Style/RedundantRegexpEscape:
|
182
|
+
Enabled: true
|
183
|
+
Style/SlicingWithRange:
|
184
|
+
Enabled: true
|
data/rt_rubocop_defaults.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.description = "rubocop defaults used at runtastic"
|
14
14
|
spec.license = "MIT"
|
15
15
|
spec.homepage = "https://github.com/runtastic/rt_rubocop_defaults"
|
16
|
-
spec.required_ruby_version = "~> 2.
|
16
|
+
spec.required_ruby_version = "~> 2.4"
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
19
|
f.match(%r{^(test|spec|features)/})
|
@@ -22,7 +22,8 @@ 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", "~> 0.
|
25
|
+
spec.add_dependency "rubocop", "~> 0.88"
|
26
26
|
spec.add_development_dependency "bundler", "> 1.13", "< 3"
|
27
|
+
spec.add_development_dependency "mry"
|
27
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
28
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rt_rubocop_defaults
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Eger
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.88'
|
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.
|
26
|
+
version: '0.88'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,6 +44,20 @@ dependencies:
|
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '3'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: mry
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: rake
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
103
|
requirements:
|
90
104
|
- - "~>"
|
91
105
|
- !ruby/object:Gem::Version
|
92
|
-
version: '2.
|
106
|
+
version: '2.4'
|
93
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
108
|
requirements:
|
95
109
|
- - ">="
|