rt_rubocop_defaults 2.1.0 → 2.4.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 +8 -32
- data/lib/rt_rubocop_defaults/version.rb +1 -1
- data/rt_rubocop_defaults.gemspec +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31fd45af71b36b4ea2ad41b5d614a771ada2873dd8ddf9759259b90448701983
|
4
|
+
data.tar.gz: 33c7e0b97737a486f7c32adc6165b1cf7214e234f1bc86d1fc390c0427b5360e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d361c75e1bdfba0de97072a16a93e6510c030c45b1499fd528204aaa8944110817663d38d90ed2210f28eec3340fedba0897001f528726a2d60ea5e2fa682810
|
7
|
+
data.tar.gz: b1b61b5a094bf9f4d8fcd93193685130c1c49120e0502a508013c201193448662adbf5e0035f06c8a121f3f864ee98c1fc7b8bcb851afffbf906f118105d174f
|
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,20 +13,6 @@ Lint/NestedMethodDefinition:
|
|
12
13
|
Exclude:
|
13
14
|
- api/sinatra/**/*
|
14
15
|
|
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
16
|
|
30
17
|
### Metrics
|
31
18
|
|
@@ -73,6 +60,7 @@ Metrics/ModuleLength:
|
|
73
60
|
- 'app/api/routes.rb'
|
74
61
|
- 'spec/requests/**/*'
|
75
62
|
|
63
|
+
|
76
64
|
### Style / Layout
|
77
65
|
|
78
66
|
#### Hash
|
@@ -94,29 +82,16 @@ Layout/MultilineOperationIndentation:
|
|
94
82
|
EnforcedStyle: indented
|
95
83
|
|
96
84
|
#### Rest
|
97
|
-
Style/ArgumentsForwarding:
|
98
|
-
Enabled: true
|
99
|
-
|
100
|
-
Style/CollectionCompact:
|
101
|
-
Enabled: true
|
102
|
-
|
103
85
|
Style/Documentation:
|
104
86
|
Enabled: false
|
105
87
|
|
106
|
-
Style/DocumentDynamicEvalDefinition:
|
107
|
-
Enabled: true
|
108
|
-
|
109
88
|
Style/DoubleNegation:
|
110
89
|
Enabled: false
|
111
90
|
|
112
91
|
Style/ExponentialNotation:
|
113
92
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
|
114
|
-
Enabled: true
|
115
93
|
EnforcedStyle: engineering
|
116
94
|
|
117
|
-
Style/NegatedIfElseCondition:
|
118
|
-
Enabled: true
|
119
|
-
|
120
95
|
Style/NumericLiterals:
|
121
96
|
Description: Add underscores to large numeric literals to improve their readability.
|
122
97
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
|
@@ -137,12 +112,10 @@ Style/SignalException:
|
|
137
112
|
Style/StringLiterals:
|
138
113
|
EnforcedStyle: double_quotes
|
139
114
|
|
140
|
-
Style/SwapValues:
|
141
|
-
Enabled: true
|
142
|
-
|
143
115
|
Style/OptionalBooleanParameter:
|
144
116
|
Enabled: false
|
145
117
|
|
118
|
+
|
146
119
|
### RSpec
|
147
120
|
|
148
121
|
RSpec/DescribeClass:
|
@@ -158,6 +131,9 @@ RSpec/ExampleWording:
|
|
158
131
|
CustomTransform:
|
159
132
|
have: has
|
160
133
|
|
134
|
+
RSpec/FactoryBot/SyntaxMethods:
|
135
|
+
Enabled: false
|
136
|
+
|
161
137
|
RSpec/FilePath:
|
162
138
|
Exclude:
|
163
139
|
- spec/**/*
|
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", "~> 1.
|
25
|
+
spec.add_dependency "rubocop", "~> 1.25"
|
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: 2.
|
4
|
+
version: 2.4.0
|
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: 2022-02-14 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: '1.
|
19
|
+
version: '1.25'
|
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: '1.
|
26
|
+
version: '1.25'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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: []
|