rubocop-nosolosoftware 1.13.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f748f862232301cb934858457dd800cf4416979b2bf79c801ba1efad2048bf9d
4
- data.tar.gz: 8434ef9fb1c4d8b12e715a0e495b4de41c9a75b23b288f86a22dbbb76942247d
3
+ metadata.gz: c83a65769879a3c1f22426f2676c8fa027c2bd1073f3cb907e93f993addcae35
4
+ data.tar.gz: a222df910618f9b51e9da57daa3a9fc736fa17686b58bfc0c155e49186152180
5
5
  SHA512:
6
- metadata.gz: e165a0a2a1f651b6232284ca656e9a3d12dd0aba3727f4c93d13f2d8d6fc67878ad3182c5590fa7dc1bf6e0676ebebed51c867d2fb9435cfd0fa68992b1b1848
7
- data.tar.gz: 41c02871fd0e884448de005cce849a5f9d81bed9d7912879d026e61b088ab34e93108af39dbdd95962ff28815c1f65f2bd94b6dd29486143237c0b9dde19a6ef
6
+ metadata.gz: e80e154e0dc55f972ccdd4e7e381d53ed4b47a145ea4e870b71b1d80cbc52d971ed91ec06cbdd00ccaf4cdbacbcd1ff61b9e8ff29940c15cad9a832e1bfc6ce1
7
+ data.tar.gz: '001117963311d3a63df48f9b3153f932abbc6036a1a3c781c0a95d1d99cc978b4250f0d2bf22ff06f153657ed20ac2c8e122d8612a4e24f3e4101a1e7d7fb884'
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.16.0 - 2022-09-01
10
+ - Added new rules
11
+ - rubocop
12
+ - Lint/NonAtomicFileOperation (1.31.0)
13
+ - Layout/LineContinuationLeadingSpace (1.31.0)
14
+ - Layout/LineContinuationSpacing (1.31.0)
15
+ - Style/EmptyHeredoc (1.32.0)
16
+ - Layout/MultilineMethodParameterLineBreaks (1.32.0)
17
+ - Lint/RequireRangeParentheses (1.32.0)
18
+ - Style/MagicCommentFormat (1.35.0)
19
+ - rubocop-rails
20
+ - Rails/DotSeparatedKeys (1.15.0)
21
+ - Rails/StripHeredoc (1.15.0)
22
+ - Rails/ToFormattedS (1.15.0)
23
+ - Rails/RootPublicPath (1.15.0)
24
+ - rubocop-rspec
25
+ - RSpec/Capybara/SpecificMatcher (2.12.0)
26
+ - RSpec/Rails/HaveHttpStatus (2.12.0)
27
+ - Removed rules
28
+ - rubocop
29
+ - Gemspec/DateAssignment
30
+ ## 1.15.0 - 2022-06-02
31
+ - Added new rules
32
+ - rubocop
33
+ - Gemspec/DependencyVersion (1.29)
34
+ - Gemspec/DeprecatedAttributeAssignment (1.30)
35
+ - Lint/RefinementImportMethods (1.27)
36
+ - Security/CompoundHash (1.28)
37
+ - Style/EnvHome (1.29)
38
+ - Style/FetchEnvVar (1.28)
39
+ - Style/MapCompactWithConditionalBlock (1.30)
40
+ - Style/NestedFileDirname (1.26)
41
+ - Style/ObjectThen (1.28)
42
+ - Style/RedundantInitialize (1.27)
43
+ - rubocop-rails
44
+ - Rails/I18nLocaleTexts (2.14)
45
+ - Rails/I18nLazyLookup (2.14)
46
+ - Rails/MigrationClassName (2.14)
47
+ - Rails/DuplicateAssociation (2.14)
48
+ - Rails/DuplicateScope (2.14)
49
+ - Rails/TransactionExitStatement (2.14)
50
+ - Rails/DeprecatedActiveModelErrorsMethods (2.14)
51
+ - Rails/ActionControllerTestCase (2.14)
52
+ - Rails/TableNameAssignment (2.14)
53
+ - rubocop-rspec
54
+ - RSpec/ChangeByZero (2.11.0)
55
+ - RSpec/VerifiedDoubleReference (2.10.0)
56
+
57
+ ## 1.14.0 - 2022-03-04
58
+ - Added new rules
59
+ - rubocop-rails
60
+ - Rails/CompactBlank (2.13)
61
+ - rubocop-performance
62
+ - Performance/StringIdentifierArgument (1.13)
63
+ - rubocop-rspec
64
+ - RSpec/BeEq (2.9)
65
+ - RSpec/BeNil (2.9)
9
66
 
10
67
  ## 1.13.0 - 2022-02-25
11
68
  - Added new rules
data/rubocop-gemspec.yml CHANGED
@@ -2,10 +2,15 @@
2
2
  ## https://rubocop.readthedocs.io/en/latest/cops_gemspec/
3
3
  #
4
4
 
5
- # https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdateassignment
6
- Gemspec/DateAssignment:
7
- Enabled: true
8
-
9
5
  # https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecrequiremfa
