Commit c8b04fe4 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'frozen-string-ee-lib-gitlab' into 'master'

Enable some frozen string in ee/lib

See merge request gitlab-org/gitlab-ee!8989
parents b25add07 756cd2cd
---
title: Enable some frozen string in ee/lib
merge_request:
author:
type: performance
# frozen_string_literal: true
module Gitlab
module Auth
module GroupSaml
......
# frozen_string_literal: true
module Gitlab
module Auth
module GroupSaml
......
# frozen_string_literal: true
module Gitlab
module Auth
module GroupSaml
......
# frozen_string_literal: true
module Gitlab
module Auth
module GroupSaml
......
# frozen_string_literal: true
module Gitlab
module Auth
module GroupSaml
......
# frozen_string_literal: true
module Gitlab
module Auth
module GroupSaml
......
# frozen_string_literal: true
module Gitlab
module Auth
module GroupSaml
......
# frozen_string_literal: true
module Gitlab
class AuthorityAnalyzer
COMMITS_TO_CONSIDER = 25
......
# frozen_string_literal: true
module Gitlab
module Chat
module Responder
......
# frozen_string_literal: true
module Gitlab
class CustomFileTemplates
include ::Gitlab::Utils::StrongMemoize
......
# frozen_string_literal: true
# rubocop:disable GitlabSecurity/PublicSend
module Gitlab
......
# frozen_string_literal: true
module Gitlab
module Database
module LoadBalancing
......
# frozen_string_literal: true
# rubocop:disable GitlabSecurity/PublicSend
module Gitlab
......
# frozen_string_literal: true
module Gitlab
module Database
module LoadBalancing
......
# frozen_string_literal: true
module Gitlab
module Database
module LoadBalancing
......
# frozen_string_literal: true
module Gitlab
module Database
module LoadBalancing
......
# frozen_string_literal: true
module Gitlab
module Database
module LoadBalancing
......
# frozen_string_literal: true
module Gitlab
module Database
module LoadBalancing
......
# frozen_string_literal: true
module Gitlab
module Database
module LoadBalancing
......
# frozen_string_literal: true
# This file is required by `bin/elastic_repo_indexer` as well as from within
# Rails, so needs to explicitly require its dependencies
require 'elasticsearch'
......
# frozen_string_literal: true
module Gitlab
module Elastic
class Helper
......
# frozen_string_literal: true
# Create a separate process, which does not load the Rails environment, to index
# each repository. This prevents memory leaks in the indexer from affecting the
# rest of the application.
......
# frozen_string_literal: true
module Gitlab
module Elastic
# Always prefer to use the full class namespace when specifying a
......
# frozen_string_literal: true
module Gitlab
module Elastic
class SearchResults
......
# frozen_string_literal: true
module Gitlab
module Elastic
class SnippetSearchResults < ::Gitlab::SnippetSearchResults
......
# frozen_string_literal: true
module Gitlab
module Geo
class BaseRequest
......
# frozen_string_literal: true
module Gitlab
module Geo
class CronManager
......
# frozen_string_literal: true
module Gitlab
module Geo
module DatabaseTasks
......
# frozen_string_literal: true
module Gitlab
module Geo
class EventGapTracking
......
# frozen_string_literal: true
module Gitlab
module Geo
module Fdw
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
module GeoTasks
......
# frozen_string_literal: true
module Gitlab
module Geo
class HealthCheck
......@@ -20,9 +22,13 @@ module Gitlab
return 'The Geo database is not configured to use Foreign Data Wrapper.' unless Gitlab::Geo::Fdw.enabled?
unless Gitlab::Geo::Fdw.fdw_up_to_date?
return "The Geo database has an outdated FDW remote schema.".tap do |output|
output << " It contains #{Gitlab::Geo::Fdw.count_tables} of #{Gitlab::Geo::Fdw.gitlab_tables.count} expected tables." unless Gitlab::Geo::Fdw.count_tables_match?
output = "The Geo database has an outdated FDW remote schema."
unless Gitlab::Geo::Fdw.count_tables_match?
output = "#{output} It contains #{Gitlab::Geo::Fdw.count_tables} of #{Gitlab::Geo::Fdw.gitlab_tables.count} expected tables."
end
return output
end
''
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
class JwtRequestDecoder
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
# This class is responsible for:
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogCursor
......
# frozen_string_literal: true
module Gitlab
module Geo
module LogHelpers
......
# frozen_string_literal: true
module Gitlab
module Geo
class Logger < ::Gitlab::JsonLogger
......
# frozen_string_literal: true
module Gitlab
module Geo
module ProjectLogHelpers
......
# frozen_string_literal: true
module Gitlab
module Geo
class RepoSyncRequest < BaseRequest
......
# frozen_string_literal: true
module Gitlab
module Geo
class Transfer
......
# frozen_string_literal: true
module Gitlab
module Geo
class TransferRequest < BaseRequest
......
# frozen_string_literal: true
module Gitlab
class GeoLogger < Gitlab::Logger
def self.file_name_noext
......
# frozen_string_literal: true
module Gitlab
module Jira
module Dvcs
......
# frozen_string_literal: true
module Gitlab
module Jira
class Middleware
......
# frozen_string_literal: true
# This calls helps to authenticate to Kerberos by providing username and password
module Gitlab
module Kerberos
......
# frozen_string_literal: true
module Gitlab
module Kubernetes
class Deployment
......
# frozen_string_literal: true
module Gitlab
module Kubernetes
# Calculates the rollout status for a set of kubernetes deployments.
......
# frozen_string_literal: true
module Gitlab
module Mirror
# Runs scheduler every minute
......
# frozen_string_literal: true
module Gitlab
class PaginationDelegate
DEFAULT_PER_PAGE = Kaminari.config.default_per_page
......
# frozen_string_literal: true
# The database stores locked paths as following:
# 'app/models/user.rb' or 'app/models'
# To determine that 'app/models/user.rb' is locked we need to generate
......
# frozen_string_literal: true
module Gitlab
module Prometheus
module Queries
......
# frozen_string_literal: true
module Gitlab
module Prometheus
module Queries
......
# frozen_string_literal: true
module Gitlab
class Proxy
class << self
......
# frozen_string_literal: true
module Gitlab
class RepositorySizeError
include ActiveSupport::NumberHelper
......
# frozen_string_literal: true
module Gitlab
module SidekiqCluster
# The signals that should terminate both the master and workers.
......
# frozen_string_literal: true
require 'optparse'
require 'logger'
require 'time'
......
# frozen_string_literal: true
module Gitlab
module SlashCommands
class ApplicationHelp < BaseCommand
......
# frozen_string_literal: true
module Gitlab
module SlashCommands
module Presenters
......
# frozen_string_literal: true
module Gitlab
module Template
class CustomDockerfileTemplate < CustomTemplate
......
# frozen_string_literal: true
module Gitlab
module Template
class CustomGitignoreTemplate < CustomTemplate
......
# frozen_string_literal: true
module Gitlab
module Template
class CustomGitlabCiYmlTemplate < CustomTemplate
......
# frozen_string_literal: true
module Gitlab
module Template
class CustomLicenseTemplate < CustomTemplate
......
# frozen_string_literal: true
module Gitlab
module Template
class CustomTemplate < BaseTemplate
......
# frozen_string_literal: true
module Gitlab
module Vulnerabilities
class BaseVulnerability
......
# frozen_string_literal: true
module Gitlab
module Vulnerabilities
class ContainerScanningVulnerability < BaseVulnerability
......
# frozen_string_literal: true
module OmniAuth
module Strategies
class GroupSaml < SAML
......
# frozen_string_literal: true
require 'omniauth'
module OmniAuth
......
# frozen_string_literal: true
module Pseudonymizer
class Dumper
attr_accessor :config, :output_dir
......
# frozen_string_literal: true
require 'openssl'
require 'digest'
......
# frozen_string_literal: true
module Pseudonymizer
class Options
attr_reader :config
......
# frozen_string_literal: true
module Pseudonymizer
class Pager
PAGE_SIZE = ENV.fetch('PSEUDONYMIZER_BATCH', 100_000)
......
# frozen_string_literal: true
module Pseudonymizer
ObjectStorageUnavailableError = Class.new(StandardError)
......
# frozen_string_literal: true
module SystemCheck
module Geo
class AuthorizedKeysCheck < ::SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class AuthorizedKeysFlagCheck < ::SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class ClocksSynchronizationCheck < SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class DatabaseReplicationCheck < SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class EnabledCheck < SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class FdwEnabledCheck < SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class FdwSchemaUpToDateCheck < SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class GeoDatabaseConfiguredCheck < SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class HTTPCloneEnabledCheck < ::SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class HttpConnectionCheck < SystemCheck::BaseCheck
......
# frozen_string_literal: true
module SystemCheck
module Geo
class LicenseCheck < SystemCheck::BaseCheck
......
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