rt_rubocop_defaults 1.2.5 → 2.3.1
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 +12 -30
- data/lib/rt_rubocop_defaults/version.rb +1 -1
- data/rt_rubocop_defaults.gemspec +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7dfaa51d8f9d64db49eee4f778632a9a1ab925896ed7fccc9227dacd202b6a56
|
|
4
|
+
data.tar.gz: a2a842b93810cafad26eb9dde6cffd31167290d995edb74828f7e10a09d948cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f145ff801faa57425db24b6353cce5bb49b52dfe76417f0fa7af2dee59d6761bc9d3b439d4032ccf51b224b9ae0a1ea6a73e3f2514b11764824b6862c6421eb
|
|
7
|
+
data.tar.gz: c56bf7f53e0fae78bfa9899351ab155463a1e90ec4719715bd4113b29289b131f73814e0e1de29c9d855cc2ec0b97852411eb107ff0593f18f3194a2c22cad79
|
data/config/default.yml
CHANGED
|
@@ -3,8 +3,9 @@ AllCops:
|
|
|
3
3
|
CacheRootDirectory: '.git'
|
|
4
4
|
Exclude:
|
|
5
5
|
- coverage/**/*
|
|
6
|
-
TargetRubyVersion: 2.
|
|
7
|
-
|
|
6
|
+
TargetRubyVersion: 2.5
|
|
7
|
+
# HINT: New cops are enabled by default and have to be disabled if they do not fit the projects needs
|
|
8
|
+
NewCops: enable
|
|
8
9
|
|
|
9
10
|
### Lint
|
|
10
11
|
|
|
@@ -12,11 +13,6 @@ Lint/NestedMethodDefinition:
|
|
|
12
13
|
Exclude:
|
|
13
14
|
- api/sinatra/**/*
|
|
14
15
|
|
|
15
|
-
Lint/RaiseException:
|
|
16
|
-
Enabled: true
|
|
17
|
-
|
|
18
|
-
Lint/StructNewOverride:
|
|
19
|
-
Enabled: true
|
|
20
16
|
|
|
21
17
|
### Metrics
|
|
22
18
|
|
|
@@ -44,13 +40,6 @@ Metrics/ClassLength:
|
|
|
44
40
|
Metrics/CyclomaticComplexity:
|
|
45
41
|
Severity: refactor
|
|
46
42
|
|
|
47
|
-
Metrics/LineLength:
|
|
48
|
-
Max: 119
|
|
49
|
-
Exclude:
|
|
50
|
-
- Guardfile
|
|
51
|
-
- Gemfile
|
|
52
|
-
IgnoreCopDirectives: true
|
|
53
|
-
|
|
54
43
|
Layout/LineLength:
|
|
55
44
|
Max: 119
|
|
56
45
|
Exclude:
|
|
@@ -59,7 +48,6 @@ Layout/LineLength:
|
|
|
59
48
|
IgnoreCopDirectives: true
|
|
60
49
|
|
|
61
50
|
Metrics/MethodLength:
|
|
62
|
-
Enabled: true
|
|
63
51
|
CountComments: false # count full line comments?
|
|
64
52
|
Max: 10
|
|
65
53
|
Severity: refactor
|
|
@@ -72,13 +60,10 @@ Metrics/ModuleLength:
|
|
|
72
60
|
- 'app/api/routes.rb'
|
|
73
61
|
- 'spec/requests/**/*'
|
|
74
62
|
|
|
63
|
+
|
|
75
64
|
### Style / Layout
|
|
76
65
|
|
|
77
66
|
#### Hash
|
|
78
|
-
Style/AlignHash:
|
|
79
|
-
EnforcedColonStyle: table
|
|
80
|
-
EnforcedHashRocketStyle: table
|
|
81
|
-
|
|
82
67
|
Layout/HashAlignment:
|
|
83
68
|
EnforcedColonStyle: table
|
|
84
69
|
EnforcedHashRocketStyle: table
|
|
@@ -86,20 +71,12 @@ Layout/HashAlignment:
|
|
|
86
71
|
Style/HashSyntax:
|
|
87
72
|
EnforcedStyle: ruby19_no_mixed_keys
|
|
88
73
|
|
|
89
|
-
Style/HashEachMethods:
|
|
90
|
-
Enabled: true
|
|
91
|
-
|
|
92
74
|
Style/HashTransformKeys:
|
|
93
75
|
Enabled: false
|
|
94
76
|
|
|
95
77
|
Style/HashTransformValues:
|
|
96
78
|
Enabled: false
|
|
97
79
|
|
|
98
|
-
#### MultilineOperation
|
|
99
|
-
Style/MultilineOperationIndentation:
|
|
100
|
-
Description: Checks indentation of binary operations that span more than one line.
|
|
101
|
-
EnforcedStyle: indented
|
|
102
|
-
|
|
103
80
|
Layout/MultilineOperationIndentation:
|
|
104
81
|
Description: Checks indentation of binary operations that span more than one line.
|
|
105
82
|
EnforcedStyle: indented
|
|
@@ -112,6 +89,7 @@ Style/DoubleNegation:
|
|
|
112
89
|
Enabled: false
|
|
113
90
|
|
|
114
91
|
Style/ExponentialNotation:
|
|
92
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
|
|
115
93
|
EnforcedStyle: engineering
|
|
116
94
|
|
|
117
95
|
Style/NumericLiterals:
|
|
@@ -131,12 +109,13 @@ Style/RegexpLiteral:
|
|
|
131
109
|
Style/SignalException:
|
|
132
110
|
EnforcedStyle: only_raise
|
|
133
111
|
|
|
134
|
-
Layout/SpaceAroundMethodCallOperator:
|
|
135
|
-
Enabled: true
|
|
136
|
-
|
|
137
112
|
Style/StringLiterals:
|
|
138
113
|
EnforcedStyle: double_quotes
|
|
139
114
|
|
|
115
|
+
Style/OptionalBooleanParameter:
|
|
116
|
+
Enabled: false
|
|
117
|
+
|
|
118
|
+
|
|
140
119
|
### RSpec
|
|
141
120
|
|
|
142
121
|
RSpec/DescribeClass:
|
|
@@ -167,3 +146,6 @@ RSpec/NamedSubject:
|
|
|
167
146
|
|
|
168
147
|
RSpec/NestedGroups:
|
|
169
148
|
Enabled: false
|
|
149
|
+
|
|
150
|
+
RSpec/MultipleMemoizedHelpers:
|
|
151
|
+
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 = "
|
|
16
|
+
spec.required_ruby_version = ">= 2.5"
|
|
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.5"
|
|
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:
|
|
4
|
+
version: 2.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andreas Eger
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-02-24 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.5'
|
|
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.5'
|
|
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
|
|
@@ -81,23 +81,23 @@ homepage: https://github.com/runtastic/rt_rubocop_defaults
|
|
|
81
81
|
licenses:
|
|
82
82
|
- MIT
|
|
83
83
|
metadata: {}
|
|
84
|
-
post_install_message:
|
|
84
|
+
post_install_message:
|
|
85
85
|
rdoc_options: []
|
|
86
86
|
require_paths:
|
|
87
87
|
- lib
|
|
88
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements:
|
|
90
|
-
- - "
|
|
90
|
+
- - ">="
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '2.
|
|
92
|
+
version: '2.5'
|
|
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.
|
|
100
|
-
signing_key:
|
|
99
|
+
rubygems_version: 3.2.3
|
|
100
|
+
signing_key:
|
|
101
101
|
specification_version: 4
|
|
102
102
|
summary: rubocop defaults used at runtastic
|
|
103
103
|
test_files: []
|