10
6
  Gemspec/RequireMFA:
11
7
  Enabled: true
8
+
9
+ # https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdependencyversion
10
+ Gemspec/DependencyVersion:
11
+ Enabled: true
12
+
13
+ # https://docs.rubocop.org/rubocop/cops_gemspec.html#gemspecdeprecatedattributeassignment
14
+ Gemspec/DeprecatedAttributeAssignment:
15
+ Enabled: true
16
+
data/rubocop-layout.yml CHANGED
@@ -26,3 +26,15 @@ Layout/SpaceBeforeBrackets:
26
26
  Layout/LineEndStringConcatenationIndentation:
27
27
  Enabled: true
28
28
  EnforcedStyle: aligned
29
+
30
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layoutlinecontinuationleadingspace
31
+ Layout/LineContinuationLeadingSpace:
32
+ Enabled: true
33
+
34
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layoutlinecontinuationspacing
35
+ Layout/LineContinuationSpacing:
36
+ Enabled: true
37
+
38
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layoutmultilinemethodparameterlinebreaks
39
+ Layout/MultilineMethodParameterLineBreaks:
40
+ Enabled: true
data/rubocop-lint.yml CHANGED
@@ -99,3 +99,19 @@ Lint/RequireRelativeSelfPath:
99
99
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessruby2keywords
100
100
  Lint/UselessRuby2Keywords:
101
101
  Enabled: true
102
+
103
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintrefinementimportmethods
104
+ Lint/RefinementImportMethods:
105
+ Enabled: true
106
+
107
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintnonatomicfileoperation
108
+ Lint/NonAtomicFileOperation:
109
+ Enabled: true
110
+
111
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintconstantoverwritteninrescue
112
+ Lint/ConstantOverwrittenInRescue:
113
+ Enabled: true
114
+
115
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintrequirerangeparentheses
116
+ Lint/RequireRangeParentheses:
117
+ Enabled: true
@@ -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
@@ -165,3 +165,59 @@ Rails/RedundantPresenceValidationOnBelongsTo:
165
165
  # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsschemacomment
166
166
  Rails/SchemaComment:
167
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
208
+
209
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsdotseparatedkeys
210
+ Rails/DotSeparatedKeys:
211
+ Enabled: true
212
+
213
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsstripheredoc
214
+ Rails/StripHeredoc:
215
+ Enabled: true
216
+
217
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railstoformatteds
218
+ Rails/ToFormattedS:
219
+ Enabled: true
220
+
221
+ # https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsrootpublicpath
222
+ Rails/RootPublicPath:
223
+ Enabled: true
data/rubocop-rspec.yml CHANGED
@@ -65,3 +65,27 @@ RSpec/SubjectDeclaration:
65
65
  # https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html#rspecfactorybotsyntaxmethods
66
66
  RSpec/FactoryBot/SyntaxMethods:
67
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
84
+
85
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html#rspeccapybaraspecificmatcher
86
+ RSpec/Capybara/SpecificMatcher:
87
+ Enabled: true
88
+
89
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html#rspecrailshavehttpstatus
90
+ RSpec/Rails/HaveHttpStatus:
91
+ Enabled: true
data/rubocop-security.yml CHANGED
@@ -5,3 +5,7 @@
5
5
  # https://docs.rubocop.org/rubocop/cops_security.html#securityiomethods
6
6
  Security/IoMethods:
7
7
  Enabled: true
8
+
9
+ # https://docs.rubocop.org/rubocop/cops_security.html#securitycompoundhash
10
+ Security/CompoundHash:
11
+ Enabled: true
data/rubocop-style.yml CHANGED
@@ -128,3 +128,36 @@ Style/FileRead:
128
128
  # https://docs.rubocop.org/rubocop/cops_style.html#stylefilewrite
129
129
  Style/FileWrite:
130
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
155
+
156
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleemptyheredoc
157
+ Style/EmptyHeredoc:
158
+ Enabled: true
159
+
160
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylemagiccommentformat
161
+ Style/MagicCommentFormat:
162
+ Enabled: true
163
+ EnforcedStyle: snake_case
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.13.0
4
+ version: 1.16.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: 2022-03-04 00:00:00.000000000 Z
11
+ date: 2022-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,84 +16,84 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.25'
19
+ version: 1.35.1
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.25'
26
+ version: 1.35.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-faker
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.1'
33
+ version: 1.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.1'
40
+ version: 1.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-performance
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.13.2
47
+ version: 1.14.3
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: 1.13.2
54
+ version: 1.14.3
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: 2.13.2
61
+ version: 2.15.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: 2.13.2
68
+ version: 2.15.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.5'
75
+ version: 0.6.0
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.5'
82
+ version: 0.6.0
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: '2.8'
89
+ version: 2.12.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: '2.8'
96
+ version: 2.12.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.13.0
129
- changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v1.13.0/CHANGELOG.md
128
+ source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v1.16.0
129
+ changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v1.16.0/CHANGELOG.md
130
130
  homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
131
131
  post_install_message:
132
132
  rdoc_options: