Commit daa1ac0f authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'frozen-string-enable-apps-services-inner-even-more' into 'master'

Enable more frozen string in app/services/**/*.rb

See merge request gitlab-org/gitlab-ce!20702
parents 66f5be83 0cf45deb
# frozen_string_literal: true
module Prometheus
class AdapterService
def initialize(project, deployment_platform = nil)
......
# frozen_string_literal: true
module ProtectedBranches
class AccessLevelParams
attr_reader :type, :params
......
# frozen_string_literal: true
module ProtectedBranches
class ApiService < BaseService
def create
......
# frozen_string_literal: true
module ProtectedBranches
class CreateService < BaseService
def execute(skip_authorization: false)
......
# frozen_string_literal: true
module ProtectedBranches
class DestroyService < BaseService
def execute(protected_branch)
......
# frozen_string_literal: true
# The branches#protect API still uses the `developers_can_push` and `developers_can_merge`
# flags for backward compatibility, and so performs translation between that format and the
# internal data model (separate access levels). The translation code is non-trivial, and so
......
# frozen_string_literal: true
# The branches#protect API still uses the `developers_can_push` and `developers_can_merge`
# flags for backward compatibility, and so performs translation between that format and the
# internal data model (separate access levels). The translation code is non-trivial, and so
......
# frozen_string_literal: true
module ProtectedBranches
class UpdateService < BaseService
def execute(protected_branch)
......
# frozen_string_literal: true
module ProtectedTags
class CreateService < BaseService
attr_reader :protected_tag
......
# frozen_string_literal: true
module ProtectedTags
class DestroyService < BaseService
def execute(protected_tag)
......
# frozen_string_literal: true
module ProtectedTags
class UpdateService < BaseService
def execute(protected_tag)
......
# frozen_string_literal: true
module QuickActions
class InterpretService < BaseService
include Gitlab::QuickActions::Dsl
......
# frozen_string_literal: true
module Search
class GlobalService
attr_accessor :current_user, :params
......
# frozen_string_literal: true
module Search
class GroupService < Search::GlobalService
attr_accessor :group
......
# frozen_string_literal: true
module Search
class ProjectService
attr_accessor :project, :current_user, :params
......
# frozen_string_literal: true
module Search
class SnippetService
attr_accessor :current_user, :params
......
# frozen_string_literal: true
module Tags
class CreateService < BaseService
def execute(tag_name, target, message, release_description = nil)
......
# frozen_string_literal: true
module Tags
class DestroyService < BaseService
def execute(tag_name)
......
# frozen_string_literal: true
module TestHooks
class BaseService
attr_accessor :hook, :current_user, :trigger
......
# frozen_string_literal: true
module TestHooks
class ProjectService < TestHooks::BaseService
attr_writer :project
......
# frozen_string_literal: true
module TestHooks
class SystemService < TestHooks::BaseService
private
......
# frozen_string_literal: true
module Users
class ActivityService
LEASE_TIMEOUT = 1.minute.to_i
......
# frozen_string_literal: true
module Users
class BuildService < BaseService
def initialize(current_user, params = {})
......
# frozen_string_literal: true
module Users
class CreateService < BaseService
include NewUserNotifier
......
# frozen_string_literal: true
module Users
class DestroyService
attr_accessor :current_user
......
# frozen_string_literal: true
module Users
# Service class for caching and retrieving the last push event of a user.
class LastPushEventService
......
# frozen_string_literal: true
# When a user is destroyed, some of their associated records are
# moved to a "Ghost User", to prevent these associated records from
# being destroyed.
......
# frozen_string_literal: true
module Users
# Service for refreshing the authorized projects of a user.
#
......
# frozen_string_literal: true
module Users
class RespondToTermsService
def initialize(user, term)
......
# frozen_string_literal: true
module Users
class UpdateService < BaseService
include NewUserNotifier
......
# frozen_string_literal: true
module WikiPages
class BaseService < ::BaseService
private
......
# frozen_string_literal: true
module WikiPages
class CreateService < WikiPages::BaseService
def execute
......
# frozen_string_literal: true
module WikiPages
class DestroyService < WikiPages::BaseService
def execute(page)
......
# frozen_string_literal: true
module WikiPages
class UpdateService < WikiPages::BaseService
def execute(page)
......
---
title: Enable even more frozen string in app/services/**/*.rb
merge_request: 20702
author: gfyoung
type: performance
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