Skip to content

Commit 776ade6

Browse files
committed
Mark all rubocops pending
1 parent f7b355b commit 776ade6

File tree

2 files changed

+122
-32
lines changed

2 files changed

+122
-32
lines changed

.rubocop_todo.yml

Lines changed: 119 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-03-08 09:38:19 UTC using RuboCop version 1.45.1.
3+
# on 2024-07-08 09:28:53 UTC using RuboCop version 1.64.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 18
9+
# Offense count: 19
1010
# This cop supports safe autocorrection (--autocorrect).
1111
Layout/EmptyLineAfterGuardClause:
1212
Exclude:
1313
- 'lib/onelogin/ruby-saml/authrequest.rb'
1414
- 'lib/onelogin/ruby-saml/idp_metadata_parser.rb'
1515
- 'lib/onelogin/ruby-saml/logoutrequest.rb'
1616
- 'lib/onelogin/ruby-saml/logoutresponse.rb'
17+
- 'lib/onelogin/ruby-saml/metadata.rb'
1718
- 'lib/onelogin/ruby-saml/response.rb'
1819
- 'lib/onelogin/ruby-saml/saml_message.rb'
1920
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
2021
- 'lib/onelogin/ruby-saml/slo_logoutresponse.rb'
2122

22-
# Offense count: 10
23+
# Offense count: 9
2324
# This cop supports safe autocorrection (--autocorrect).
2425
# Configuration parameters: EnforcedStyle.
2526
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
@@ -33,6 +34,12 @@ Layout/EmptyLinesAroundClassBody:
3334
- 'lib/onelogin/ruby-saml/slo_logoutresponse.rb'
3435
- 'lib/xml_security.rb'
3536

37+
# Offense count: 1
38+
# This cop supports safe autocorrection (--autocorrect).
39+
Layout/EmptyLinesAroundMethodBody:
40+
Exclude:
41+
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
42+
3643
# Offense count: 12
3744
# This cop supports safe autocorrection (--autocorrect).
3845
# Configuration parameters: EnforcedStyle.
@@ -59,15 +66,13 @@ Layout/EndOfLine:
5966
Exclude:
6067
- 'lib/onelogin/ruby-saml/setting_error.rb'
6168

62-
# Offense count: 5
69+
# Offense count: 3
6370
# This cop supports safe autocorrection (--autocorrect).
6471
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
6572
Layout/ExtraSpacing:
6673
Exclude:
67-
- 'lib/onelogin/ruby-saml/authrequest.rb'
6874
- 'lib/onelogin/ruby-saml/logoutrequest.rb'
6975
- 'lib/onelogin/ruby-saml/response.rb'
70-
- 'lib/onelogin/ruby-saml/slo_logoutresponse.rb'
7176

7277
# Offense count: 6
7378
# This cop supports safe autocorrection (--autocorrect).
@@ -125,15 +130,14 @@ Layout/SpaceAroundEqualsInParameterDefault:
125130
- 'lib/onelogin/ruby-saml/response.rb'
126131
- 'lib/onelogin/ruby-saml/utils.rb'
127132

128-
# Offense count: 18
133+
# Offense count: 16
129134
# This cop supports safe autocorrection (--autocorrect).
130-
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
135+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
131136
# SupportedStylesForExponentOperator: space, no_space
137+
# SupportedStylesForRationalLiterals: space, no_space
132138
Layout/SpaceAroundOperators:
133139
Exclude:
134-
- 'lib/onelogin/ruby-saml/authrequest.rb'
135140
- 'lib/onelogin/ruby-saml/response.rb'
136-
- 'lib/onelogin/ruby-saml/slo_logoutresponse.rb'
137141
- 'lib/onelogin/ruby-saml/utils.rb'
138142
- 'lib/xml_security.rb'
139143

@@ -147,7 +151,7 @@ Layout/SpaceInsideBlockBraces:
147151
- 'lib/onelogin/ruby-saml/idp_metadata_parser.rb'
148152
- 'lib/onelogin/ruby-saml/utils.rb'
149153

