Enable frozen string for app/workers/**/*.rb
Partially addresses #47424.
This commit is contained in:
parent
87f7597a4f
commit
7e87626acf
24 changed files with 51 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Ci
|
||||
class ArchiveTracesCronWorker
|
||||
include ApplicationWorker
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Ci
|
||||
class BuildTraceChunkFlushWorker
|
||||
include ApplicationWorker
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Sidekiq::Worker.extend ActiveSupport::Concern
|
||||
|
||||
module ApplicationWorker
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ClusterApplications
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
##
|
||||
# Concern for setting Sidekiq settings for the various Gcp clusters workers.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Concern that sets various Sidekiq settings for workers executed using a
|
||||
# cronjob.
|
||||
module CronjobQueue
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Concern for enabling a few lines of exception backtraces in Sidekiq
|
||||
module ExceptionBacktrace
|
||||
extend ActiveSupport::Concern
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Gitlab
|
||||
module GithubImport
|
||||
module Queue
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module MailSchedulerQueue
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module NewIssuable
|
||||
attr_reader :issuable, :user
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Concern for setting Sidekiq settings for the various GitLab ObjectStorage workers.
|
||||
module ObjectStorageQueue
|
||||
extend ActiveSupport::Concern
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
##
|
||||
# Concern for setting Sidekiq settings for the low priority CI pipeline workers.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
##
|
||||
# Concern for setting Sidekiq settings for the various CI pipeline workers.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ProjectImportOptions
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Used in EE by mirroring
|
||||
module ProjectStartImport
|
||||
def start(project)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Concern for setting Sidekiq settings for the various repository check workers.
|
||||
module RepositoryCheckQueue
|
||||
extend ActiveSupport::Concern
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module WaitableWorker
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module MailScheduler
|
||||
class IssueDueWorker
|
||||
include ApplicationWorker
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'active_job/arguments'
|
||||
|
||||
module MailScheduler
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ObjectStorage
|
||||
class BackgroundMoveWorker
|
||||
include ApplicationWorker
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryCheck
|
||||
class BatchWorker
|
||||
include ApplicationWorker
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryCheck
|
||||
class ClearWorker
|
||||
include ApplicationWorker
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RepositoryCheck
|
||||
class SingleRepositoryWorker
|
||||
include ApplicationWorker
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Finish enabling frozen string for app/workers/*.rb
|
||||
merge_request: 20197
|
||||
author: gfyoung
|
||||
type: other
|
Loading…
Reference in a new issue