netsoft-rubocop 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/config/default.yml +43 -0
- data/lib/netsoft/rubocop/version.rb +1 -1
- 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: 29338bcea3cbca8f4e26d89ea88cf206ec61498a5cef6cc68f9598201fe376d8
|
4
|
+
data.tar.gz: fdf938c69440639df40a861c8be50b7bc22ad75d3144166600fbcf1261062d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f7aed7b249aabeb1f393d68a62760071b97522b5c0f8c53333ed57e2d37ecfc8bb4b5b07b1ac81e1c15d8fb6c6e90458615b160fa0f195128df3d3f8dbee53d
|
7
|
+
data.tar.gz: fdfa5f21f1c722336ff68e9d7840998c71893623d36f2bf0a912f017cd01c593e3e029b69223177fd26c63f4f05917a2ada579f6f27f6846de3e3ab9b0c05dbf
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
10
10
|
### Changed
|
11
11
|
### Fixed
|
12
12
|
|
13
|
+
## [1.1.4] - 2022-01-26
|
14
|
+
### Changed
|
15
|
+
- update rubocop, and rubocop-[everything] to latest versions
|
16
|
+
|
17
|
+
|
13
18
|
## [1.1.3] - 2021-05-10
|
14
19
|
### Changed
|
15
20
|
- update rubocop, and rubocop-[everything] to latest versions
|
data/config/default.yml
CHANGED
@@ -22,6 +22,11 @@ AllCops:
|
|
22
22
|
- 'gemfiles/**/*'
|
23
23
|
- 'node_modules/**/*'
|
24
24
|
|
25
|
+
# Checks that the gemspec has metadata to require MFA from RubyGems
|
26
|
+
# Irrelevant for internal gems
|
27
|
+
Gemspec/RequireMFA:
|
28
|
+
Enabled: false
|
29
|
+
|
25
30
|
# region Layout
|
26
31
|
Layout/AssignmentIndentation:
|
27
32
|
IndentationWidth: 4
|
@@ -52,6 +57,15 @@ Lint/AmbiguousBlockAssociation:
|
|
52
57
|
Exclude:
|
53
58
|
- spec/**/*
|
54
59
|
|
60
|
+
# Requires to change `foo + bar * baz` into `foo + (bar * baz)` for clarity. WHAT.
|
61
|
+
Lint/AmbiguousOperatorPrecedence:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
# Prohibits ranges like 1.minute..5.minutes, and wants them to look like (1.minute)..(5.minutes)
|
65
|
+
# Please no.
|
66
|
+
Lint/AmbiguousRange:
|
67
|
+
Enabled: false
|
68
|
+
|
55
69
|
Lint/NonDeterministicRequireOrder:
|
56
70
|
Enabled: false
|
57
71
|
|
@@ -98,6 +112,11 @@ Naming/VariableNumber:
|
|
98
112
|
# endregion
|
99
113
|
|
100
114
|
# region Performance
|
115
|
+
# Wants to convert 0.to_d into BigDecimal.new('0'), which is ugly and doesn't actually do anything
|
116
|
+
# to "improve performance"
|
117
|
+
Performance/BigDecimalWithNumericArgument:
|
118
|
+
Enabled: false
|
119
|
+
|
101
120
|
Performance/CollectionLiteralInLoop:
|
102
121
|
Enabled: false
|
103
122
|
|
@@ -133,6 +152,15 @@ Rails/HttpPositionalArguments:
|
|
133
152
|
Rails/HttpStatus:
|
134
153
|
EnforcedStyle: numeric
|
135
154
|
|
155
|
+
# The cop states that if you have `belongs_to :organization`, the validator is added automatically,
|
156
|
+
# so you don't need `validates :organization, presence: true` (or `validates :organization_id`).
|
157
|
+
#
|
158
|
+
# I (zverok) checked it on our codebase and it is not true. Should be clarified later, maybe our
|
159
|
+
# Rails version is too old?..
|
160
|
+
#
|
161
|
+
Rails/RedundantPresenceValidationOnBelongsTo:
|
162
|
+
Enabled: false
|
163
|
+
|
136
164
|
Rails/SkipsModelValidations:
|
137
165
|
AllowedMethods:
|
138
166
|
- touch
|
@@ -255,6 +283,21 @@ Style/MultilineBlockChain:
|
|
255
283
|
Style/MutableConstant:
|
256
284
|
Enabled: false
|
257
285
|
|
286
|
+
# Allows them only in single-line blocks. Doesn't really help!
|
287
|
+
Style/NumberedParameters:
|
288
|
+
Enabled: false
|
289
|
+
|
290
|
+
Style/NumberedParametersLimit:
|
291
|
+
Max: 2
|
292
|
+
|
293
|
+
# Just prohibits OpenStruct forever. Technically reasonable, but when we use it, we know what we do
|
294
|
+
Style/OpenStructUse:
|
295
|
+
Enabled: false
|
296
|
+
|
297
|
+
# Asks to change `"foo-bar": baz` to `'foo-bar': baz`. Lots of changes, little value
|
298
|
+
Style/QuotedSymbols:
|
299
|
+
Enabled: false
|
300
|
+
|
258
301
|
Style/ParallelAssignment:
|
259
302
|
Enabled: false
|
260
303
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netsoft-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Yarotsky
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -45,70 +45,70 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.
|
48
|
+
version: 1.25.0
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.
|
55
|
+
version: 1.25.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rubocop-performance
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.
|
62
|
+
version: 1.13.2
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.
|
69
|
+
version: 1.13.2
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rubocop-rails
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 2.
|
76
|
+
version: 2.13.2
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 2.
|
83
|
+
version: 2.13.2
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rubocop-rake
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - '='
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.
|
90
|
+
version: 0.6.0
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.
|
97
|
+
version: 0.6.0
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rubocop-rspec
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - '='
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 2.
|
104
|
+
version: 2.7.0
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - '='
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 2.
|
111
|
+
version: 2.7.0
|
112
112
|
description:
|
113
113
|
email:
|
114
114
|
- alex.yarotsky@hubstaff.com
|