150-
# Offense count: 41
154+
# Offense count: 37
151155
# This cop supports safe autocorrection (--autocorrect).
152156
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
153157
# SupportedStyles: space, no_space, compact
@@ -156,20 +160,20 @@ Layout/SpaceInsideHashLiteralBraces:
156160
Exclude:
157161
- 'lib/onelogin/ruby-saml/authrequest.rb'
158162
- 'lib/onelogin/ruby-saml/logoutrequest.rb'
159-
- 'lib/onelogin/ruby-saml/metadata.rb'
160163
- 'lib/onelogin/ruby-saml/response.rb'
161164
- 'lib/onelogin/ruby-saml/settings.rb'
162165
- 'lib/onelogin/ruby-saml/slo_logoutresponse.rb'
163166
- 'lib/xml_security.rb'
164167

165-
# Offense count: 3
168+
# Offense count: 4
166169
# This cop supports safe autocorrection (--autocorrect).
167170
# Configuration parameters: EnforcedStyle.
168171
# SupportedStyles: final_newline, final_blank_line
169172
Layout/TrailingEmptyLines:
170173
Exclude:
171174
- 'lib/onelogin/ruby-saml/http_error.rb'
172175
- 'lib/onelogin/ruby-saml/setting_error.rb'
176+
- 'lib/onelogin/ruby-saml/settings.rb'
173177
- 'lib/onelogin/ruby-saml/validation_error.rb'
174178

175179
# Offense count: 4
@@ -185,10 +189,14 @@ Lint/NoReturnInBeginEndBlocks:
185189
Exclude:
186190
- 'lib/onelogin/ruby-saml/idp_metadata_parser.rb'
187191

188-
# Offense count: 1
189-
Lint/ShadowingOuterLocalVariable:
192+
# Offense count: 2
193+
# This cop supports safe autocorrection (--autocorrect).
194+
# Configuration parameters: EnforcedStyle.
195+
# SupportedStyles: strict, consistent
196+
Lint/SymbolConversion:
190197
Exclude:
191-
- 'lib/onelogin/ruby-saml/response.rb'
198+
- 'lib/onelogin/ruby-saml/idp_metadata_parser.rb'
199+
- 'lib/onelogin/ruby-saml/settings.rb'
192200

193201
# Offense count: 1
194202
# Configuration parameters: AllowedPatterns.
@@ -198,12 +206,14 @@ Lint/UnreachableLoop:
198206
- 'lib/onelogin/ruby-saml/saml_message.rb'
199207

200208
# Offense count: 3
209+
# This cop supports unsafe autocorrection (--autocorrect-all).
210+
# Configuration parameters: AutoCorrect.
201211
Lint/UselessAssignment:
202212
Exclude:
203213
- 'lib/onelogin/ruby-saml/logging.rb'
204-
- 'lib/onelogin/ruby-saml/response.rb'
214+
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
205215

206-
# Offense count: 39
216+
# Offense count: 42
207217
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
208218
Metrics/AbcSize:
209219
Max: 100
@@ -219,12 +229,12 @@ Metrics/BlockLength:
219229
Metrics/ClassLength:
220230
Max: 652
221231

222-
# Offense count: 23
232+
# Offense count: 25
223233
# Configuration parameters: AllowedMethods, AllowedPatterns.
224234
Metrics/CyclomaticComplexity:
225235
Max: 21
226236

227-
# Offense count: 58
237+
# Offense count: 59
228238
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
229239
Metrics/MethodLength:
230240
Max: 63
@@ -234,12 +244,12 @@ Metrics/MethodLength:
234244
Metrics/ParameterLists:
235245
MaxOptionalParameters: 4
236246

237-
# Offense count: 22
247+
# Offense count: 24
238248
# Configuration parameters: AllowedMethods, AllowedPatterns.
239249
Metrics/PerceivedComplexity:
240250
Max: 22
241251

242-
# Offense count: 7
252+
# Offense count: 13
243253
Naming/AccessorMethodName:
244254
Exclude:
245255
- 'lib/onelogin/ruby-saml/settings.rb'
@@ -251,17 +261,19 @@ Naming/AccessorMethodName:
251261
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
252262
Naming/FileName:
253263
Exclude:
264+
- 'Rakefile.rb'
254265
- 'lib/onelogin/ruby-saml.rb'
255266
- 'lib/ruby-saml.rb'
256267

