rt_rubocop_defaults 1.2.2 → 2.1.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/README.md +2 -0
- data/config/default.yml +90 -57
- data/lib/rt_rubocop_defaults/version.rb +1 -1
- data/rt_rubocop_defaults.gemspec +3 -3
- metadata +8 -8
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/README.md
CHANGED
@@ -56,6 +56,8 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/runtas
|
|
56
56
|
This project is intended to be a safe, welcoming space for collaboration, and
|
57
57
|
contributors are expected to adhere to the [code of conduct][cc].
|
58
58
|
|
59
|
+
Check out our [career page](https://www.runtastic.com/career/) if you'd like to work with us.
|
60
|
+
|
59
61
|
## License
|
60
62
|
The gem is available as open source under [the terms of the MIT License][mit].
|
61
63
|
|
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,60 +12,70 @@ Lint/NestedMethodDefinition:
|
|
12
12
|
Exclude:
|
13
13
|
- api/sinatra/**/*
|
14
14
|
|
15
|
-
|
15
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
16
|
+
Enabled: true
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
Exclude:
|
20
|
-
- Guardfile
|
21
|
-
- Gemfile
|
22
|
-
IgnoreCopDirectives: true
|
18
|
+
Lint/EmptyBlock:
|
19
|
+
Enabled: true
|
23
20
|
|
24
|
-
|
25
|
-
|
26
|
-
Exclude:
|
27
|
-
- Guardfile
|
28
|
-
- Gemfile
|
29
|
-
IgnoreCopDirectives: true
|
21
|
+
Lint/NoReturnInBeginEndBlocks:
|
22
|
+
Enabled: true
|
30
23
|
|
31
|
-
|
24
|
+
Lint/ToEnumArguments:
|
32
25
|
Enabled: true
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
26
|
+
|
27
|
+
Lint/UnmodifiedReduceAccumulator:
|
28
|
+
Enabled: true
|
29
|
+
|
30
|
+
### Metrics
|
38
31
|
|
39
32
|
Metrics/AbcSize:
|
40
33
|
Max: 18
|
41
34
|
Severity: refactor
|
42
35
|
Exclude:
|
43
|
-
- api/sinatra/**/*
|
44
|
-
|
45
|
-
Metrics/CyclomaticComplexity:
|
46
|
-
Severity: refactor
|
36
|
+
- 'api/sinatra/**/*'
|
37
|
+
- 'app/api/routes.rb'
|
47
38
|
|
48
39
|
Metrics/BlockLength:
|
49
40
|
Exclude:
|
50
41
|
- '*.gemspec'
|
51
42
|
- '**/*.rake'
|
52
|
-
- 'config/initialize/*'
|
53
|
-
- 'spec/**/*'
|
54
43
|
- 'api/**/*'
|
44
|
+
- 'app/api/routes.rb'
|
45
|
+
- 'config/initialize/**/*'
|
46
|
+
- 'config/initializers/**/*'
|
47
|
+
- 'spec/**/*'
|
55
48
|
|
56
49
|
Metrics/ClassLength:
|
57
50
|
Exclude:
|
58
51
|
- spec/**/*
|
59
52
|
|
53
|
+
Metrics/CyclomaticComplexity:
|
54
|
+
Severity: refactor
|
55
|
+
|
56
|
+
Layout/LineLength:
|
57
|
+
Max: 119
|
58
|
+
Exclude:
|
59
|
+
- Guardfile
|
60
|
+
- Gemfile
|
61
|
+
IgnoreCopDirectives: true
|
62
|
+
|
63
|
+
Metrics/MethodLength:
|
64
|
+
CountComments: false # count full line comments?
|
65
|
+
Max: 10
|
66
|
+
Severity: refactor
|
67
|
+
Exclude:
|
68
|
+
- 'api/sinatra/**/*'
|
69
|
+
- 'app/api/routes.rb'
|
70
|
+
|
60
71
|
Metrics/ModuleLength:
|
61
72
|
Exclude:
|
62
|
-
-
|
73
|
+
- 'app/api/routes.rb'
|
74
|
+
- 'spec/requests/**/*'
|
63
75
|
|
64
76
|
### Style / Layout
|
65
|
-
Style/AlignHash:
|
66
|
-
EnforcedColonStyle: table
|
67
|
-
EnforcedHashRocketStyle: table
|
68
77
|
|
78
|
+
#### Hash
|
69
79
|
Layout/HashAlignment:
|
70
80
|
EnforcedColonStyle: table
|
71
81
|
EnforcedHashRocketStyle: table
|
@@ -73,48 +83,75 @@ Layout/HashAlignment:
|
|
73
83
|
Style/HashSyntax:
|
74
84
|
EnforcedStyle: ruby19_no_mixed_keys
|
75
85
|
|
76
|
-
Style/
|
77
|
-
|
78
|
-
|
86
|
+
Style/HashTransformKeys:
|
87
|
+
Enabled: false
|
88
|
+
|
89
|
+
Style/HashTransformValues:
|
90
|
+
Enabled: false
|
79
91
|
|
80
92
|
Layout/MultilineOperationIndentation:
|
81
93
|
Description: Checks indentation of binary operations that span more than one line.
|
82
94
|
EnforcedStyle: indented
|
83
95
|
|
84
|
-
|
85
|
-
|
96
|
+
#### Rest
|
97
|
+
Style/ArgumentsForwarding:
|
98
|
+
Enabled: true
|
86
99
|
|
87
|
-
Style/
|
88
|
-
|
100
|
+
Style/CollectionCompact:
|
101
|
+
Enabled: true
|
89
102
|
|
90
|
-
Style/
|
91
|
-
|
103
|
+
Style/Documentation:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
Style/DocumentDynamicEvalDefinition:
|
107
|
+
Enabled: true
|
92
108
|
|
93
109
|
Style/DoubleNegation:
|
94
110
|
Enabled: false
|
95
111
|
|
96
|
-
Style/
|
112
|
+
Style/ExponentialNotation:
|
113
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
|
114
|
+
Enabled: true
|
115
|
+
EnforcedStyle: engineering
|
116
|
+
|
117
|
+
Style/NegatedIfElseCondition:
|
118
|
+
Enabled: true
|
119
|
+
|
120
|
+
Style/NumericLiterals:
|
121
|
+
Description: Add underscores to large numeric literals to improve their readability.
|
122
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
|
97
123
|
Enabled: false
|
98
124
|
|
99
125
|
Style/PerlBackrefs:
|
100
126
|
Enabled: false
|
101
127
|
|
102
|
-
Style/
|
103
|
-
|
128
|
+
Style/RaiseArgs:
|
129
|
+
EnforcedStyle: compact
|
104
130
|
|
105
|
-
Style/
|
106
|
-
Description: Add underscores to large numeric literals to improve their readability.
|
107
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
|
131
|
+
Style/RegexpLiteral:
|
108
132
|
Enabled: false
|
109
133
|
|
110
|
-
Style/
|
134
|
+
Style/SignalException:
|
135
|
+
EnforcedStyle: only_raise
|
136
|
+
|
137
|
+
Style/StringLiterals:
|
138
|
+
EnforcedStyle: double_quotes
|
139
|
+
|
140
|
+
Style/SwapValues:
|
111
141
|
Enabled: true
|
112
|
-
|
113
|
-
|
114
|
-
Style/HashTransformValues
|
142
|
+
|
143
|
+
Style/OptionalBooleanParameter:
|
115
144
|
Enabled: false
|
145
|
+
|
116
146
|
### RSpec
|
117
147
|
|
148
|
+
RSpec/DescribeClass:
|
149
|
+
Exclude:
|
150
|
+
- spec/integration/**/*
|
151
|
+
|
152
|
+
RSpec/ExampleLength:
|
153
|
+
Enabled: false
|
154
|
+
|
118
155
|
RSpec/ExampleWording:
|
119
156
|
IgnoredWords:
|
120
157
|
- only
|
@@ -125,11 +162,10 @@ RSpec/FilePath:
|
|
125
162
|
Exclude:
|
126
163
|
- spec/**/*
|
127
164
|
|
128
|
-
RSpec/
|
129
|
-
|
130
|
-
- spec/integration/**/*
|
165
|
+
RSpec/MessageExpectation:
|
166
|
+
Enabled: false
|
131
167
|
|
132
|
-
RSpec/
|
168
|
+
RSpec/MultipleExpectations:
|
133
169
|
Enabled: false
|
134
170
|
|
135
171
|
RSpec/NamedSubject:
|
@@ -138,8 +174,5 @@ RSpec/NamedSubject:
|
|
138
174
|
RSpec/NestedGroups:
|
139
175
|
Enabled: false
|
140
176
|
|
141
|
-
RSpec/
|
142
|
-
Enabled: false
|
143
|
-
|
144
|
-
RSpec/MessageExpectation:
|
177
|
+
RSpec/MultipleMemoizedHelpers:
|
145
178
|
Enabled: false
|
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,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 "rake", "
|
27
|
+
spec.add_development_dependency "rake", "> 10.0"
|
28
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
|
@@ -48,14 +48,14 @@ dependencies:
|
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">"
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '10.0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '10.0'
|
61
61
|
description: rubocop defaults used at runtastic
|
@@ -89,14 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements:
|
90
90
|
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '2.
|
92
|
+
version: '2.4'
|
93
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
99
|
+
rubygems_version: 3.1.2
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: rubocop defaults used at runtastic
|