Commit 388cb319 authored by gfyoung's avatar gfyoung

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

Partially addresses #47424.
parent 5b663ddf
# frozen_string_literal: true
class ApplicationSetting class ApplicationSetting
class Term < ActiveRecord::Base class Term < ActiveRecord::Base
include CacheMarkdownField include CacheMarkdownField
......
# frozen_string_literal: true
class GroupBadge < Badge class GroupBadge < Badge
belongs_to :group belongs_to :group
......
# frozen_string_literal: true
class ProjectBadge < Badge class ProjectBadge < Badge
belongs_to :project belongs_to :project
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
module Auxiliary module Auxiliary
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Balsamiq < Base class Balsamiq < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Base class Base
PARTIAL_PATH_PREFIX = 'projects/blob/viewers'.freeze PARTIAL_PATH_PREFIX = 'projects/blob/viewers'.freeze
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class BinarySTL < Base class BinarySTL < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Cartfile < DependencyManager class Cartfile < DependencyManager
include Static include Static
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Changelog < Base class Changelog < Base
include Auxiliary include Auxiliary
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
module ClientSide module ClientSide
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class ComposerJson < DependencyManager class ComposerJson < DependencyManager
include ServerSide include ServerSide
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Contributing < Base class Contributing < Base
include Auxiliary include Auxiliary
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class DependencyManager < Base class DependencyManager < Base
include Auxiliary include Auxiliary
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Download < Base class Download < Base
include Simple include Simple
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Empty < Base class Empty < Base
include Simple include Simple
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Gemfile < DependencyManager class Gemfile < DependencyManager
include Static include Static
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Gemspec < DependencyManager class Gemspec < DependencyManager
include ServerSide include ServerSide
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class GitlabCiYml < Base class GitlabCiYml < Base
include ServerSide include ServerSide
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class GodepsJson < DependencyManager class GodepsJson < DependencyManager
include Static include Static
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Image < Base class Image < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class License < Base class License < Base
include Auxiliary include Auxiliary
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Markup < Base class Markup < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Notebook < Base class Notebook < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class PackageJson < DependencyManager class PackageJson < DependencyManager
include ServerSide include ServerSide
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class PDF < Base class PDF < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Podfile < DependencyManager class Podfile < DependencyManager
include Static include Static
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Podspec < DependencyManager class Podspec < DependencyManager
include ServerSide include ServerSide
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class PodspecJson < Podspec class PodspecJson < Podspec
self.file_types = %i(podspec_json) self.file_types = %i(podspec_json)
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Readme < Base class Readme < Base
include Auxiliary include Auxiliary
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class RequirementsTxt < DependencyManager class RequirementsTxt < DependencyManager
include Static include Static
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
module Rich module Rich
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class RouteMap < Base class RouteMap < Base
include ServerSide include ServerSide
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
module ServerSide module ServerSide
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
module Simple module Simple
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Sketch < Base class Sketch < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
module Static module Static
extend ActiveSupport::Concern extend ActiveSupport::Concern
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class SVG < Base class SVG < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Text < Base class Text < Base
include Simple include Simple
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class TextSTL < BinarySTL class TextSTL < BinarySTL
self.binary = false self.binary = false
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class Video < Base class Video < Base
include Rich include Rich
......
# frozen_string_literal: true
module BlobViewer module BlobViewer
class YarnLock < DependencyManager class YarnLock < DependencyManager
include Static include Static
......
# frozen_string_literal: true
module Ci module Ci
class ArtifactBlob class ArtifactBlob
include BlobLike include BlobLike
......
# frozen_string_literal: true
module Ci module Ci
class Build < CommitStatus class Build < CommitStatus
prepend ArtifactMigratable prepend ArtifactMigratable
......
# frozen_string_literal: true
module Ci module Ci
# The purpose of this class is to store Build related data that can be disposed. # The purpose of this class is to store Build related data that can be disposed.
# Data that should be persisted forever, should be stored with Ci::Build model. # Data that should be persisted forever, should be stored with Ci::Build model.
......
# frozen_string_literal: true
module Ci module Ci
# The purpose of this class is to store Build related runner session. # The purpose of this class is to store Build related runner session.
# Data will be removed after transitioning from running to any state. # Data will be removed after transitioning from running to any state.
......
# frozen_string_literal: true
module Ci module Ci
class BuildTraceChunk < ActiveRecord::Base class BuildTraceChunk < ActiveRecord::Base
include FastDestroyAll include FastDestroyAll
......
# frozen_string_literal: true
module Ci module Ci
module BuildTraceChunks module BuildTraceChunks
class Database class Database
......
# frozen_string_literal: true
module Ci module Ci
module BuildTraceChunks module BuildTraceChunks
class Fog class Fog
......
# frozen_string_literal: true
module Ci module Ci
module BuildTraceChunks module BuildTraceChunks
class Redis class Redis
......
# frozen_string_literal: true
module Ci module Ci
class BuildTraceSection < ActiveRecord::Base class BuildTraceSection < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class BuildTraceSectionName < ActiveRecord::Base class BuildTraceSectionName < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
## ##
# This domain model is a representation of a group of jobs that are related # This domain model is a representation of a group of jobs that are related
......
# frozen_string_literal: true
module Ci module Ci
class GroupVariable < ActiveRecord::Base class GroupVariable < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class JobArtifact < ActiveRecord::Base class JobArtifact < ActiveRecord::Base
include AfterCommitQueue include AfterCommitQueue
......
# frozen_string_literal: true
module Ci module Ci
# Currently this is artificial object, constructed dynamically # Currently this is artificial object, constructed dynamically
# We should migrate this object to actual database record in the future # We should migrate this object to actual database record in the future
......
# frozen_string_literal: true
module Ci module Ci
class Pipeline < ActiveRecord::Base class Pipeline < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class PipelineSchedule < ActiveRecord::Base class PipelineSchedule < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class PipelineScheduleVariable < ActiveRecord::Base class PipelineScheduleVariable < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class PipelineVariable < ActiveRecord::Base class PipelineVariable < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class Runner < ActiveRecord::Base class Runner < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class RunnerNamespace < ActiveRecord::Base class RunnerNamespace < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class RunnerProject < ActiveRecord::Base class RunnerProject < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class Stage < ActiveRecord::Base class Stage < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class Trigger < ActiveRecord::Base class Trigger < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class TriggerRequest < ActiveRecord::Base class TriggerRequest < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Ci module Ci
class Variable < ActiveRecord::Base class Variable < ActiveRecord::Base
extend Gitlab::Ci::Model extend Gitlab::Ci::Model
......
# frozen_string_literal: true
module Clusters module Clusters
module Applications module Applications
class Helm < ActiveRecord::Base class Helm < ActiveRecord::Base
......
# frozen_string_literal: true
module Clusters module Clusters
module Applications module Applications
class Ingress < ActiveRecord::Base class Ingress < ActiveRecord::Base
......
# frozen_string_literal: true
module Clusters module Clusters
module Applications module Applications
class Jupyter < ActiveRecord::Base class Jupyter < ActiveRecord::Base
......
# frozen_string_literal: true
module Clusters module Clusters
module Applications module Applications
class Prometheus < ActiveRecord::Base class Prometheus < ActiveRecord::Base
......
# frozen_string_literal: true
module Clusters module Clusters
module Applications module Applications
class Runner < ActiveRecord::Base class Runner < ActiveRecord::Base
......
# frozen_string_literal: true
module Clusters module Clusters
class Cluster < ActiveRecord::Base class Cluster < ActiveRecord::Base
include Presentable include Presentable
......
# frozen_string_literal: true
module Clusters module Clusters
module Concerns module Concerns
module ApplicationCore module ApplicationCore
......
# frozen_string_literal: true
module Clusters module Clusters
module Concerns module Concerns
module ApplicationData module ApplicationData
......
# frozen_string_literal: true
module Clusters module Clusters
module Concerns module Concerns
module ApplicationStatus module ApplicationStatus
......
# frozen_string_literal: true
module Clusters module Clusters
module Platforms module Platforms
class Kubernetes < ActiveRecord::Base class Kubernetes < ActiveRecord::Base
......
# frozen_string_literal: true
module Clusters module Clusters
class Project < ActiveRecord::Base class Project < ActiveRecord::Base
self.table_name = 'cluster_projects' self.table_name = 'cluster_projects'
......
# frozen_string_literal: true
module Clusters module Clusters
module Providers module Providers
class Gcp < ActiveRecord::Base class Gcp < ActiveRecord::Base
......
---
title: Enable frozen string for app/models/**/*.rb
merge_request: 21001
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