Enable frozen string for app/workers/**/*.rb

Partially addresses #47424.
This commit is contained in:
gfyoung 2018-06-27 00:31:41 -07:00
parent 87f7597a4f
commit 7e87626acf
24 changed files with 51 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Ci
class ArchiveTracesCronWorker
include ApplicationWorker

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Ci
class BuildTraceChunkFlushWorker
include ApplicationWorker

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
Sidekiq::Worker.extend ActiveSupport::Concern
module ApplicationWorker

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module ClusterApplications
extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
##
# Concern for setting Sidekiq settings for the various Gcp clusters workers.
#

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Concern that sets various Sidekiq settings for workers executed using a
# cronjob.
module CronjobQueue

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Concern for enabling a few lines of exception backtraces in Sidekiq
module ExceptionBacktrace
extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Gitlab
module GithubImport
module Queue

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module MailSchedulerQueue
extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module NewIssuable
attr_reader :issuable, :user

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Concern for setting Sidekiq settings for the various GitLab ObjectStorage workers.
module ObjectStorageQueue
extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
##
# Concern for setting Sidekiq settings for the low priority CI pipeline workers.
#

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
##
# Concern for setting Sidekiq settings for the various CI pipeline workers.
#

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module ProjectImportOptions
extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Used in EE by mirroring
module ProjectStartImport
def start(project)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Concern for setting Sidekiq settings for the various repository check workers.
module RepositoryCheckQueue
extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module WaitableWorker
extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module MailScheduler
class IssueDueWorker
include ApplicationWorker

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'active_job/arguments'
module MailScheduler

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module ObjectStorage
class BackgroundMoveWorker
include ApplicationWorker

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module RepositoryCheck
class BatchWorker
include ApplicationWorker

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module RepositoryCheck
class ClearWorker
include ApplicationWorker

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module RepositoryCheck
class SingleRepositoryWorker
include ApplicationWorker

View file

@ -0,0 +1,5 @@
---
title: Finish enabling frozen string for app/workers/*.rb
merge_request: 20197
author: gfyoung
type: other