Commit 3a5885c4 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'frozen-string-enable-app-models-more' into 'master'

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

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