Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
388cb319
Commit
388cb319
authored
Aug 03, 2018
by
gfyoung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable frozen string for app/models/**/*.rb
Partially addresses #47424.
parent
5b663ddf
Changes
79
Show whitespace changes
Inline
Side-by-side
Showing
79 changed files
with
161 additions
and
0 deletions
+161
-0
app/models/application_setting/term.rb
app/models/application_setting/term.rb
+2
-0
app/models/badges/group_badge.rb
app/models/badges/group_badge.rb
+2
-0
app/models/badges/project_badge.rb
app/models/badges/project_badge.rb
+2
-0
app/models/blob_viewer/auxiliary.rb
app/models/blob_viewer/auxiliary.rb
+2
-0
app/models/blob_viewer/balsamiq.rb
app/models/blob_viewer/balsamiq.rb
+2
-0
app/models/blob_viewer/base.rb
app/models/blob_viewer/base.rb
+2
-0
app/models/blob_viewer/binary_stl.rb
app/models/blob_viewer/binary_stl.rb
+2
-0
app/models/blob_viewer/cartfile.rb
app/models/blob_viewer/cartfile.rb
+2
-0
app/models/blob_viewer/changelog.rb
app/models/blob_viewer/changelog.rb
+2
-0
app/models/blob_viewer/client_side.rb
app/models/blob_viewer/client_side.rb
+2
-0
app/models/blob_viewer/composer_json.rb
app/models/blob_viewer/composer_json.rb
+2
-0
app/models/blob_viewer/contributing.rb
app/models/blob_viewer/contributing.rb
+2
-0
app/models/blob_viewer/dependency_manager.rb
app/models/blob_viewer/dependency_manager.rb
+2
-0
app/models/blob_viewer/download.rb
app/models/blob_viewer/download.rb
+2
-0
app/models/blob_viewer/empty.rb
app/models/blob_viewer/empty.rb
+2
-0
app/models/blob_viewer/gemfile.rb
app/models/blob_viewer/gemfile.rb
+2
-0
app/models/blob_viewer/gemspec.rb
app/models/blob_viewer/gemspec.rb
+2
-0
app/models/blob_viewer/gitlab_ci_yml.rb
app/models/blob_viewer/gitlab_ci_yml.rb
+2
-0
app/models/blob_viewer/godeps_json.rb
app/models/blob_viewer/godeps_json.rb
+2
-0
app/models/blob_viewer/image.rb
app/models/blob_viewer/image.rb
+2
-0
app/models/blob_viewer/license.rb
app/models/blob_viewer/license.rb
+2
-0
app/models/blob_viewer/markup.rb
app/models/blob_viewer/markup.rb
+2
-0
app/models/blob_viewer/notebook.rb
app/models/blob_viewer/notebook.rb
+2
-0
app/models/blob_viewer/package_json.rb
app/models/blob_viewer/package_json.rb
+2
-0
app/models/blob_viewer/pdf.rb
app/models/blob_viewer/pdf.rb
+2
-0
app/models/blob_viewer/podfile.rb
app/models/blob_viewer/podfile.rb
+2
-0
app/models/blob_viewer/podspec.rb
app/models/blob_viewer/podspec.rb
+2
-0
app/models/blob_viewer/podspec_json.rb
app/models/blob_viewer/podspec_json.rb
+2
-0
app/models/blob_viewer/readme.rb
app/models/blob_viewer/readme.rb
+2
-0
app/models/blob_viewer/requirements_txt.rb
app/models/blob_viewer/requirements_txt.rb
+2
-0
app/models/blob_viewer/rich.rb
app/models/blob_viewer/rich.rb
+2
-0
app/models/blob_viewer/route_map.rb
app/models/blob_viewer/route_map.rb
+2
-0
app/models/blob_viewer/server_side.rb
app/models/blob_viewer/server_side.rb
+2
-0
app/models/blob_viewer/simple.rb
app/models/blob_viewer/simple.rb
+2
-0
app/models/blob_viewer/sketch.rb
app/models/blob_viewer/sketch.rb
+2
-0
app/models/blob_viewer/static.rb
app/models/blob_viewer/static.rb
+2
-0
app/models/blob_viewer/svg.rb
app/models/blob_viewer/svg.rb
+2
-0
app/models/blob_viewer/text.rb
app/models/blob_viewer/text.rb
+2
-0
app/models/blob_viewer/text_stl.rb
app/models/blob_viewer/text_stl.rb
+2
-0
app/models/blob_viewer/video.rb
app/models/blob_viewer/video.rb
+2
-0
app/models/blob_viewer/yarn_lock.rb
app/models/blob_viewer/yarn_lock.rb
+2
-0
app/models/ci/artifact_blob.rb
app/models/ci/artifact_blob.rb
+2
-0
app/models/ci/build.rb
app/models/ci/build.rb
+2
-0
app/models/ci/build_metadata.rb
app/models/ci/build_metadata.rb
+2
-0
app/models/ci/build_runner_session.rb
app/models/ci/build_runner_session.rb
+2
-0
app/models/ci/build_trace_chunk.rb
app/models/ci/build_trace_chunk.rb
+2
-0
app/models/ci/build_trace_chunks/database.rb
app/models/ci/build_trace_chunks/database.rb
+2
-0
app/models/ci/build_trace_chunks/fog.rb
app/models/ci/build_trace_chunks/fog.rb
+2
-0
app/models/ci/build_trace_chunks/redis.rb
app/models/ci/build_trace_chunks/redis.rb
+2
-0
app/models/ci/build_trace_section.rb
app/models/ci/build_trace_section.rb
+2
-0
app/models/ci/build_trace_section_name.rb
app/models/ci/build_trace_section_name.rb
+2
-0
app/models/ci/group.rb
app/models/ci/group.rb
+2
-0
app/models/ci/group_variable.rb
app/models/ci/group_variable.rb
+2
-0
app/models/ci/job_artifact.rb
app/models/ci/job_artifact.rb
+2
-0
app/models/ci/legacy_stage.rb
app/models/ci/legacy_stage.rb
+2
-0
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+2
-0
app/models/ci/pipeline_schedule.rb
app/models/ci/pipeline_schedule.rb
+2
-0
app/models/ci/pipeline_schedule_variable.rb
app/models/ci/pipeline_schedule_variable.rb
+2
-0
app/models/ci/pipeline_variable.rb
app/models/ci/pipeline_variable.rb
+2
-0
app/models/ci/runner.rb
app/models/ci/runner.rb
+2
-0
app/models/ci/runner_namespace.rb
app/models/ci/runner_namespace.rb
+2
-0
app/models/ci/runner_project.rb
app/models/ci/runner_project.rb
+2
-0
app/models/ci/stage.rb
app/models/ci/stage.rb
+2
-0
app/models/ci/trigger.rb
app/models/ci/trigger.rb
+2
-0
app/models/ci/trigger_request.rb
app/models/ci/trigger_request.rb
+2
-0
app/models/ci/variable.rb
app/models/ci/variable.rb
+2
-0
app/models/clusters/applications/helm.rb
app/models/clusters/applications/helm.rb
+2
-0
app/models/clusters/applications/ingress.rb
app/models/clusters/applications/ingress.rb
+2
-0
app/models/clusters/applications/jupyter.rb
app/models/clusters/applications/jupyter.rb
+2
-0
app/models/clusters/applications/prometheus.rb
app/models/clusters/applications/prometheus.rb
+2
-0
app/models/clusters/applications/runner.rb
app/models/clusters/applications/runner.rb
+2
-0
app/models/clusters/cluster.rb
app/models/clusters/cluster.rb
+2
-0
app/models/clusters/concerns/application_core.rb
app/models/clusters/concerns/application_core.rb
+2
-0
app/models/clusters/concerns/application_data.rb
app/models/clusters/concerns/application_data.rb
+2
-0
app/models/clusters/concerns/application_status.rb
app/models/clusters/concerns/application_status.rb
+2
-0
app/models/clusters/platforms/kubernetes.rb
app/models/clusters/platforms/kubernetes.rb
+2
-0
app/models/clusters/project.rb
app/models/clusters/project.rb
+2
-0
app/models/clusters/providers/gcp.rb
app/models/clusters/providers/gcp.rb
+2
-0
changelogs/unreleased/frozen-string-enable-app-models-more.yml
...elogs/unreleased/frozen-string-enable-app-models-more.yml
+5
-0
No files found.
app/models/application_setting/term.rb
View file @
388cb319
# frozen_string_literal: true
class
ApplicationSetting
class
Term
<
ActiveRecord
::
Base
include
CacheMarkdownField
...
...
app/models/badges/group_badge.rb
View file @
388cb319
# frozen_string_literal: true
class
GroupBadge
<
Badge
belongs_to
:group
...
...
app/models/badges/project_badge.rb
View file @
388cb319
# frozen_string_literal: true
class
ProjectBadge
<
Badge
belongs_to
:project
...
...
app/models/blob_viewer/auxiliary.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
module
Auxiliary
extend
ActiveSupport
::
Concern
...
...
app/models/blob_viewer/balsamiq.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Balsamiq
<
Base
include
Rich
...
...
app/models/blob_viewer/base.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Base
PARTIAL_PATH_PREFIX
=
'projects/blob/viewers'
.
freeze
...
...
app/models/blob_viewer/binary_stl.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
BinarySTL
<
Base
include
Rich
...
...
app/models/blob_viewer/cartfile.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Cartfile
<
DependencyManager
include
Static
...
...
app/models/blob_viewer/changelog.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Changelog
<
Base
include
Auxiliary
...
...
app/models/blob_viewer/client_side.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
module
ClientSide
extend
ActiveSupport
::
Concern
...
...
app/models/blob_viewer/composer_json.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
ComposerJson
<
DependencyManager
include
ServerSide
...
...
app/models/blob_viewer/contributing.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Contributing
<
Base
include
Auxiliary
...
...
app/models/blob_viewer/dependency_manager.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
DependencyManager
<
Base
include
Auxiliary
...
...
app/models/blob_viewer/download.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Download
<
Base
include
Simple
...
...
app/models/blob_viewer/empty.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Empty
<
Base
include
Simple
...
...
app/models/blob_viewer/gemfile.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Gemfile
<
DependencyManager
include
Static
...
...
app/models/blob_viewer/gemspec.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Gemspec
<
DependencyManager
include
ServerSide
...
...
app/models/blob_viewer/gitlab_ci_yml.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
GitlabCiYml
<
Base
include
ServerSide
...
...
app/models/blob_viewer/godeps_json.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
GodepsJson
<
DependencyManager
include
Static
...
...
app/models/blob_viewer/image.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Image
<
Base
include
Rich
...
...
app/models/blob_viewer/license.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
License
<
Base
include
Auxiliary
...
...
app/models/blob_viewer/markup.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Markup
<
Base
include
Rich
...
...
app/models/blob_viewer/notebook.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Notebook
<
Base
include
Rich
...
...
app/models/blob_viewer/package_json.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
PackageJson
<
DependencyManager
include
ServerSide
...
...
app/models/blob_viewer/pdf.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
PDF
<
Base
include
Rich
...
...
app/models/blob_viewer/podfile.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Podfile
<
DependencyManager
include
Static
...
...
app/models/blob_viewer/podspec.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Podspec
<
DependencyManager
include
ServerSide
...
...
app/models/blob_viewer/podspec_json.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
PodspecJson
<
Podspec
self
.
file_types
=
%i(podspec_json)
...
...
app/models/blob_viewer/readme.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Readme
<
Base
include
Auxiliary
...
...
app/models/blob_viewer/requirements_txt.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
RequirementsTxt
<
DependencyManager
include
Static
...
...
app/models/blob_viewer/rich.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
module
Rich
extend
ActiveSupport
::
Concern
...
...
app/models/blob_viewer/route_map.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
RouteMap
<
Base
include
ServerSide
...
...
app/models/blob_viewer/server_side.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
module
ServerSide
extend
ActiveSupport
::
Concern
...
...
app/models/blob_viewer/simple.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
module
Simple
extend
ActiveSupport
::
Concern
...
...
app/models/blob_viewer/sketch.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Sketch
<
Base
include
Rich
...
...
app/models/blob_viewer/static.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
module
Static
extend
ActiveSupport
::
Concern
...
...
app/models/blob_viewer/svg.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
SVG
<
Base
include
Rich
...
...
app/models/blob_viewer/text.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Text
<
Base
include
Simple
...
...
app/models/blob_viewer/text_stl.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
TextSTL
<
BinarySTL
self
.
binary
=
false
...
...
app/models/blob_viewer/video.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
Video
<
Base
include
Rich
...
...
app/models/blob_viewer/yarn_lock.rb
View file @
388cb319
# frozen_string_literal: true
module
BlobViewer
class
YarnLock
<
DependencyManager
include
Static
...
...
app/models/ci/artifact_blob.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
ArtifactBlob
include
BlobLike
...
...
app/models/ci/build.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
Build
<
CommitStatus
prepend
ArtifactMigratable
...
...
app/models/ci/build_metadata.rb
View file @
388cb319
# 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.
...
...
app/models/ci/build_runner_session.rb
View file @
388cb319
# 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.
...
...
app/models/ci/build_trace_chunk.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
BuildTraceChunk
<
ActiveRecord
::
Base
include
FastDestroyAll
...
...
app/models/ci/build_trace_chunks/database.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
module
BuildTraceChunks
class
Database
...
...
app/models/ci/build_trace_chunks/fog.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
module
BuildTraceChunks
class
Fog
...
...
app/models/ci/build_trace_chunks/redis.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
module
BuildTraceChunks
class
Redis
...
...
app/models/ci/build_trace_section.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
BuildTraceSection
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/build_trace_section_name.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
BuildTraceSectionName
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/group.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
##
# This domain model is a representation of a group of jobs that are related
...
...
app/models/ci/group_variable.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
GroupVariable
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/job_artifact.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
JobArtifact
<
ActiveRecord
::
Base
include
AfterCommitQueue
...
...
app/models/ci/legacy_stage.rb
View file @
388cb319
# 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
...
...
app/models/ci/pipeline.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
Pipeline
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/pipeline_schedule.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
PipelineSchedule
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/pipeline_schedule_variable.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
PipelineScheduleVariable
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/pipeline_variable.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
PipelineVariable
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/runner.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
Runner
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/runner_namespace.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
RunnerNamespace
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/runner_project.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
RunnerProject
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/stage.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
Stage
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/trigger.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
Trigger
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/trigger_request.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
TriggerRequest
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/ci/variable.rb
View file @
388cb319
# frozen_string_literal: true
module
Ci
class
Variable
<
ActiveRecord
::
Base
extend
Gitlab
::
Ci
::
Model
...
...
app/models/clusters/applications/helm.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Applications
class
Helm
<
ActiveRecord
::
Base
...
...
app/models/clusters/applications/ingress.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Applications
class
Ingress
<
ActiveRecord
::
Base
...
...
app/models/clusters/applications/jupyter.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Applications
class
Jupyter
<
ActiveRecord
::
Base
...
...
app/models/clusters/applications/prometheus.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Applications
class
Prometheus
<
ActiveRecord
::
Base
...
...
app/models/clusters/applications/runner.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Applications
class
Runner
<
ActiveRecord
::
Base
...
...
app/models/clusters/cluster.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
class
Cluster
<
ActiveRecord
::
Base
include
Presentable
...
...
app/models/clusters/concerns/application_core.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Concerns
module
ApplicationCore
...
...
app/models/clusters/concerns/application_data.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Concerns
module
ApplicationData
...
...
app/models/clusters/concerns/application_status.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Concerns
module
ApplicationStatus
...
...
app/models/clusters/platforms/kubernetes.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Platforms
class
Kubernetes
<
ActiveRecord
::
Base
...
...
app/models/clusters/project.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
class
Project
<
ActiveRecord
::
Base
self
.
table_name
=
'cluster_projects'
...
...
app/models/clusters/providers/gcp.rb
View file @
388cb319
# frozen_string_literal: true
module
Clusters
module
Providers
class
Gcp
<
ActiveRecord
::
Base
...
...
changelogs/unreleased/frozen-string-enable-app-models-more.yml
0 → 100644
View file @
388cb319
---
title
:
Enable frozen string for app/models/**/*.rb
merge_request
:
21001
author
:
gfyoung
type
:
performance
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment