11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2023-03-08 09:07:11 UTC using RuboCop version 1.45.1.
3+ # on 2023-03-08 09:38:19 UTC using RuboCop version 1.45.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: 11
9+ # Offense count: 18
1010# This cop supports safe autocorrection (--autocorrect).
1111Layout/EmptyLineAfterGuardClause :
1212 Exclude :
@@ -16,6 +16,7 @@ Layout/EmptyLineAfterGuardClause:
1616 - ' lib/onelogin/ruby-saml/logoutresponse.rb'
1717 - ' lib/onelogin/ruby-saml/response.rb'
1818 - ' lib/onelogin/ruby-saml/saml_message.rb'
19+ - ' lib/onelogin/ruby-saml/slo_logoutrequest.rb'
1920 - ' lib/onelogin/ruby-saml/slo_logoutresponse.rb'
2021
2122# Offense count: 10
@@ -94,7 +95,7 @@ Layout/IndentationConsistency:
9495 Exclude :
9596 - ' lib/onelogin/ruby-saml/authrequest.rb'
9697
97- # Offense count: 3
98+ # Offense count: 6
9899# This cop supports safe autocorrection (--autocorrect).
99100# Configuration parameters: Width, AllowedPatterns.
100101Layout/IndentationWidth :
@@ -205,23 +206,18 @@ Lint/UselessAssignment:
205206# Offense count: 39
206207# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
207208Metrics/AbcSize :
208- Max : 101
209+ Max : 100
209210
210211# Offense count: 1
211212# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
212213# AllowedMethods: refine
213214Metrics/BlockLength :
214215 Max : 27
215216
216- # Offense count: 4
217- # Configuration parameters: CountBlocks.
218- Metrics/BlockNesting :
219- Max : 4
220-
221217# Offense count: 9
222218# Configuration parameters: CountComments, CountAsOne.
223219Metrics/ClassLength :
224- Max : 668
220+ Max : 652
225221
226222# Offense count: 23
227223# Configuration parameters: AllowedMethods, AllowedPatterns.
@@ -231,7 +227,7 @@ Metrics/CyclomaticComplexity:
231227# Offense count: 58
232228# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
233229Metrics/MethodLength :
234- Max : 68
230+ Max : 63
235231
236232# Offense count: 2
237233# Configuration parameters: Max, CountKeywordArgs.
@@ -379,15 +375,14 @@ Style/Documentation:
379375 - ' lib/onelogin/ruby-saml/logging.rb'
380376 - ' lib/xml_security.rb'
381377
382- # Offense count: 3
378+ # Offense count: 1
383379# This cop supports safe autocorrection (--autocorrect).
384380# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
385381Style/GuardClause :
386382 Exclude :
387383 - ' lib/onelogin/ruby-saml/response.rb'
388- - ' lib/onelogin/ruby-saml/utils.rb'
389384
390- # Offense count: 69
385+ # Offense count: 60
391386# This cop supports safe autocorrection (--autocorrect).
392387Style/IfUnlessModifier :
393388 Exclude :
@@ -403,35 +398,6 @@ Style/IfUnlessModifier:
403398 - ' lib/onelogin/ruby-saml/utils.rb'
404399 - ' lib/xml_security.rb'
405400
406- # Offense count: 1
407- # This cop supports safe autocorrection (--autocorrect).
408- Style/NegatedIfElseCondition :
409- Exclude :
410- - ' lib/onelogin/ruby-saml/authrequest.rb'
411-
412- # Offense count: 6
413- # This cop supports safe autocorrection (--autocorrect).
414- # Configuration parameters: EnforcedStyle, MinBodyLength.
415- # SupportedStyles: skip_modifier_ifs, always
416- Style/Next :
417- Exclude :
418- - ' lib/onelogin/ruby-saml/logoutresponse.rb'
419- - ' lib/onelogin/ruby-saml/metadata.rb'
420- - ' lib/onelogin/ruby-saml/response.rb'
421- - ' lib/onelogin/ruby-saml/slo_logoutrequest.rb'
422- - ' lib/xml_security.rb'
423-
424- # Offense count: 7
425- # This cop supports unsafe autocorrection (--autocorrect-all).
426- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
427- # SupportedStyles: predicate, comparison
428- Style/NumericPredicate :
429- Exclude :
430- - ' spec/**/*'
431- - ' lib/onelogin/ruby-saml/attribute_service.rb'
432- - ' lib/onelogin/ruby-saml/response.rb'
433- - ' lib/onelogin/ruby-saml/slo_logoutrequest.rb'
434-
435401# Offense count: 15
436402# Configuration parameters: AllowedMethods.
437403# AllowedMethods: respond_to_missing?
@@ -447,86 +413,15 @@ Style/OptionalBooleanParameter:
447413 - ' lib/onelogin/ruby-saml/utils.rb'
448414 - ' lib/xml_security.rb'
449415
450- # Offense count: 9
451- # This cop supports unsafe autocorrection (--autocorrect-all).
452- # Configuration parameters: EnforcedStyle.
453- # SupportedStyles: short, verbose
454- Style/PreferredHashMethods :
455- Exclude :
456- - ' lib/onelogin/ruby-saml/attributes.rb'
457- - ' lib/onelogin/ruby-saml/logoutresponse.rb'
458- - ' lib/onelogin/ruby-saml/response.rb'
459- - ' lib/onelogin/ruby-saml/slo_logoutrequest.rb'
460-
461- # Offense count: 21
462- # This cop supports safe autocorrection (--autocorrect).
463- # Configuration parameters: AllowedCompactTypes.
464- # SupportedStyles: compact, exploded
465- Style/RaiseArgs :
466- EnforcedStyle : compact
467-
468- # Offense count: 4
469- # This cop supports safe autocorrection (--autocorrect).
470- Style/RedundantRegexpEscape :
471- Exclude :
472- - ' lib/onelogin/ruby-saml/utils.rb'
473-
474- # Offense count: 5
475- # This cop supports safe autocorrection (--autocorrect).
476- # Configuration parameters: AllowMultipleReturnValues.
477- Style/RedundantReturn :
478- Exclude :
479- - ' lib/onelogin/ruby-saml/logoutresponse.rb'
480- - ' lib/onelogin/ruby-saml/utils.rb'
481- - ' lib/xml_security.rb'
482-
483- # Offense count: 4
484- # This cop supports safe autocorrection (--autocorrect).
485- Style/RedundantSelf :
486- Exclude :
487- - ' lib/onelogin/ruby-saml/utils.rb'
488- - ' lib/xml_security.rb'
489-
490- # Offense count: 4
491- # This cop supports safe autocorrection (--autocorrect).
492- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
493- # SupportedStyles: slashes, percent_r, mixed
494- Style/RegexpLiteral :
495- Exclude :
496- - ' lib/onelogin/ruby-saml/response.rb'
497- - ' lib/onelogin/ruby-saml/utils.rb'
498-
499- # Offense count: 4
500- # This cop supports unsafe autocorrection (--autocorrect-all).
501- Style/SlicingWithRange :
502- Exclude :
503- - ' lib/onelogin/ruby-saml/response.rb'
504- - ' lib/onelogin/ruby-saml/utils.rb'
505- - ' lib/xml_security.rb'
506-
507- # Offense count: 10
508- # This cop supports safe autocorrection (--autocorrect).
509- # Configuration parameters: AllowModifier.
510- Style/SoleNestedConditional :
511- Exclude :
512- - ' lib/onelogin/ruby-saml/idp_metadata_parser.rb'
513- - ' lib/onelogin/ruby-saml/logoutresponse.rb'
514- - ' lib/onelogin/ruby-saml/response.rb'
515- - ' lib/onelogin/ruby-saml/settings.rb'
516- - ' lib/onelogin/ruby-saml/slo_logoutrequest.rb'
517-
518- # Offense count: 7
416+ # Offense count: 2
519417# This cop supports unsafe autocorrection (--autocorrect-all).
520418# Configuration parameters: Mode.
521419Style/StringConcatenation :
522420 Exclude :
523- - ' lib/onelogin/ruby-saml/idp_metadata_parser.rb'
524- - ' lib/onelogin/ruby-saml/metadata.rb'
525421 - ' lib/onelogin/ruby-saml/response.rb'
526422 - ' lib/onelogin/ruby-saml/saml_message.rb'
527- - ' lib/onelogin/ruby-saml/utils.rb'
528423
529- # Offense count: 452
424+ # Offense count: 450
530425# This cop supports safe autocorrection (--autocorrect).
531426# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
532427# SupportedStyles: single_quotes, double_quotes
@@ -548,41 +443,7 @@ Style/StringLiterals:
548443 - ' lib/onelogin/ruby-saml/utils.rb'
549444 - ' lib/xml_security.rb'
550445
551- # Offense count: 8
552- # This cop supports safe autocorrection (--autocorrect).
553- # Configuration parameters: MinSize.
554- # SupportedStyles: percent, brackets
555- Style/SymbolArray :
556- EnforcedStyle : brackets
557-
558- # Offense count: 3
559- # This cop supports safe autocorrection (--autocorrect).
560- # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
561- # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
562- Style/TernaryParentheses :
563- Exclude :
564- - ' lib/onelogin/ruby-saml/authrequest.rb'
565- - ' lib/onelogin/ruby-saml/logoutrequest.rb'
566- - ' lib/onelogin/ruby-saml/slo_logoutresponse.rb'
567-
568- # Offense count: 3
569- # This cop supports safe autocorrection (--autocorrect).
570- # Configuration parameters: EnforcedStyleForMultiline.
571- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
572- Style/TrailingCommaInHashLiteral :
573- Exclude :
574- - ' lib/onelogin/ruby-saml/authrequest.rb'
575- - ' lib/onelogin/ruby-saml/idp_metadata_parser.rb'
576- - ' lib/onelogin/ruby-saml/metadata.rb'
577-
578- # Offense count: 4
579- # This cop supports unsafe autocorrection (--autocorrect-all).
580- Style/ZeroLengthPredicate :
581- Exclude :
582- - ' lib/onelogin/ruby-saml/attribute_service.rb'
583- - ' lib/onelogin/ruby-saml/response.rb'
584-
585- # Offense count: 96
446+ # Offense count: 100
586447# This cop supports safe autocorrection (--autocorrect).
587448# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
588449# URISchemes: http, https
0 commit comments