257268
# Offense count: 2
269+
# This cop supports unsafe autocorrection (--autocorrect-all).
258270
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
259271
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
260272
Naming/MemoizedInstanceVariableName:
261273
Exclude:
262274
- 'lib/onelogin/ruby-saml/response.rb'
263275

264-
# Offense count: 3
276+
# Offense count: 4
265277
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
266278
# NamePrefix: is_, has_, have_
267279
# ForbiddenPrefixes: is_, has_, have_
@@ -294,6 +306,13 @@ Performance/CollectionLiteralInLoop:
294306
Exclude:
295307
- 'lib/onelogin/ruby-saml/response.rb'
296308

309+
# Offense count: 1
310+
# This cop supports unsafe autocorrection (--autocorrect-all).
311+
# Configuration parameters: AllowRegexpMatch.
312+
Performance/RedundantEqualityComparisonBlock:
313+
Exclude:
314+
- 'lib/onelogin/ruby-saml/settings.rb'
315+
297316
# Offense count: 5
298317
# This cop supports unsafe autocorrection (--autocorrect-all).
299318
Performance/StringInclude:
@@ -325,14 +344,15 @@ Style/AccessorGrouping:
325344
- 'lib/onelogin/ruby-saml/settings.rb'
326345
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
327346

328-
# Offense count: 5
347+
# Offense count: 6
329348
# This cop supports safe autocorrection (--autocorrect).
330349
# Configuration parameters: EnforcedStyle.
331350
# SupportedStyles: prefer_alias, prefer_alias_method
332351
Style/Alias:
333352
Exclude:
334353
- 'lib/onelogin/ruby-saml/attributes.rb'
335354
- 'lib/onelogin/ruby-saml/response.rb'
355+
- 'lib/onelogin/ruby-saml/settings.rb'
336356
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
337357

338358
# Offense count: 13
@@ -361,6 +381,7 @@ Style/ConditionalAssignment:
361381
- 'lib/onelogin/ruby-saml/authrequest.rb'
362382
- 'lib/onelogin/ruby-saml/logoutresponse.rb'
363383
- 'lib/onelogin/ruby-saml/response.rb'
384+
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
364385
- 'lib/xml_security.rb'
365386

366387
# Offense count: 8
@@ -375,26 +396,47 @@ Style/Documentation:
375396
- 'lib/onelogin/ruby-saml/logging.rb'
376397
- 'lib/xml_security.rb'
377398

378-
# Offense count: 1
399+
# Offense count: 2
379400
# This cop supports safe autocorrection (--autocorrect).
380401
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
381402
Style/GuardClause:
382403
Exclude:
383404
- 'lib/onelogin/ruby-saml/response.rb'
405+
- 'lib/onelogin/ruby-saml/settings.rb'
406+
407+
# Offense count: 3
408+
# This cop supports unsafe autocorrection (--autocorrect-all).
409+
# Configuration parameters: AllowedReceivers.
410+
# AllowedReceivers: Thread.current
411+
Style/HashEachMethods:
412+
Exclude:
413+
- 'lib/onelogin/ruby-saml/metadata.rb'
414+
- 'lib/onelogin/ruby-saml/settings.rb'
415+
416+
# Offense count: 4
417+
# This cop supports safe autocorrection (--autocorrect).
418+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
419+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
420+
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
421+
Style/HashSyntax:
422+
Exclude:
423+
- 'lib/onelogin/ruby-saml/settings.rb'
384424

385-
# Offense count: 60
425+
# Offense count: 66
386426
# This cop supports safe autocorrection (--autocorrect).
387427
Style/IfUnlessModifier:
388428
Exclude:
389429
- 'lib/onelogin/ruby-saml/authrequest.rb'
390430
- 'lib/onelogin/ruby-saml/error_handling.rb'
391431
- 'lib/onelogin/ruby-saml/idp_metadata_parser.rb'
432+
- 'lib/onelogin/ruby-saml/logoutrequest.rb'
392433
- 'lib/onelogin/ruby-saml/logoutresponse.rb'
393434
- 'lib/onelogin/ruby-saml/metadata.rb'
394435
- 'lib/onelogin/ruby-saml/response.rb'
395436
- 'lib/onelogin/ruby-saml/saml_message.rb'
396437
- 'lib/onelogin/ruby-saml/settings.rb'
397438
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
439+
- 'lib/onelogin/ruby-saml/slo_logoutresponse.rb'
398440
- 'lib/onelogin/ruby-saml/utils.rb'
399441
- 'lib/xml_security.rb'
400442

