rubocop-nosolosoftware 1.5.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +127 -78
- data/rubocop-layout.yml +5 -0
- data/rubocop-lint.yml +4 -0
- data/rubocop-metrics.yml +2 -0
- data/rubocop-naming.yml +4 -0
- data/rubocop-performance.yml +12 -0
- data/rubocop-rails.yml +28 -0
- data/rubocop-rspec.yml +8 -0
- data/rubocop-style.yml +16 -0
- 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: 444865c97c89aafd3e74c3156282b589b45819bb8ba1b6ad8e9439a571bc2e93
|
4
|
+
data.tar.gz: b8776e482f4df570443e7d612de82e4bbfdd98e8c1d1b2575f52bbbaedd7cad0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 054a1ba223693e47d7906f1ed9d3981d264d4cad85eeb7821d2665240f31be5c55f7202edf3ec60a2da66ee00ff6cc60fae1c60a872e22c29cb3e3f4626ff282
|
7
|
+
data.tar.gz: 87680d9687e7634baa1fb4984218c08b280af012e2ee1a8acefdb41e6dd8f5bfd07f54b371639e672c90bb5256add39bd7acac9172790ce3ae4021cd66dadb44
|
data/CHANGELOG.md
CHANGED
@@ -7,11 +7,60 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
The following rules have been added:
|
9
9
|
|
10
|
+
## 1.8.1 - 2021-07-26
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
- `config/routes/` directory should have the same rules as `config/routes.rb`
|
14
|
+
|
15
|
+
## 1.8.0 - 2021-06-29
|
16
|
+
- Added new rules introduced in the last version.
|
17
|
+
- rubocop
|
18
|
+
- Layout/LineEndStringConcatenationIndentation (1.18)
|
19
|
+
- Naming/InclusiveLanguage (1.18)
|
20
|
+
|
21
|
+
### Changed
|
22
|
+
- Updated dependency rubocop
|
23
|
+
|
24
|
+
## 1.7.0 - 2021-06-29
|
25
|
+
- Added new rules introduced in the last version.
|
26
|
+
- rubocop-rails
|
27
|
+
- Rails/AddColumnIndex (2.11)
|
28
|
+
- Rails/ExpandedDateRange (2.11)
|
29
|
+
- Rails/I18nLocaleAssignment (2.11)
|
30
|
+
- Rails/UnusedIgnoredColumns (2.11)
|
31
|
+
- Rails/EagerEvaluationLogMessage (2.11)
|
32
|
+
- rubocop-rspec
|
33
|
+
- RSpec/IdenticalEqualityAssertion (2.4)
|
34
|
+
- RSpec/Rails/AvoidSetupHook (2.4)
|
35
|
+
|
36
|
+
### Changed
|
37
|
+
- Updated dependency rubocop-rails and rubocop-rspec
|
38
|
+
|
39
|
+
## 1.6.0 - 2021-06-08
|
40
|
+
|
41
|
+
### Added
|
42
|
+
- Added new rules introduced in the last version.
|
43
|
+
- rubocop
|
44
|
+
- Lint/EmptyInPattern (1.16)
|
45
|
+
- Style/InPatternThen (1.16)
|
46
|
+
- Style/MultilineInPatternThen (1.16)
|
47
|
+
- Style/QuotedSymbols (1.16)
|
48
|
+
- Style/StringChars (1.12)
|
49
|
+
- Performance/MapCompact (1.11)
|
50
|
+
- Performance/RedundantEqualityComparisonBlock (1.10)
|
51
|
+
- Performance/RedundantSplitRegexpArgument (1.10)
|
52
|
+
- rubocop-rails
|
53
|
+
- Rails/EnvironmentVariableAccess (2.10)
|
54
|
+
- Rails/TimeZoneAssignment (2.10)
|
55
|
+
|
56
|
+
### Changed
|
57
|
+
- Updated dependency rubocop-rails
|
58
|
+
|
10
59
|
## 1.5.0 - 2021-02-25
|
11
60
|
|
12
61
|
### Added
|
13
62
|
- Added new rules introduced in the last version.
|
14
|
-
-rubocop
|
63
|
+
- rubocop
|
15
64
|
- Gemspec/DateAssignment (1.10)
|
16
65
|
- Layout/SpaceBeforeBrackets (1.7)
|
17
66
|
- Lint/AmbiguousAssignment (1.7)
|
@@ -30,37 +79,37 @@ The following rules have been added:
|
|
30
79
|
## 1.4.0 - 2020-12-15
|
31
80
|
### Added
|
32
81
|
- Added new rules introduced in the last version.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
82
|
+
- rubocop
|
83
|
+
- Lint/UnexpectedBlockArity (1.5)
|
84
|
+
- rubocop-rails
|
85
|
+
- Rails/AttributeDefaultBlockValue (2.9)
|
86
|
+
- Rails/WhereEquals (2.9)
|
38
87
|
|
39
88
|
## 1.3.0 - 2020-11-25
|
40
89
|
### Added
|
41
90
|
- Added new rules introduced in the last version.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
91
|
+
- rubocop
|
92
|
+
- Style/RedundantArgument (1.4)
|
93
|
+
- rubocop-performance
|
94
|
+
- Performance/ArraySemiInfiniteRangeSlice (1.9)
|
95
|
+
- Performance/BlockGivenWithExplicitBlock (1.9)
|
96
|
+
- Performance/CollectionLiteralInLoop (1.8)
|
97
|
+
- Performance/ConstantRegexp (1.9)
|
98
|
+
- Performance/MethodObjectAsBlock (1.9)
|
50
99
|
|
51
100
|
## 1.2.0 - 2020-11-13
|
52
101
|
### Added
|
53
102
|
- Added new rules introduced in the last version.
|
54
|
-
|
55
|
-
|
56
|
-
|
103
|
+
- Lint/DuplicateBranch (1.3)
|
104
|
+
- Lint/EmptyClass (1.3)
|
105
|
+
- Style/NilLambda (1.3)
|
57
106
|
|
58
107
|
## 1.1.0 - 2020-11-13
|
59
108
|
### Added
|
60
109
|
- Added new rules introduced in the last version.
|
61
|
-
|
62
|
-
|
63
|
-
|
110
|
+
- Lint/NoReturnInBeginEndBlocks (1.2)
|
111
|
+
- Style/CollectionCompact (1.2)
|
112
|
+
- Style/NegatedIfElseCondition (1.2)
|
64
113
|
|
65
114
|
### Changed
|
66
115
|
- Changed Naming/VariableNumber to start using snake_case
|
@@ -68,15 +117,15 @@ The following rules have been added:
|
|
68
117
|
## 1.0.0 - 2020-11-04
|
69
118
|
### Added
|
70
119
|
- Added new rules introduced in the last version.
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
120
|
+
- Lint/DuplicateRegexpCharacterClassElement (1.1)
|
121
|
+
- Lint/EmptyBlock (1.1)
|
122
|
+
- Lint/ToEnumArguments (1.1)
|
123
|
+
- Lint/UnmodifiedReduceAccumulator (1.1)
|
124
|
+
- Style/ArgumentsForwarding (1.1)
|
125
|
+
- Style/DocumentDynamicEvalDefinition (1.1)
|
126
|
+
- Style/SwapValues (1.1)
|
78
127
|
- Added new rules introduced in the last version of rubocop-rspec
|
79
|
-
|
128
|
+
- RSpec/Rails/HttpStatus (2.pre)
|
80
129
|
|
81
130
|
### Changed
|
82
131
|
- Removed shared enabled rules with rubocop 1.0
|
@@ -88,12 +137,12 @@ The following rules have been added:
|
|
88
137
|
## 0.10.0 - 2020-11-04
|
89
138
|
### Added
|
90
139
|
- Added new rules introduced in the last version.
|
91
|
-
|
92
|
-
|
93
|
-
|
140
|
+
- Lint/HashCompareByIdentity (0.93)
|
141
|
+
- Lint/RedundantSafeNavigation (0.93)
|
142
|
+
- Style/ClassEqualityComparison (0.93)
|
94
143
|
|
95
144
|
- Added new rules introduced in the last version of rubocop-rspec
|
96
|
-
|
145
|
+
- RSpec/StubbedMock (1.44)
|
97
146
|
|
98
147
|
### Changed
|
99
148
|
- Bump dependencies
|
@@ -101,22 +150,22 @@ The following rules have been added:
|
|
101
150
|
## 0.9.0 - 2020-09-18
|
102
151
|
### Added
|
103
152
|
- Added new rules introduced in the last version.
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
153
|
+
- Layout/BeginEndAlignment (0.91)
|
154
|
+
- Lint/ConstantDefinitionInBlock (0.91)
|
155
|
+
- Lint/DuplicateRequire (0.90)
|
156
|
+
- Lint/EmptyFile (0.90)
|
157
|
+
- Lint/IdentityComparison (0.91)
|
158
|
+
- Lint/TrailingCommaInAttributeDeclaration (0.90)
|
159
|
+
- Lint/UselessMethodDefinition (0.90)
|
160
|
+
- Lint/UselessTimes (0.91)
|
161
|
+
- Style/CombinableLoops (0.90)
|
162
|
+
- Style/KeywordParametersOrder (0.90)
|
163
|
+
- Style/RedundantSelfAssignment (0.90)
|
164
|
+
- Style/SoleNestedConditional (0.89)
|
165
|
+
- Performance/Sum (1.8)
|
166
|
+
- Rails/AfterCommitOverride (2.8)
|
167
|
+
- Rails/SquishedSQLHeredocs (2.8)
|
168
|
+
- Rails/WhereNot (2.8)
|
120
169
|
|
121
170
|
### Changed
|
122
171
|
- Updated all the extensions.
|
@@ -125,20 +174,20 @@ The following rules have been added:
|
|
125
174
|
|
126
175
|
### Added
|
127
176
|
- Added new rules introduced in the last version.
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
177
|
+
- Lint/BinaryOperatorWithIdenticalOperands (0.89)
|
178
|
+
- Lint/DuplicateRescueException (0.89)
|
179
|
+
- Lint/EmptyConditionalBody (0.89)
|
180
|
+
- Lint/FloatComparison (0.89)
|
181
|
+
- Lint/MissingSuper (0.89)
|
182
|
+
- Lint/OutOfRangeRegexpRef (0.89)
|
183
|
+
- Lint/SelfAssignment (0.89)
|
184
|
+
- Lint/TopLevelReturnWithArgument (0.89)
|
185
|
+
- Lint/UnreachableLoop (0.89)
|
186
|
+
- Style/ExplicitBlockArgument (0.89)
|
187
|
+
- Style/GlobalStdStream (0.89)
|
188
|
+
- Style/OptionalBooleanParameter (0.89)
|
189
|
+
- Style/SingleArgumentDig (0.89)
|
190
|
+
- Style/StringConcatenation (0.89)
|
142
191
|
|
143
192
|
## 0.7.0 - 2020-08-03
|
144
193
|
|
@@ -152,22 +201,22 @@ The following rules have been added:
|
|
152
201
|
|
153
202
|
### Added
|
154
203
|
- Added new rules introduced in the last version.
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
204
|
+
- Lint/DeprecatedOpenSSLConstant (0.84)
|
205
|
+
- Lint/MixedRegexpCaptureTypes (0.85)
|
206
|
+
- Style/AccessorGrouping (0.87)
|
207
|
+
- Style/BisectedAttrAccessor (0.87)
|
208
|
+
- Style/RedundantAssignment (0.87)
|
209
|
+
- Style/RedundantFetchBlock (0.86)
|
210
|
+
- Style/RedundantRegexpCharacterClass (0.85)
|
211
|
+
- Style/RedundantRegexpEscape (0.85)
|
212
|
+
- Performance/AncestorsInclude (1.7)
|
213
|
+
- Performance/BigDecimalWithNumericArgument (1.7)
|
214
|
+
- Performance/RedundantSortBlock (1.7)
|
215
|
+
- Performance/RedundantStringChars (1.7)
|
216
|
+
- Performance/ReverseFirst (1.7)
|
217
|
+
- Performance/SortReverse (1.7)
|
218
|
+
- Performance/Squeeze (1.7)
|
219
|
+
- Performance/StringInclude (1.7)
|
171
220
|
|
172
221
|
## 0.5.0 - 2020-07-07
|
173
222
|
|
data/rubocop-layout.yml
CHANGED
@@ -25,3 +25,8 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
25
25
|
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforebrackets
|
26
26
|
Layout/SpaceBeforeBrackets:
|
27
27
|
Enabled: true
|
28
|
+
|
29
|
+
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutlineendstringconcatenationindentation
|
30
|
+
Layout/LineEndStringConcatenationIndentation:
|
31
|
+
Enabled: true
|
32
|
+
EnforcedStyle: aligned
|
data/rubocop-lint.yml
CHANGED
data/rubocop-metrics.yml
CHANGED
@@ -18,6 +18,7 @@ Metrics/MethodLength:
|
|
18
18
|
Metrics/ModuleLength:
|
19
19
|
Exclude:
|
20
20
|
- "**/config/routes.rb"
|
21
|
+
- "**/config/routes/**/*.rb"
|
21
22
|
- "**/spec/**/*.rb"
|
22
23
|
|
23
24
|
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#blocklength
|
@@ -26,4 +27,5 @@ Metrics/BlockLength:
|
|
26
27
|
- "**/spec/**/*.rb"
|
27
28
|
- "**/config/environments/*.rb"
|
28
29
|
- "**/config/routes.rb"
|
30
|
+
- "**/config/routes/**/*.rb"
|
29
31
|
- "**/lib/tasks/auto_annotate_models.rake"
|
data/rubocop-naming.yml
CHANGED
data/rubocop-performance.yml
CHANGED
@@ -59,3 +59,15 @@ Performance/ConstantRegexp:
|
|
59
59
|
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancemethodobjectasblock
|
60
60
|
Performance/MethodObjectAsBlock:
|
61
61
|
Enabled: true
|
62
|
+
|
63
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancemapcompact
|
64
|
+
Performance/MapCompact:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantequalitycomparisonblock
|
68
|
+
Performance/RedundantEqualityComparisonBlock:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantsplitregexpargument
|
72
|
+
Performance/RedundantSplitRegexpArgument:
|
73
|
+
Enabled: true
|
data/rubocop-rails.yml
CHANGED
@@ -117,3 +117,31 @@ Rails/AttributeDefaultBlockValue:
|
|
117
117
|
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railswhereequals
|
118
118
|
Rails/WhereEquals:
|
119
119
|
Enabled: true
|
120
|
+
|
121
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsenvironmentvariableaccess
|
122
|
+
Rails/EnvironmentVariableAccess:
|
123
|
+
Enabled: true
|
124
|
+
|
125
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railstimezoneassignment
|
126
|
+
Rails/TimeZoneAssignment:
|
127
|
+
Enabled: true
|
128
|
+
|
129
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsaddcolumnindex
|
130
|
+
Rails/AddColumnIndex:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsexpandeddaterange
|
134
|
+
Rails/ExpandedDateRange:
|
135
|
+
Enabled: true
|
136
|
+
|
137
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsi18nlocaleassignment
|
138
|
+
Rails/I18nLocaleAssignment:
|
139
|
+
Enabled: true
|
140
|
+
|
141
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsunusedignoredcolumns
|
142
|
+
Rails/UnusedIgnoredColumns:
|
143
|
+
Enabled: true
|
144
|
+
|
145
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railseagerevaluationlogmessage
|
146
|
+
Rails/EagerEvaluationLogMessage:
|
147
|
+
Enabled: true
|
data/rubocop-rspec.yml
CHANGED
@@ -45,3 +45,11 @@ RSpec/StubbedMock:
|
|
45
45
|
# https://docs.rubocop.org/rubocop-rspec/cops_rails.html#railshttpstatus
|
46
46
|
RSpec/Rails/HttpStatus:
|
47
47
|
EnforcedStyle: numeric
|
48
|
+
|
49
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec/rails.html#rspecrailsavoidsetuphook
|
50
|
+
RSpec/Rails/AvoidSetupHook:
|
51
|
+
Enabled: true
|
52
|
+
|
53
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecidenticalequalityassertion
|
54
|
+
RSpec/IdenticalEqualityAssertion:
|
55
|
+
Enabled: true
|
data/rubocop-style.yml
CHANGED
@@ -80,3 +80,19 @@ Style/HashExcept:
|
|
80
80
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleifwithbooleanliteralbranches
|
81
81
|
Style/IfWithBooleanLiteralBranches:
|
82
82
|
Enabled: true
|
83
|
+
|
84
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleinpatternthen
|
85
|
+
Style/InPatternThen:
|
86
|
+
Enabled: true
|
87
|
+
|
88
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylemultipleinpatternthen
|
89
|
+
Style/MultilineInPatternThen:
|
90
|
+
Enabled: true
|
91
|
+
|
92
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylequotedsymbols
|
93
|
+
Style/QuotedSymbols:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylestringchars
|
97
|
+
Style/StringChars:
|
98
|
+
Enabled: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-nosolosoftware
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Aranda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-26 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.18'
|
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.18'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-faker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.11'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.11'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '2.
|
89
|
+
version: '2.4'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '2.
|
96
|
+
version: '2.4'
|
97
97
|
description: ''
|
98
98
|
email: jaranda@nosolosoftware.es
|
99
99
|
executables: []
|
@@ -125,8 +125,8 @@ homepage: https://github.com/nosolosoftware/rubocop-nosolosoftware
|
|
125
125
|
licenses:
|
126
126
|
- MIT
|
127
127
|
metadata:
|
128
|
-
source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v1.
|
129
|
-
changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v1.
|
128
|
+
source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v1.8.1
|
129
|
+
changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v1.8.1/CHANGELOG.md
|
130
130
|
homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
|
131
131
|
post_install_message:
|
132
132
|
rdoc_options:
|