netsoft-rubocop 1.1.1 → 1.1.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/CHANGELOG.md +14 -0
- data/config/default.yml +43 -6
- 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,20 @@ 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
|
+
|
18
|
+
## [1.1.3] - 2021-05-10
|
19
|
+
### Changed
|
20
|
+
- update rubocop, and rubocop-[everything] to latest versions
|
21
|
+
|
22
|
+
## [1.1.2] - 2021-01-27
|
23
|
+
### Changed
|
24
|
+
- adjust array and hash indent rules to be default 2 space indent
|
25
|
+
- removed override config for Layout/MultilineMethodCallIndentation
|
26
|
+
|
13
27
|
## [1.1.1] - 2021-01-21
|
14
28
|
### Fixed
|
15
29
|
- fixed path in config
|
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
|
@@ -35,15 +40,9 @@ Layout/HashAlignment:
|
|
35
40
|
|
36
41
|
Layout/FirstArrayElementIndentation:
|
37
42
|
EnforcedStyle: consistent
|
38
|
-
IndentationWidth: 4
|
39
43
|
|
40
44
|
Layout/FirstHashElementIndentation:
|
41
45
|
EnforcedStyle: consistent
|
42
|
-
IndentationWidth: 4
|
43
|
-
|
44
|
-
Layout/MultilineMethodCallIndentation:
|
45
|
-
EnforcedStyle: indented_relative_to_receiver
|
46
|
-
IndentationWidth: 4
|
47
46
|
|
48
47
|
Layout/SpaceInsideBlockBraces:
|
49
48
|
EnforcedStyle: space
|
@@ -58,6 +57,15 @@ Lint/AmbiguousBlockAssociation:
|
|
58
57
|
Exclude:
|
59
58
|
- spec/**/*
|
60
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
|
+
|
61
69
|
Lint/NonDeterministicRequireOrder:
|
62
70
|
Enabled: false
|
63
71
|
|
@@ -104,6 +112,11 @@ Naming/VariableNumber:
|
|
104
112
|
# endregion
|
105
113
|
|
106
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
|
+
|
107
120
|
Performance/CollectionLiteralInLoop:
|
108
121
|
Enabled: false
|
109
122
|
|
@@ -139,6 +152,15 @@ Rails/HttpPositionalArguments:
|
|
139
152
|
Rails/HttpStatus:
|
140
153
|
EnforcedStyle: numeric
|
141
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
|
+
|
142
164
|
Rails/SkipsModelValidations:
|
143
165
|
AllowedMethods:
|
144
166
|
- touch
|
@@ -261,6 +283,21 @@ Style/MultilineBlockChain:
|
|
261
283
|
Style/MutableConstant:
|
262
284
|
Enabled: false
|
263
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
|
+
|
264
301
|
Style/ParallelAssignment:
|
265
302
|
Enabled: false
|
266
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
|