@@ -413,15 +455,47 @@ Style/OptionalBooleanParameter:
413455
- 'lib/onelogin/ruby-saml/utils.rb'
414456
- 'lib/xml_security.rb'
415457

416-
# Offense count: 2
458+
# Offense count: 1
459+
# This cop supports safe autocorrection (--autocorrect).
460+
Style/RedundantBegin:
461+
Exclude:
462+
- 'lib/onelogin/ruby-saml/utils.rb'
463+
464+
# Offense count: 8
465+
# This cop supports safe autocorrection (--autocorrect).
466+
Style/RedundantRegexpArgument:
467+
Exclude:
468+
- 'lib/onelogin/ruby-saml/saml_message.rb'
469+
- 'lib/onelogin/ruby-saml/utils.rb'
470+
- 'lib/xml_security.rb'
471+
472+
# Offense count: 3
473+
# This cop supports safe autocorrection (--autocorrect).
474+
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
475+
# SupportedStyles: slashes, percent_r, mixed
476+
Style/RegexpLiteral:
477+
Exclude:
478+
- 'lib/onelogin/ruby-saml/response.rb'
479+
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
480+
481+
# Offense count: 1
482+
# This cop supports unsafe autocorrection (--autocorrect-all).
483+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
484+
# AllowedMethods: present?, blank?, presence, try, try!
485+
Style/SafeNavigation:
486+
Exclude:
487+
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
488+
489+
# Offense count: 4
417490
# This cop supports unsafe autocorrection (--autocorrect-all).
418491
# Configuration parameters: Mode.
419492
Style/StringConcatenation:
420493
Exclude:
421494
- 'lib/onelogin/ruby-saml/response.rb'
422495
- 'lib/onelogin/ruby-saml/saml_message.rb'
496+
- 'lib/onelogin/ruby-saml/slo_logoutrequest.rb'
423497

424-
# Offense count: 450
498+
# Offense count: 443
425499
# This cop supports safe autocorrection (--autocorrect).
426500
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
427501
# SupportedStyles: single_quotes, double_quotes
@@ -443,7 +517,23 @@ Style/StringLiterals:
443517
- 'lib/onelogin/ruby-saml/utils.rb'
444518
- 'lib/xml_security.rb'
445519

446-
# Offense count: 100
520+
# Offense count: 3
521+
# This cop supports safe autocorrection (--autocorrect).
522+
Style/SuperArguments:
523+
Exclude:
524+
- 'lib/onelogin/ruby-saml/authrequest.rb'
525+
- 'lib/onelogin/ruby-saml/logoutrequest.rb'
526+
- 'lib/onelogin/ruby-saml/slo_logoutresponse.rb'
527+
528+
# Offense count: 1
529+
# This cop supports safe autocorrection (--autocorrect).
530+
# Configuration parameters: EnforcedStyle, MinSize.
531+
# SupportedStyles: percent, brackets
532+
Style/SymbolArray:
533+
Exclude:
534+
- 'lib/onelogin/ruby-saml/settings.rb'
535+
536+
# Offense count: 103
447537
# This cop supports safe autocorrection (--autocorrect).
448538
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
449539
# URISchemes: http, https

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ gemspec
77
gem 'minitest', '~> 5.18', require: false
88
gem 'mocha', '~> 2.0', require: false
99
gem 'rake', '~> 13.0'
10-
gem 'rubocop', '~> 1.45.1', require: false
11-
gem 'rubocop-minitest', '~> 0.22.2', require: false
12-
gem 'rubocop-performance', '~> 1.16.0', require: false
10+
gem 'rubocop', '~> 1.64.1', require: false
11+
gem 'rubocop-minitest', '~> 0.35.0', require: false
12+
gem 'rubocop-performance', '~> 1.21.1', require: false
1313
gem 'rubocop-rake', '~> 0.6.0', require: false
1414
gem 'simplecov', '~> 0.22', require: false
1515
gem 'simplecov-lcov', '~> 0.8', require: false

0 commit comments

Comments
 (0)