rt_rubocop_defaults 1.3.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +35 -41
- data/lib/rt_rubocop_defaults/version.rb +1 -1
- data/rt_rubocop_defaults.gemspec +2 -3
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a976fbf2e516e244c6d7dc84d04f7c6928f214c275fefe565154f11ca8d748aa
|
4
|
+
data.tar.gz: 5a1235f2c3dc05916f4255b106cbaa2dd8e074e8cc3d8c04aba51df0600678be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a3282ec33fc446ce2c553055712fe3701cad2bab9deee145206f8c8dcd69fc4120e7a40d831bfddd0c812f3b7136f9e1293db03494efe1544f7fcdc94147a63
|
7
|
+
data.tar.gz: d652205a9c2a4290b3aff8c3e48dff163ea4d76a0c850eee827e23104a1f9fbd6ad1fb04e0446f5ce478850dda367827155f4b4a584df01c8cea51af1a0b7706
|
data/config/default.yml
CHANGED
@@ -12,6 +12,21 @@ Lint/NestedMethodDefinition:
|
|
12
12
|
Exclude:
|
13
13
|
- api/sinatra/**/*
|
14
14
|
|
15
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Lint/EmptyBlock:
|
19
|
+
Enabled: true
|
20
|
+
|
21
|
+
Lint/NoReturnInBeginEndBlocks:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Lint/ToEnumArguments:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Lint/UnmodifiedReduceAccumulator:
|
28
|
+
Enabled: true
|
29
|
+
|
15
30
|
### Metrics
|
16
31
|
|
17
32
|
Metrics/AbcSize:
|
@@ -79,9 +94,18 @@ Layout/MultilineOperationIndentation:
|
|
79
94
|
EnforcedStyle: indented
|
80
95
|
|
81
96
|
#### Rest
|
97
|
+
Style/ArgumentsForwarding:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Style/CollectionCompact:
|
101
|
+
Enabled: true
|
102
|
+
|
82
103
|
Style/Documentation:
|
83
104
|
Enabled: false
|
84
105
|
|
106
|
+
Style/DocumentDynamicEvalDefinition:
|
107
|
+
Enabled: true
|
108
|
+
|
85
109
|
Style/DoubleNegation:
|
86
110
|
Enabled: false
|
87
111
|
|
@@ -90,6 +114,9 @@ Style/ExponentialNotation:
|
|
90
114
|
Enabled: true
|
91
115
|
EnforcedStyle: engineering
|
92
116
|
|
117
|
+
Style/NegatedIfElseCondition:
|
118
|
+
Enabled: true
|
119
|
+
|
93
120
|
Style/NumericLiterals:
|
94
121
|
Description: Add underscores to large numeric literals to improve their readability.
|
95
122
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
|
@@ -110,6 +137,12 @@ Style/SignalException:
|
|
110
137
|
Style/StringLiterals:
|
111
138
|
EnforcedStyle: double_quotes
|
112
139
|
|
140
|
+
Style/SwapValues:
|
141
|
+
Enabled: true
|
142
|
+
|
143
|
+
Style/OptionalBooleanParameter:
|
144
|
+
Enabled: false
|
145
|
+
|
113
146
|
### RSpec
|
114
147
|
|
115
148
|
RSpec/DescribeClass:
|
@@ -141,44 +174,5 @@ RSpec/NamedSubject:
|
|
141
174
|
RSpec/NestedGroups:
|
142
175
|
Enabled: false
|
143
176
|
|
144
|
-
|
145
|
-
|
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
|
177
|
+
RSpec/MultipleMemoizedHelpers:
|
178
|
+
Enabled: false
|
data/rt_rubocop_defaults.gemspec
CHANGED
@@ -22,8 +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", "~>
|
25
|
+
spec.add_dependency "rubocop", "~> 1.2"
|
26
26
|
spec.add_development_dependency "bundler", "> 1.13", "< 3"
|
27
|
-
spec.add_development_dependency "
|
28
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "rake", "> 10.0"
|
29
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: 1.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Eger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-10 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: '
|
19
|
+
version: '1.2'
|
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: '
|
26
|
+
version: '1.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,32 +44,18 @@ 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'
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
48
|
name: rake
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
64
50
|
requirements:
|
65
|
-
- - "
|
51
|
+
- - ">"
|
66
52
|
- !ruby/object:Gem::Version
|
67
53
|
version: '10.0'
|
68
54
|
type: :development
|
69
55
|
prerelease: false
|
70
56
|
version_requirements: !ruby/object:Gem::Requirement
|
71
57
|
requirements:
|
72
|
-
- - "
|
58
|
+
- - ">"
|
73
59
|
- !ruby/object:Gem::Version
|
74
60
|
version: '10.0'
|
75
61
|
description: rubocop defaults used at runtastic
|