Commit c7fb8b3e authored by gfyoung's avatar gfyoung
Browse files

Enable some frozen string in lib/gitlab

Enable frozen string for the following files:

* lib/gitlab/auth/**/*.rb
* lib/gitlab/badge/**/*.rb
* lib/gitlab/bare_repository_import/**/*.rb
* lib/gitlab/bitbucket_import/**/*.rb
* lib/gitlab/bitbucket_server_import/**/*.rb
* lib/gitlab/cache/**/*.rb
* lib/gitlab/checks/**/*.rb

Partially addresses #47424.
parent dc8c2186e61c
---
title: Enable some frozen string in lib/gitlab
merge_request:
author: gfyoung
type: performance
# frozen_string_literal: true
module Gitlab
module Auth
##
......
# frozen_string_literal: true
# These calls help to authenticate to OAuth provider by providing username and password
#
......
# frozen_string_literal: true
module Gitlab
module Auth
class IpRateLimiter
......
# frozen_string_literal: true
# LDAP authorization model
#
# * Check if we are allowed access (not blocked)
......
# frozen_string_literal: true
module Gitlab
module Auth
module LDAP
......
# frozen_string_literal: true
# Class to parse and transform the info provided by omniauth
#
module Gitlab
......
# frozen_string_literal: true
# These calls help to authenticate to LDAP by providing username and password
#
# Since multiple LDAP servers are supported, it will loop through all of them
......
# frozen_string_literal: true
# Load a specific server configuration
module Gitlab
module Auth
......
# -*- ruby encoding: utf-8 -*-
# frozen_string_literal: true
# Based on the `ruby-net-ldap` gem's `Net::LDAP::DN`
#
......
# frozen_string_literal: true
module Gitlab
module Auth
module LDAP
......
# frozen_string_literal: true
module Gitlab
module Auth
module LDAP
......
# frozen_string_literal: true
# LDAP extension for User model
#
# * Find or create user from omniauth.auth data
......
# frozen_string_literal: true
# Class to parse and transform the info provided by omniauth
#
module Gitlab
......
# frozen_string_literal: true
# These calls help to authenticate to OAuth provider by providing username and password
#
......
# frozen_string_literal: true
module Gitlab
module Auth
module OAuth
......
# frozen_string_literal: true
module Gitlab
module Auth
module OAuth
......
# frozen_string_literal: true
# :nocov:
module Gitlab
module Auth
......
# frozen_string_literal: true
# OAuth extension for User model
#
# * Find GitLab user based on omniauth uid and provider
......
# frozen_string_literal: true
module Gitlab
module Auth
class OmniauthIdentityLinkerBase
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment