main
1# This configuration was generated by
2# `rubocop --auto-gen-config`
3# on 2025-03-26 20:04:33 UTC using RuboCop version 1.75.1.
4# The point is for the user to remove these configuration records
5# one by one as the offenses are removed from the code base.
6# Note that changes in the inspected code, or installation of new
7# versions of RuboCop, may require this file to be generated again.
8
9# Offense count: 1
10# This cop supports safe autocorrection (--autocorrect).
11# Configuration parameters: EnforcedStyleAlignWith, Severity.
12# SupportedStylesAlignWith: start_of_line, begin
13Layout/BeginEndAlignment:
14 Exclude:
15 - 'exe/saml-kit-decode-http-redirect'
16
17# Offense count: 3
18# This cop supports unsafe autocorrection (--autocorrect-all).
19# Configuration parameters: Categories, ExpectedOrder.
20# ExpectedOrder: module_inclusion, constants, public_class_methods, initializer, public_methods, protected_methods, private_methods
21Layout/ClassStructure:
22 Exclude:
23 - 'lib/saml/kit/identity_provider_metadata.rb'
24 - 'lib/saml/kit/metadata.rb'
25 - 'lib/saml/kit/service_provider_metadata.rb'
26
27# Offense count: 4
28# This cop supports safe autocorrection (--autocorrect).
29# Configuration parameters: AllowAliasSyntax, AllowedMethods.
30# AllowedMethods: alias_method, public, protected, private
31Layout/EmptyLinesAroundAttributeAccessor:
32 Exclude:
33 - 'lib/saml/kit/builders/encrypted_assertion.rb'
34 - 'lib/saml/kit/builders/identity_provider_metadata.rb'
35 - 'lib/saml/kit/builders/service_provider_metadata.rb'
36 - 'lib/saml/kit/document.rb'
37
38# Offense count: 1
39# This cop supports safe autocorrection (--autocorrect).
40Layout/RescueEnsureAlignment:
41 Exclude:
42 - 'exe/saml-kit-decode-http-redirect'
43
44# Offense count: 15
45# This cop supports safe autocorrection (--autocorrect).
46Lint/DeprecatedOpenSSLConstant:
47 Exclude:
48 - 'lib/saml/kit/bindings/http_redirect.rb'
49 - 'lib/saml/kit/bindings/url_builder.rb'
50 - 'spec/saml/kit/authentication_request_spec.rb'
51 - 'spec/saml/kit/bindings/url_builder_spec.rb'
52 - 'spec/saml/kit/configuration_spec.rb'
53 - 'spec/saml/kit/signature_spec.rb'
54
55# Offense count: 2
56# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
57Metrics/AbcSize:
58 Max: 19
59
60# Offense count: 1
61# Configuration parameters: CountComments, CountAsOne.
62Metrics/ClassLength:
63 Max: 102
64
65# Offense count: 5
66# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
67Metrics/MethodLength:
68 Max: 13
69
70# Offense count: 1
71# This cop supports safe autocorrection (--autocorrect).
72# Configuration parameters: EnforcedStyle.
73# SupportedStyles: be, be_nil
74RSpec/BeNil:
75 Exclude:
76 - 'spec/saml/kit/kit_spec.rb'
77
78# Offense count: 2
79RSpec/IdenticalEqualityAssertion:
80 Exclude:
81 - 'spec/saml/kit/bindings/http_post_spec.rb'
82 - 'spec/saml/kit/logout_response_spec.rb'
83
84# Offense count: 39
85# This cop supports safe autocorrection (--autocorrect).
86RSpec/MatchArray:
87 Exclude:
88 - 'spec/saml/kit/assertion_spec.rb'
89 - 'spec/saml/kit/builders/identity_provider_metadata_spec.rb'
90 - 'spec/saml/kit/builders/service_provider_metadata_spec.rb'
91 - 'spec/saml/kit/composite_metadata_spec.rb'
92 - 'spec/saml/kit/configuration_spec.rb'
93 - 'spec/saml/kit/default_registry_spec.rb'
94 - 'spec/saml/kit/identity_provider_metadata_spec.rb'
95 - 'spec/saml/kit/response_spec.rb'
96 - 'spec/saml/kit/service_provider_metadata_spec.rb'
97 - 'spec/saml/kit/signature_spec.rb'
98
99# Offense count: 4
100# This cop supports unsafe autocorrection (--autocorrect-all).
101RSpec/ReceiveMessages:
102 Exclude:
103 - 'spec/saml/kit/logout_request_spec.rb'
104
105# Offense count: 1
106# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
107# Include: **/*_spec.rb
108RSpec/SpecFilePathFormat:
109 Exclude:
110 - '**/spec/routing/**/*'
111 - 'spec/saml/kit/kit_spec.rb'
112
113# Offense count: 1
114RSpec/SubjectDeclaration:
115 Exclude:
116 - 'spec/saml/kit/identity_provider_metadata_spec.rb'
117
118# Offense count: 19
119# This cop supports safe autocorrection (--autocorrect).
120# Configuration parameters: EnforcedStyle.
121# SupportedStyles: separated, grouped
122Style/AccessorGrouping:
123 Exclude:
124 - 'lib/saml/kit/builders/assertion.rb'
125 - 'lib/saml/kit/builders/authentication_request.rb'
126 - 'lib/saml/kit/builders/identity_provider_metadata.rb'
127 - 'lib/saml/kit/builders/logout_response.rb'
128 - 'lib/saml/kit/builders/metadata.rb'
129 - 'lib/saml/kit/builders/service_provider_metadata.rb'
130
131# Offense count: 3
132# This cop supports safe autocorrection (--autocorrect).
133Style/ExplicitBlockArgument:
134 Exclude:
135 - 'lib/saml/kit/concerns/validatable.rb'
136 - 'lib/saml/kit/default_registry.rb'
137 - 'spec/support/ruby_prof.rb'
138
139# Offense count: 4
140# This cop supports unsafe autocorrection (--autocorrect-all).
141Style/GlobalStdStream:
142 Exclude:
143 - 'exe/saml-kit-create-self-signed-certificate'
144 - 'exe/saml-kit-decode-http-post'
145 - 'exe/saml-kit-decode-http-redirect'
146 - 'lib/saml/kit/configuration.rb'
147
148# Offense count: 1
149# This cop supports safe autocorrection (--autocorrect).
150Style/IfUnlessModifier:
151 Exclude:
152 - 'lib/saml/kit/builders/authentication_request.rb'
153
154# Offense count: 26
155# This cop supports unsafe autocorrection (--autocorrect-all).
156# Configuration parameters: EnforcedStyle.
157# SupportedStyles: literals, strict
158Style/MutableConstant:
159 Exclude:
160 - 'lib/saml/kit/bindings.rb'
161 - 'lib/saml/kit/namespaces.rb'
162
163# Offense count: 1
164# This cop supports unsafe autocorrection (--autocorrect-all).
165# Configuration parameters: EnforcedStyle.
166# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
167Style/YodaCondition:
168 Exclude:
169 - 'lib/saml/kit/concerns/respondable.rb'