Skip to content

Commit 4167996

Browse files
committed
Fix FrozenStringLiteralComment, LeadingCommentSpace
1 parent 635ace9 commit 4167996

23 files changed

+69
-39
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,6 @@ Layout/IndentationWidth:
163163
- 'lib/onelogin/ruby-saml/authrequest.rb'
164164
- 'lib/onelogin/ruby-saml/response.rb'
165165

166-
# Offense count: 15
167-
# This cop supports safe autocorrection (--autocorrect).
168-
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
169-
Layout/LeadingCommentSpace:
170-
Exclude:
171-
- 'lib/xml_security.rb'
172-
173166
# Offense count: 1
174167
# This cop supports safe autocorrection (--autocorrect).
175168
# Configuration parameters: EnforcedStyle, IndentationWidth.
@@ -542,13 +535,6 @@ Style/For:
542535
Exclude:
543536
- 'lib/onelogin/ruby-saml/metadata.rb'
544537

545-
# Offense count: 22
546-
# This cop supports unsafe autocorrection (--autocorrect-all).
547-
# Configuration parameters: EnforcedStyle.
548-
# SupportedStyles: always, always_true, never
549-
Style/FrozenStringLiteralComment:
550-
Enabled: false
551-
552538
# Offense count: 1
553539
# This cop supports unsafe autocorrection (--autocorrect-all).
554540
Style/GlobalStdStream:

lib/onelogin/ruby-saml.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'onelogin/ruby-saml/logging'
24
require 'onelogin/ruby-saml/saml_message'
35
require 'onelogin/ruby-saml/authrequest'

lib/onelogin/ruby-saml/attribute_service.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module OneLogin
24
module RubySaml
35

lib/onelogin/ruby-saml/attributes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module OneLogin
24
module RubySaml
35

lib/onelogin/ruby-saml/authrequest.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "rexml/document"
24

35
require "onelogin/ruby-saml/logging"

lib/onelogin/ruby-saml/error_handling.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "onelogin/ruby-saml/validation_error"
24

35
module OneLogin

lib/onelogin/ruby-saml/http_error.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module OneLogin
24
module RubySaml
35
class HttpError < StandardError

lib/onelogin/ruby-saml/idp_metadata_parser.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "base64"
24
require "net/http"
35
require "net/https"
@@ -19,10 +21,10 @@ class IdpMetadataParser
1921

2022
module SamlMetadata
2123
module Vocabulary
22-
METADATA = "urn:oasis:names:tc:SAML:2.0:metadata".freeze
23-
DSIG = "http://www.w3.org/2000/09/xmldsig#".freeze
24-
NAME_FORMAT = "urn:oasis:names:tc:SAML:2.0:attrname-format:*".freeze
25-
SAML_ASSERTION = "urn:oasis:names:tc:SAML:2.0:assertion".freeze
24+
METADATA = "urn:oasis:names:tc:SAML:2.0:metadata"
25+
DSIG = "http://www.w3.org/2000/09/xmldsig#"
26+
NAME_FORMAT = "urn:oasis:names:tc:SAML:2.0:attrname-format:*"
27+
SAML_ASSERTION = "urn:oasis:names:tc:SAML:2.0:assertion"
2628
end
2729

2830
NAMESPACE = {

lib/onelogin/ruby-saml/logging.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'logger'
24

35
# Simplistic log class when we're running in Rails

lib/onelogin/ruby-saml/logoutrequest.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "onelogin/ruby-saml/logging"
24
require "onelogin/ruby-saml/saml_message"
35
require "onelogin/ruby-saml/utils"

0 commit comments

Comments
 (0)