rt_rubocop_defaults 1.2.3 → 1.2.4
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 +78 -54
- data/lib/rt_rubocop_defaults/version.rb +1 -1
- data/rt_rubocop_defaults.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31eb13b0a0102d03267772d8fb7b8b6d2058402ec734c84696a97247d22af570
|
|
4
|
+
data.tar.gz: 3dd96ee18df57e7563971f994c0fee8439615ec55341fd2877417da2a673a6d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7bb64d5a3970f57f6a7aca0ee52e053adfdb428e82d11e55e394d764e6e1c24816bea571c1e56595e59d0785921532fa57013308663c543f9015e9e59a380f8a
|
|
7
|
+
data.tar.gz: beec2a3b347827c8fa45a11a1d1e81060c475537277d9a66f96da9e8a4eb7814a57c722ee7b26fe9a68977fe3d2de97c51b6f4f0c780a0c909205442b62d2f9f
|
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
|
@@ -12,16 +12,46 @@ 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
|
+
|
|
15
21
|
### Metrics
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
Metrics/AbcSize:
|
|
24
|
+
Max: 18
|
|
25
|
+
Severity: refactor
|
|
26
|
+
Exclude:
|
|
27
|
+
- 'api/sinatra/**/*'
|
|
28
|
+
- 'app/api/routes.rb'
|
|
29
|
+
|
|
30
|
+
Metrics/BlockLength:
|
|
31
|
+
Exclude:
|
|
32
|
+
- '*.gemspec'
|
|
33
|
+
- '**/*.rake'
|
|
34
|
+
- 'api/**/*'
|
|
35
|
+
- 'app/api/routes.rb'
|
|
36
|
+
- 'config/initialize/**/*'
|
|
37
|
+
- 'config/initializers/**/*'
|
|
38
|
+
- 'spec/**/*'
|
|
39
|
+
|
|
40
|
+
Metrics/ClassLength:
|
|
41
|
+
Exclude:
|
|
42
|
+
- spec/**/*
|
|
43
|
+
|
|
44
|
+
Metrics/CyclomaticComplexity:
|
|
45
|
+
Severity: refactor
|
|
46
|
+
|
|
47
|
+
Metrics/LineLength:
|
|
18
48
|
Max: 119
|
|
19
49
|
Exclude:
|
|
20
50
|
- Guardfile
|
|
21
51
|
- Gemfile
|
|
22
52
|
IgnoreCopDirectives: true
|
|
23
53
|
|
|
24
|
-
|
|
54
|
+
Layout/LineLength:
|
|
25
55
|
Max: 119
|
|
26
56
|
Exclude:
|
|
27
57
|
- Guardfile
|
|
@@ -34,34 +64,17 @@ Metrics/MethodLength:
|
|
|
34
64
|
Max: 10
|
|
35
65
|
Severity: refactor
|
|
36
66
|
Exclude:
|
|
37
|
-
- api/sinatra/**/*
|
|
38
|
-
|
|
39
|
-
Metrics/AbcSize:
|
|
40
|
-
Max: 18
|
|
41
|
-
Severity: refactor
|
|
42
|
-
Exclude:
|
|
43
|
-
- api/sinatra/**/*
|
|
44
|
-
|
|
45
|
-
Metrics/CyclomaticComplexity:
|
|
46
|
-
Severity: refactor
|
|
47
|
-
|
|
48
|
-
Metrics/BlockLength:
|
|
49
|
-
Exclude:
|
|
50
|
-
- '*.gemspec'
|
|
51
|
-
- '**/*.rake'
|
|
52
|
-
- 'config/initialize/*'
|
|
53
|
-
- 'spec/**/*'
|
|
54
|
-
- 'api/**/*'
|
|
55
|
-
|
|
56
|
-
Metrics/ClassLength:
|
|
57
|
-
Exclude:
|
|
58
|
-
- spec/**/*
|
|
67
|
+
- 'api/sinatra/**/*'
|
|
68
|
+
- 'app/api/routes.rb'
|
|
59
69
|
|
|
60
70
|
Metrics/ModuleLength:
|
|
61
71
|
Exclude:
|
|
62
|
-
-
|
|
72
|
+
- 'app/api/routes.rb'
|
|
73
|
+
- 'spec/requests/**/*'
|
|
63
74
|
|
|
64
75
|
### Style / Layout
|
|
76
|
+
|
|
77
|
+
#### Hash
|
|
65
78
|
Style/AlignHash:
|
|
66
79
|
EnforcedColonStyle: table
|
|
67
80
|
EnforcedHashRocketStyle: table
|
|
@@ -73,6 +86,16 @@ Layout/HashAlignment:
|
|
|
73
86
|
Style/HashSyntax:
|
|
74
87
|
EnforcedStyle: ruby19_no_mixed_keys
|
|
75
88
|
|
|
89
|
+
Style/HashEachMethods:
|
|
90
|
+
Enabled: true
|
|
91
|
+
|
|
92
|
+
Style/HashTransformKeys:
|
|
93
|
+
Enabled: false
|
|
94
|
+
|
|
95
|
+
Style/HashTransformValues:
|
|
96
|
+
Enabled: false
|
|
97
|
+
|
|
98
|
+
#### MultilineOperation
|
|
76
99
|
Style/MultilineOperationIndentation:
|
|
77
100
|
Description: Checks indentation of binary operations that span more than one line.
|
|
78
101
|
EnforcedStyle: indented
|
|
@@ -81,40 +104,48 @@ Layout/MultilineOperationIndentation:
|
|
|
81
104
|
Description: Checks indentation of binary operations that span more than one line.
|
|
82
105
|
EnforcedStyle: indented
|
|
83
106
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
Style/SignalException:
|
|
88
|
-
EnforcedStyle: only_raise
|
|
89
|
-
|
|
90
|
-
Style/StringLiterals:
|
|
91
|
-
EnforcedStyle: double_quotes
|
|
107
|
+
#### Rest
|
|
108
|
+
Style/Documentation:
|
|
109
|
+
Enabled: false
|
|
92
110
|
|
|
93
111
|
Style/DoubleNegation:
|
|
94
112
|
Enabled: false
|
|
95
113
|
|
|
96
|
-
Style/
|
|
114
|
+
Style/ExponentialNotation:
|
|
115
|
+
EnforcedStyle: engineering
|
|
116
|
+
|
|
117
|
+
Style/NumericLiterals:
|
|
118
|
+
Description: Add underscores to large numeric literals to improve their readability.
|
|
119
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
|
|
97
120
|
Enabled: false
|
|
98
121
|
|
|
99
122
|
Style/PerlBackrefs:
|
|
100
123
|
Enabled: false
|
|
101
124
|
|
|
102
|
-
Style/
|
|
103
|
-
|
|
125
|
+
Style/RaiseArgs:
|
|
126
|
+
EnforcedStyle: compact
|
|
104
127
|
|
|
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
|
|
128
|
+
Style/RegexpLiteral:
|
|
108
129
|
Enabled: false
|
|
109
130
|
|
|
110
|
-
Style/
|
|
131
|
+
Style/SignalException:
|
|
132
|
+
EnforcedStyle: only_raise
|
|
133
|
+
|
|
134
|
+
Layout/SpaceAroundMethodCallOperator:
|
|
111
135
|
Enabled: true
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
136
|
+
|
|
137
|
+
Style/StringLiterals:
|
|
138
|
+
EnforcedStyle: double_quotes
|
|
139
|
+
|
|
116
140
|
### RSpec
|
|
117
141
|
|
|
142
|
+
RSpec/DescribeClass:
|
|
143
|
+
Exclude:
|
|
144
|
+
- spec/integration/**/*
|
|
145
|
+
|
|
146
|
+
RSpec/ExampleLength:
|
|
147
|
+
Enabled: false
|
|
148
|
+
|
|
118
149
|
RSpec/ExampleWording:
|
|
119
150
|
IgnoredWords:
|
|
120
151
|
- only
|
|
@@ -125,11 +156,10 @@ RSpec/FilePath:
|
|
|
125
156
|
Exclude:
|
|
126
157
|
- spec/**/*
|
|
127
158
|
|
|
128
|
-
RSpec/
|
|
129
|
-
|
|
130
|
-
- spec/integration/**/*
|
|
159
|
+
RSpec/MessageExpectation:
|
|
160
|
+
Enabled: false
|
|
131
161
|
|
|
132
|
-
RSpec/
|
|
162
|
+
RSpec/MultipleExpectations:
|
|
133
163
|
Enabled: false
|
|
134
164
|
|
|
135
165
|
RSpec/NamedSubject:
|
|
@@ -137,9 +167,3 @@ RSpec/NamedSubject:
|
|
|
137
167
|
|
|
138
168
|
RSpec/NestedGroups:
|
|
139
169
|
Enabled: false
|
|
140
|
-
|
|
141
|
-
RSpec/MultipleExpectations:
|
|
142
|
-
Enabled: false
|
|
143
|
-
|
|
144
|
-
RSpec/MessageExpectation:
|
|
145
|
-
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.3"
|
|
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", "~> 0.
|
|
25
|
+
spec.add_dependency "rubocop", "~> 0.81"
|
|
26
26
|
spec.add_development_dependency "bundler", "> 1.13", "< 3"
|
|
27
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.2.
|
|
4
|
+
version: 1.2.4
|
|
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-05-06 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.
|
|
19
|
+
version: '0.81'
|
|
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.81'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -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.3'
|
|
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
|