rubocop-nosolosoftware 1.12.1 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +57 -0
- data/rubocop-gemspec.yml +12 -0
- data/rubocop-lint.yml +8 -0
- data/rubocop-naming.yml +5 -0
- data/rubocop-performance.yml +4 -0
- data/rubocop-rails.yml +56 -0
- data/rubocop-rspec.yml +20 -0
- data/rubocop-security.yml +4 -0
- data/rubocop-style.yml +40 -0
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dd335cf3f1b5a31836dcd89709ed6d75b9d8403e4a1a3c6d3a422e04bf06504
|
4
|
+
data.tar.gz: 195c27383be651b3d3969932819316571d93efa8d93c379057a5e9a96bd3be80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4ec157146b6f9b2f7d4d46ce5962e1b203ce70324b7af03bb5c14ef114684bbf2a45ebc99b63e2a7a9417675772de871f4e65626685900c752ea9a3123be540
|
7
|
+
data.tar.gz: ecaeb8daeaa2149d759a8d94a7661fcde50534ff957a0b3e46561064f2b5289dee12389ed781f65060c4b115699dd7a9e32b35c95e0de9c4e3c29512765ff114
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,63 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
8
|
The following rules have been added:
|
9
|
+
## 1.15.0 - 2022-06-02
|
10
|
+
- Added new rules
|
11
|
+
- rubocop
|
12
|
+
- Gemspec/DependencyVersion (1.29)
|
13
|
+
- Gemspec/DeprecatedAttributeAssignment (1.30)
|
14
|
+
- Lint/RefinementImportMethods (1.27)
|
15
|
+
- Security/CompoundHash (1.28)
|
16
|
+
- Style/EnvHome (1.29)
|
17
|
+
- Style/FetchEnvVar (1.28)
|
18
|
+
- Style/MapCompactWithConditionalBlock (1.30)
|
19
|
+
- Style/NestedFileDirname (1.26)
|
20
|
+
- Style/ObjectThen (1.28)
|
21
|
+
- Style/RedundantInitialize (1.27)
|
22
|
+
- rubocop-rails
|
23
|
+
- Rails/I18nLocaleTexts (2.14)
|
24
|
+
- Rails/I18nLazyLookup (2.14)
|
25
|
+
- Rails/MigrationClassName (2.14)
|
26
|
+
- Rails/DuplicateAssociation (2.14)
|
27
|
+
- Rails/DuplicateScope (2.14)
|
28
|
+
- Rails/TransactionExitStatement (2.14)
|
29
|
+
- Rails/DeprecatedActiveModelErrorsMethods (2.14)
|
30
|
+
- Rails/ActionControllerTestCase (2.14)
|
31
|
+
- Rails/TableNameAssignment (2.14)
|
32
|
+
- rubocop-rspec
|
33
|
+
- RSpec/ChangeByZero (2.11.0)
|
34
|
+
- RSpec/VerifiedDoubleReference (2.10.0)
|
35
|
+
|
36
|
+
## 1.14.0 - 2022-03-04
|
37
|
+
- Added new rules
|
38
|
+
- rubocop-rails
|
39
|
+
- Rails/CompactBlank (2.13)
|
40
|
+
- rubocop-performance
|
41
|
+
- Performance/StringIdentifierArgument (1.13)
|
42
|
+
- rubocop-rspec
|
43
|
+
- RSpec/BeEq (2.9)
|
44
|
+
- RSpec/BeNil (2.9)
|
45
|
+
|
46
|
+
## 1.13.0 - 2022-02-25
|
47
|
+
- Added new rules
|
48
|
+
- rubocop
|
49
|
+
- Lint/UselessRuby2Keywords (1.23)
|
50
|
+
- Style/OpenStructUse (1.23)
|
51
|
+
- Gemspec/RequireMFA (1.23)
|
52
|
+
- Naming/BlockForwarding (1.24)
|
53
|
+
- Style/MapToHash (1.24)
|
54
|
+
- Style/FileRead (1.24)
|
55
|
+
- Style/FileWrite (1.24)
|
56
|
+
- rubocop-rails
|
57
|
+
- Rails/RootJoinChain (2.13)
|
58
|
+
- Rails/DurationArithmetic (2.13)
|
59
|
+
- Rails/RedundantPresenceValidationOnBelongsTo (2.13)
|
60
|
+
- Rails/SchemaComment (2.13)
|
61
|
+
- rubocop-rspec
|
62
|
+
- RSpec/FactoryBot/SyntaxMethods (2.7.0)
|
63
|
+
|
64
|
+
## 1.12.1 - 2021-10-13
|
65
|
+
- No new changes. Previous gem was yanked.
|
9
66
|
|
10
67
|
## 1.12.0 - 2021-10-13
|
11
68
|
- Added new rules
|
data/rubocop-gemspec.yml
CHANGED
@@ -5,3 +5,15 @@
|
|
5
5
|
# https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdateassignment
|
6
6
|
Gemspec/DateAssignment:
|
7
7
|
Enabled: true
|
8
|
+
|
9
|
+
# https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecrequiremfa
|
10
|
+
Gemspec/RequireMFA:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
# https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdependencyversion
|
14
|
+
Gemspec/DependencyVersion:
|
15
|
+
Enabled: true
|
16
|
+
|
17
|
+
# https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdeprecatedattributeassignment
|
18
|
+
Gemspec/DeprecatedAttributeAssignment:
|
19
|
+
Enabled: true
|
data/rubocop-lint.yml
CHANGED
@@ -95,3 +95,11 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
95
95
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintrequirerelativeselfpath
|
96
96
|
Lint/RequireRelativeSelfPath:
|
97
97
|
Enabled: true
|
98
|
+
|
99
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessruby2keywords
|
100
|
+
Lint/UselessRuby2Keywords:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintrefinementimportmethods
|
104
|
+
Lint/RefinementImportMethods:
|
105
|
+
Enabled: true
|
data/rubocop-naming.yml
CHANGED
@@ -9,3 +9,8 @@ Naming/VariableNumber:
|
|
9
9
|
# https://docs.rubocop.org/rubocop/cops_naming.html#naminginclusivelanguage
|
10
10
|
Naming/InclusiveLanguage:
|
11
11
|
Enabled: false
|
12
|
+
|
13
|
+
# https://docs.rubocop.org/rubocop/cops_naming.html#namingblockforwarding
|
14
|
+
Naming/BlockForwarding:
|
15
|
+
Enabled: true
|
16
|
+
EnforcedStyle: explicit
|
data/rubocop-performance.yml
CHANGED
@@ -71,3 +71,7 @@ Performance/RedundantEqualityComparisonBlock:
|
|
71
71
|
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantsplitregexpargument
|
72
72
|
Performance/RedundantSplitRegexpArgument:
|
73
73
|
Enabled: true
|
74
|
+
|
75
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancestringidentifierargument
|
76
|
+
Performance/StringIdentifierArgument:
|
77
|
+
Enabled: true
|
data/rubocop-rails.yml
CHANGED
@@ -149,3 +149,59 @@ Rails/EagerEvaluationLogMessage:
|
|
149
149
|
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsredundanttravelback
|
150
150
|
Rails/RedundantTravelBack:
|
151
151
|
Enabled: true
|
152
|
+
|
153
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsrootjoinchain
|
154
|
+
Rails/RootJoinChain:
|
155
|
+
Enabled: true
|
156
|
+
|
157
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsdurationarithmetic
|
158
|
+
Rails/DurationArithmetic:
|
159
|
+
Enabled: true
|
160
|
+
|
161
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsredundantpresencevalidationonbelongsto
|
162
|
+
Rails/RedundantPresenceValidationOnBelongsTo:
|
163
|
+
Enabled: true
|
164
|
+
|
165
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsschemacomment
|
166
|
+
Rails/SchemaComment:
|
167
|
+
Enabled: false
|
168
|
+
|
169
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railscompactblank
|
170
|
+
Rails/CompactBlank:
|
171
|
+
Enabled: true
|
172
|
+
|
173
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsi18nlocaletexts
|
174
|
+
Rails/I18nLocaleTexts:
|
175
|
+
Enabled: true
|
176
|
+
|
177
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsi18nlazylookup
|
178
|
+
Rails/I18nLazyLookup:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsmigrationclassname
|
182
|
+
Rails/MigrationClassName:
|
183
|
+
Enabled: true
|
184
|
+
|
185
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsduplicateassociation
|
186
|
+
Rails/DuplicateAssociation:
|
187
|
+
Enabled: true
|
188
|
+
|
189
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsduplicatescope
|
190
|
+
Rails/DuplicateScope:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railstransactionexitstatement
|
194
|
+
Rails/TransactionExitStatement:
|
195
|
+
Enabled: true
|
196
|
+
|
197
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsdeprecatedactivemodelerrorsmethods
|
198
|
+
Rails/DeprecatedActiveModelErrorsMethods:
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsactioncontrollertestcase
|
202
|
+
Rails/ActionControllerTestCase:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railstablenameassignment
|
206
|
+
Rails/TableNameAssignment:
|
207
|
+
Enabled: false
|
data/rubocop-rspec.yml
CHANGED
@@ -61,3 +61,23 @@ RSpec/ExcessiveDocstringSpacing:
|
|
61
61
|
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecsubjectdeclaration
|
62
62
|
RSpec/SubjectDeclaration:
|
63
63
|
Enabled: true
|
64
|
+
|
65
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html#rspecfactorybotsyntaxmethods
|
66
|
+
RSpec/FactoryBot/SyntaxMethods:
|
67
|
+
Enabled: true
|
68
|
+
|
69
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecbeeq
|
70
|
+
RSpec/BeEq:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecbenil
|
74
|
+
RSpec/BeNil:
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecverifieddoublereference
|
78
|
+
RSpec/VerifiedDoubleReference:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecchangebyzero
|
82
|
+
RSpec/ChangeByZero:
|
83
|
+
Enabled: true
|
data/rubocop-security.yml
CHANGED
data/rubocop-style.yml
CHANGED
@@ -112,3 +112,43 @@ Style/NumberedParametersLimit:
|
|
112
112
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleselectbyregexp
|
113
113
|
Style/SelectByRegexp:
|
114
114
|
Enabled: true
|
115
|
+
|
116
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleopenstructuse
|
117
|
+
Style/OpenStructUse:
|
118
|
+
Enabled: true
|
119
|
+
|
120
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylemaptohash
|
121
|
+
Style/MapToHash:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylefileread
|
125
|
+
Style/FileRead:
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylefilewrite
|
129
|
+
Style/FileWrite:
|
130
|
+
Enabled: true
|
131
|
+
|
132
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylenestedfiledirname
|
133
|
+
Style/NestedFileDirname:
|
134
|
+
Enabled: true
|
135
|
+
|
136
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantinitialize
|
137
|
+
Style/RedundantInitialize:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleobjectthen
|
141
|
+
Style/ObjectThen:
|
142
|
+
Enabled: true
|
143
|
+
|
144
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylefetchenvvar
|
145
|
+
Style/FetchEnvVar:
|
146
|
+
Enabled: true
|
147
|
+
|
148
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleenvhome
|
149
|
+
Style/EnvHome:
|
150
|
+
Enabled: true
|
151
|
+
|
152
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylemapcompactwithconditionalblock
|
153
|
+
Style/MapCompactWithConditionalBlock:
|
154
|
+
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.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Aranda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-08 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.30'
|
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.30'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-faker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,56 +44,56 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.14.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.14.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.14.2
|
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:
|
68
|
+
version: 2.14.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.6'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.6'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 2.11.1
|
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:
|
96
|
+
version: 2.11.1
|
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.15.0
|
129
|
+
changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v1.15.0/CHANGELOG.md
|
130
130
|
homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
|
131
131
|
post_install_message:
|
132
132
|
rdoc_options:
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.2.3
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Default Rubocop configuration used in NoSoloSoftware developments
|