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