Commit 6a9ac7d0 authored by gfyoung's avatar gfyoung

Enable some frozen string in ee/app

Enables frozen string in the following:

* ee/app/controllers/**/*.rb
* ee/app/finders/**/*.rb

Partially addresses gitlab-org/gitlab-ce/#47424.
parent 2c519c97
# frozen_string_literal: true
class Admin::AuditLogsController < Admin::ApplicationController
before_action :check_license_admin_audit_log_available!
......
# frozen_string_literal: true
class Admin::EmailsController < Admin::ApplicationController
def show
end
......
# frozen_string_literal: true
class Admin::LicensesController < Admin::ApplicationController
before_action :license, only: [:show, :download, :destroy]
before_action :require_license, only: [:download, :destroy]
......
# frozen_string_literal: true
class Admin::PushRulesController < Admin::ApplicationController
before_action :check_push_rules_available!
before_action :push_rule
......
# frozen_string_literal: true
module Boards
class MilestonesController < Boards::ApplicationController
def index
......
# frozen_string_literal: true
module Boards
class UsersController < Boards::ApplicationController
# Enumerates all users that are members of the board parent
......
# frozen_string_literal: true
module EE
module InternalRedirect
extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module EE
module IssuableActions
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module IssuableCollections
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module LfsRequest
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module ServiceParams
ALLOWED_PARAMS_EE = [
......
# frozen_string_literal: true
module IssuableLinks
def index
render json: issues
......
# frozen_string_literal: true
module SafeMirrorParams
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module Admin
module AppearancesController
......
# frozen_string_literal: true
module EE
module Admin
module ApplicationSettingsController
......
# frozen_string_literal: true
module EE
module Admin
module ApplicationsController
......
# frozen_string_literal: true
# rubocop:disable Gitlab/ModuleWithInstanceVariables
module EE
module Admin
......
# frozen_string_literal: true
# rubocop:disable Gitlab/ModuleWithInstanceVariables
module EE
module Admin
......
# frozen_string_literal: true
module EE::Admin::LogsController
include ::Gitlab::Utils::StrongMemoize
extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
# rubocop:disable Gitlab/ModuleWithInstanceVariables
module EE
module Admin
......
# frozen_string_literal: true
# Shared actions between Groups::BoardsController and Projects::BoardsController
module EE
module Boards
......
# frozen_string_literal: true
module EE
module Boards
module ListsController
......
# frozen_string_literal: true
module EE
module ConfirmationsController
include EE::Audit::Changes
......
# frozen_string_literal: true
module EE
module Groups
module ApplicationController
......
# frozen_string_literal: true
module EE
module Groups
module GroupMembersController
......
# frozen_string_literal: true
module EE
module Groups
module MilestonesController
......
# frozen_string_literal: true
module EE
module GroupsController
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module Import
module GithubController
......
# frozen_string_literal: true
module EE
module Ldap
module OmniauthCallbacksController
......
# frozen_string_literal: true
module EE
module OmniauthCallbacksController
extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module EE
module PasswordsController
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module Projects
module ClustersController
......
# frozen_string_literal: true
module EE
module Projects
module EnvironmentsController
......
# frozen_string_literal: true
module EE
module Projects
module GitHttpClientController
......
# frozen_string_literal: true
module EE
module Projects
module GitHttpController
......
# frozen_string_literal: true
module EE
module Projects
module LfsApiController
......
# frozen_string_literal: true
module EE
module Projects
module MergeRequests
......
# frozen_string_literal: true
module EE
module Projects
module MergeRequestsController
......
# frozen_string_literal: true
module EE
module Projects
module MirrorsController
......
# frozen_string_literal: true
module EE
module Projects
module PipelinesController
......
# frozen_string_literal: true
module EE
module Projects
module Prometheus
......
# frozen_string_literal: true
module EE
module Projects
module Settings
......
# frozen_string_literal: true
module EE
module Projects
module Settings
......
# frozen_string_literal: true
module EE
module Projects
module VariablesController
......
# frozen_string_literal: true
module EE
module ProjectsController
extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module EE
module RegistrationsController
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module SentNotificationsController
extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module EE
module SessionsController
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module UsersController
def available_templates
......
# frozen_string_literal: true
class Groups::AnalyticsController < Groups::ApplicationController
before_action :group
before_action :check_contribution_analytics_available!
......
# frozen_string_literal: true
class Groups::AuditEventsController < Groups::ApplicationController
before_action :authorize_admin_group!
before_action :check_audit_events_available!
......
# frozen_string_literal: true
class Groups::AutocompleteSourcesController < Groups::ApplicationController
before_action :load_autocomplete_service, except: [:members]
......
# frozen_string_literal: true
class Groups::BillingsController < Groups::ApplicationController
before_action :authorize_admin_group!
before_action :verify_namespace_plan_check_enabled
......
# frozen_string_literal: true
class Groups::EpicIssuesController < Groups::EpicsController
include IssuableLinks
......
# frozen_string_literal: true
class Groups::Epics::NotesController < Groups::ApplicationController
include NotesActions
include NotesHelper
......
# frozen_string_literal: true
class Groups::EpicsController < Groups::ApplicationController
include IssuableActions
include IssuableCollections
......
# frozen_string_literal: true
class Groups::HooksController < Groups::ApplicationController
include HooksExecution
......
# frozen_string_literal: true
class Groups::LdapGroupLinksController < Groups::ApplicationController
before_action :group
before_action :require_ldap_enabled
......
# frozen_string_literal: true
class Groups::LdapsController < Groups::ApplicationController
before_action :group
before_action :authorize_admin_group!
......
# frozen_string_literal: true
class Groups::OmniauthCallbacksController < OmniauthCallbacksController
extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
class Groups::PipelineQuotaController < Groups::ApplicationController
before_action :authorize_admin_group!
before_action :validate_shared_runner_minutes_support!
......
# frozen_string_literal: true
module Groups
class RoadmapController < Groups::ApplicationController
include IssuableCollections
......
# frozen_string_literal: true
class Groups::SamlProvidersController < Groups::ApplicationController
before_action :require_top_level_group
before_action :authorize_manage_saml!
......
# frozen_string_literal: true
class Groups::SsoController < Groups::ApplicationController
skip_before_action :group
before_action :unauthenticated_group
......
# frozen_string_literal: true
class Groups::TodosController < Groups::ApplicationController
include Gitlab::Utils::StrongMemoize
include TodosActions
......
# frozen_string_literal: true
class Oauth::GeoAuthController < ActionController::Base
rescue_from Gitlab::Geo::OauthApplicationUndefinedError, with: :undefined_oauth_application
rescue_from OAuth2::Error, with: :auth
......
# frozen_string_literal: true
# This controller's role is to mimic and rewire the GitLab OAuth
# flow routes for Jira DVCS integration.
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/2381
......
# frozen_string_literal: true
class OmniauthKerberosSpnegoController < ApplicationController
include KerberosSpnegoHelper
......
# frozen_string_literal: true
class Profiles::BillingsController < Profiles::ApplicationController
before_action :verify_namespace_plan_check_enabled
......
# frozen_string_literal: true
class Profiles::PipelineQuotaController < Profiles::ApplicationController
def index
@namespace = current_user.namespace
......
# frozen_string_literal: true
class Profiles::SlacksController < Profiles::ApplicationController
include ServicesHelper
......
# frozen_string_literal: true
class Projects::ApproverGroupsController < Projects::ApplicationController
before_action :authorize_for_subject!
......
# frozen_string_literal: true
class Projects::ApproversController < Projects::ApplicationController
before_action :authorize_for_subject!
......
# frozen_string_literal: true
class Projects::AuditEventsController < Projects::ApplicationController
include LicenseHelper
......
# frozen_string_literal: true
class Projects::FeatureFlagsController < Projects::ApplicationController
respond_to :html
......
# frozen_string_literal: true
module Projects
class IssueLinksController < Projects::ApplicationController
include IssuableLinks
......
# frozen_string_literal: true
module Projects
module Packages
class PackagesController < ApplicationController
......
# frozen_string_literal: true
class Projects::PathLocksController < Projects::ApplicationController
include PathLocksHelper
include ExtractsPath
......
# frozen_string_literal: true
class Projects::PushRulesController < Projects::ApplicationController
include RepositorySettingsRedirect
......
# frozen_string_literal: true
module Projects
module Security
class DashboardController < Projects::ApplicationController
......
# frozen_string_literal: true
class Projects::ServiceDeskController < Projects::ApplicationController
before_action :authorize_admin_project!
......
# frozen_string_literal: true
module Projects
module Settings
class SlacksController < Projects::ApplicationController
......
# frozen_string_literal: true
class Projects::VulnerabilityFeedbackController < Projects::ApplicationController
before_action :vulnerability_feedback, only: [:destroy]
before_action :authorize_read_vulnerability_feedback!, only: [:index]
......
# frozen_string_literal: true
class UnsubscribesController < ApplicationController
skip_before_action :authenticate_user!
......
# frozen_string_literal: true
module Boards
class MilestonesFinder
def initialize(board, current_user = nil)
......
# frozen_string_literal: true
module Boards
class UsersFinder
def initialize(board, current_user = nil)
......
# frozen_string_literal: true
module EE
module IssuesFinder
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module LicenseTemplateFinder
extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
module EE
module NotesFinder
extend ActiveSupport::Concern
......
# frozen_string_literal: true
module EE
module TemplateFinder
extend ::Gitlab::Utils::Override
......
# frozen_string_literal: true
class EpicsFinder < IssuableFinder
def self.scalar_params
@scalar_params ||= %i[
......
# frozen_string_literal: true
module Geo
class AttachmentRegistryFinder < FileRegistryFinder
def syncable
......
# frozen_string_literal: true
module Geo
class ExpireUploadsFinder
def find_project_uploads(project)
......
# frozen_string_literal: true
module Geo
class FileRegistryFinder < RegistryFinder
# @abstract Subclass is expected to implement the declared methods
......
# frozen_string_literal: true
module Geo
class JobArtifactRegistryFinder < RegistryFinder
def count_syncable
......
# frozen_string_literal: true
module Geo
class LfsObjectRegistryFinder < FileRegistryFinder
def count_syncable
......
# frozen_string_literal: true
module Geo
class ProjectRegistryFinder < RegistryFinder
def count_projects
......
# frozen_string_literal: true
module Geo
class RegistryFinder
attr_reader :current_node
......
# frozen_string_literal: true
module Geo
class RepositoryVerificationFinder
def initialize(shard_name: nil)
......
# frozen_string_literal: true
class LogFinder
PER_PAGE = 25
ENTITY_COLUMN_TYPES = {
......
This diff is collapsed.
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