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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7a0c278e
Commit
7a0c278e
authored
Feb 03, 2021
by
Markus Koller
Committed by
Jarka Košanová
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/FrozenStringLiteralComment violations in config*
Auto-corrected with Rubocop
parent
3b692a28
Changes
108
Hide whitespace changes
Inline
Side-by-side
Showing
108 changed files
with
216 additions
and
109 deletions
+216
-109
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-107
config.ru
config.ru
+2
-0
config/boot.rb
config/boot.rb
+2
-0
config/environment.rb
config/environment.rb
+2
-0
config/environments/development.rb
config/environments/development.rb
+2
-0
config/environments/production.rb
config/environments/production.rb
+2
-0
config/environments/test.rb
config/environments/test.rb
+2
-0
config/initializers/01_secret_token.rb
config/initializers/01_secret_token.rb
+2
-0
config/initializers/0_acts_as_taggable.rb
config/initializers/0_acts_as_taggable.rb
+2
-0
config/initializers/0_inject_feature_flags.rb
config/initializers/0_inject_feature_flags.rb
+2
-0
config/initializers/0_post_deployment_migrations.rb
config/initializers/0_post_deployment_migrations.rb
+2
-0
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+2
-0
config/initializers/2_gitlab.rb
config/initializers/2_gitlab.rb
+2
-0
config/initializers/5_backend.rb
config/initializers/5_backend.rb
+2
-0
config/initializers/6_validations.rb
config/initializers/6_validations.rb
+2
-0
config/initializers/7_prometheus_metrics.rb
config/initializers/7_prometheus_metrics.rb
+2
-0
config/initializers/7_redis.rb
config/initializers/7_redis.rb
+2
-0
config/initializers/8_devise.rb
config/initializers/8_devise.rb
+2
-0
config/initializers/8_gitaly.rb
config/initializers/8_gitaly.rb
+2
-0
config/initializers/9_fast_gettext.rb
config/initializers/9_fast_gettext.rb
+2
-0
config/initializers/action_dispatch_http_mime_negotiation.rb
config/initializers/action_dispatch_http_mime_negotiation.rb
+2
-0
config/initializers/action_mailer_hooks.rb
config/initializers/action_mailer_hooks.rb
+2
-0
config/initializers/active_record_data_types.rb
config/initializers/active_record_data_types.rb
+2
-0
config/initializers/active_record_ping.rb
config/initializers/active_record_ping.rb
+2
-0
config/initializers/active_record_preloader.rb
config/initializers/active_record_preloader.rb
+2
-0
config/initializers/active_record_schema_ignore_tables.rb
config/initializers/active_record_schema_ignore_tables.rb
+2
-0
config/initializers/active_record_table_definition.rb
config/initializers/active_record_table_definition.rb
+2
-0
config/initializers/ar_speed_up_migration_checking.rb
config/initializers/ar_speed_up_migration_checking.rb
+2
-0
config/initializers/asset_proxy_settings.rb
config/initializers/asset_proxy_settings.rb
+2
-0
config/initializers/attr_encrypted_no_db_connection.rb
config/initializers/attr_encrypted_no_db_connection.rb
+2
-0
config/initializers/backtrace_silencers.rb
config/initializers/backtrace_silencers.rb
+2
-0
config/initializers/batch_loader.rb
config/initializers/batch_loader.rb
+2
-0
config/initializers/bootstrap_form.rb
config/initializers/bootstrap_form.rb
+2
-0
config/initializers/bullet.rb
config/initializers/bullet.rb
+2
-0
config/initializers/cluster_events_before_phased_restart.rb
config/initializers/cluster_events_before_phased_restart.rb
+2
-0
config/initializers/console_message.rb
config/initializers/console_message.rb
+2
-0
config/initializers/cookies_serializer.rb
config/initializers/cookies_serializer.rb
+2
-0
config/initializers/date_time_formats.rb
config/initializers/date_time_formats.rb
+2
-0
config/initializers/default_url_options.rb
config/initializers/default_url_options.rb
+2
-0
config/initializers/deprecations.rb
config/initializers/deprecations.rb
+2
-0
config/initializers/direct_upload_support.rb
config/initializers/direct_upload_support.rb
+2
-0
config/initializers/doorkeeper.rb
config/initializers/doorkeeper.rb
+2
-0
config/initializers/doorkeeper_openid_connect.rb
config/initializers/doorkeeper_openid_connect.rb
+2
-0
config/initializers/etag_caching.rb
config/initializers/etag_caching.rb
+2
-0
config/initializers/fill_shards.rb
config/initializers/fill_shards.rb
+2
-0
config/initializers/fix_local_cache_middleware.rb
config/initializers/fix_local_cache_middleware.rb
+2
-0
config/initializers/fog_google_https_private_urls.rb
config/initializers/fog_google_https_private_urls.rb
+2
-0
config/initializers/forbid_sidekiq_in_transactions.rb
config/initializers/forbid_sidekiq_in_transactions.rb
+2
-0
config/initializers/gettext_rails_i18n_patch.rb
config/initializers/gettext_rails_i18n_patch.rb
+2
-0
config/initializers/gitlab_kas_secret.rb
config/initializers/gitlab_kas_secret.rb
+2
-0
config/initializers/gitlab_shell_secret_token.rb
config/initializers/gitlab_shell_secret_token.rb
+2
-0
config/initializers/gitlab_workhorse_secret.rb
config/initializers/gitlab_workhorse_secret.rb
+2
-0
config/initializers/go_get.rb
config/initializers/go_get.rb
+2
-0
config/initializers/grpc.rb
config/initializers/grpc.rb
+2
-0
config/initializers/hamlit.rb
config/initializers/hamlit.rb
+2
-0
config/initializers/health_check.rb
config/initializers/health_check.rb
+2
-0
config/initializers/http_hostname_override.rb
config/initializers/http_hostname_override.rb
+2
-0
config/initializers/kaminari_active_record_relation_methods_with_limit.rb
...ers/kaminari_active_record_relation_methods_with_limit.rb
+2
-0
config/initializers/kaminari_config.rb
config/initializers/kaminari_config.rb
+2
-0
config/initializers/lograge.rb
config/initializers/lograge.rb
+2
-0
config/initializers/mail_encoding_patch.rb
config/initializers/mail_encoding_patch.rb
+2
-0
config/initializers/mime_types.rb
config/initializers/mime_types.rb
+2
-0
config/initializers/mini_magick.rb
config/initializers/mini_magick.rb
+2
-0
config/initializers/new_framework_defaults.rb
config/initializers/new_framework_defaults.rb
+2
-0
config/initializers/octokit.rb
config/initializers/octokit.rb
+2
-0
config/initializers/omniauth.rb
config/initializers/omniauth.rb
+2
-0
config/initializers/peek.rb
config/initializers/peek.rb
+2
-0
config/initializers/postgresql_cte.rb
config/initializers/postgresql_cte.rb
+2
-0
config/initializers/premailer.rb
config/initializers/premailer.rb
+2
-0
config/initializers/query_limiting.rb
config/initializers/query_limiting.rb
+2
-0
config/initializers/rack_lineprof.rb
config/initializers/rack_lineprof.rb
+2
-0
config/initializers/relative_naming_ci_namespace.rb
config/initializers/relative_naming_ci_namespace.rb
+2
-0
config/initializers/request_context.rb
config/initializers/request_context.rb
+2
-0
config/initializers/request_profiler.rb
config/initializers/request_profiler.rb
+2
-0
config/initializers/routing_draw.rb
config/initializers/routing_draw.rb
+2
-0
config/initializers/sentry.rb
config/initializers/sentry.rb
+2
-0
config/initializers/server_uptime.rb
config/initializers/server_uptime.rb
+2
-0
config/initializers/session_store.rb
config/initializers/session_store.rb
+2
-0
config/initializers/sherlock.rb
config/initializers/sherlock.rb
+2
-0
config/initializers/sprockets.rb
config/initializers/sprockets.rb
+2
-0
config/initializers/static_files.rb
config/initializers/static_files.rb
+2
-0
config/initializers/time_zone.rb
config/initializers/time_zone.rb
+2
-0
config/initializers/trusted_proxies.rb
config/initializers/trusted_proxies.rb
+2
-0
config/initializers/warden.rb
config/initializers/warden.rb
+2
-0
config/initializers/workhorse_multipart.rb
config/initializers/workhorse_multipart.rb
+2
-0
config/initializers/wrap_parameters.rb
config/initializers/wrap_parameters.rb
+2
-0
config/initializers/zz_metrics.rb
config/initializers/zz_metrics.rb
+2
-0
config/initializers_before_autoloader/000_inflections.rb
config/initializers_before_autoloader/000_inflections.rb
+2
-0
config/object_store_settings.rb
config/object_store_settings.rb
+2
-0
config/routes.rb
config/routes.rb
+2
-0
config/routes/admin.rb
config/routes/admin.rb
+2
-0
config/routes/api.rb
config/routes/api.rb
+2
-0
config/routes/dashboard.rb
config/routes/dashboard.rb
+2
-0
config/routes/development.rb
config/routes/development.rb
+2
-0
config/routes/explore.rb
config/routes/explore.rb
+2
-0
config/routes/git_http.rb
config/routes/git_http.rb
+4
-2
config/routes/google_api.rb
config/routes/google_api.rb
+2
-0
config/routes/help.rb
config/routes/help.rb
+2
-0
config/routes/import.rb
config/routes/import.rb
+2
-0
config/routes/legacy_builds.rb
config/routes/legacy_builds.rb
+2
-0
config/routes/repository.rb
config/routes/repository.rb
+2
-0
config/routes/sherlock.rb
config/routes/sherlock.rb
+2
-0
config/routes/sidekiq.rb
config/routes/sidekiq.rb
+2
-0
config/routes/snippets.rb
config/routes/snippets.rb
+2
-0
config/routes/uploads.rb
config/routes/uploads.rb
+2
-0
config/routes/wiki.rb
config/routes/wiki.rb
+2
-0
config/smime_signature_settings.rb
config/smime_signature_settings.rb
+2
-0
config/spring.rb
config/spring.rb
+2
-0
No files found.
.rubocop_manual_todo.yml
View file @
7a0c278e
...
...
@@ -2647,113 +2647,6 @@ Style/FrozenStringLiteralComment:
-
'
app/views/projects/tags/index.atom.builder'
-
'
app/views/users/show.atom.builder'
-
'
bin/secpick'
-
'
config.ru'
-
'
config/boot.rb'
-
'
config/environment.rb'
-
'
config/environments/development.rb'
-
'
config/environments/production.rb'
-
'
config/environments/test.rb'
-
'
config/initializers/01_secret_token.rb'
-
'
config/initializers/0_acts_as_taggable.rb'
-
'
config/initializers/0_inject_feature_flags.rb'
-
'
config/initializers/0_post_deployment_migrations.rb'
-
'
config/initializers/1_settings.rb'
-
'
config/initializers/2_gitlab.rb'
-
'
config/initializers/5_backend.rb'
-
'
config/initializers/6_validations.rb'
-
'
config/initializers/7_prometheus_metrics.rb'
-
'
config/initializers/7_redis.rb'
-
'
config/initializers/8_devise.rb'
-
'
config/initializers/8_gitaly.rb'
-
'
config/initializers/9_fast_gettext.rb'
-
'
config/initializers/action_dispatch_http_mime_negotiation.rb'
-
'
config/initializers/action_mailer_hooks.rb'
-
'
config/initializers/active_record_data_types.rb'
-
'
config/initializers/active_record_ping.rb'
-
'
config/initializers/active_record_preloader.rb'
-
'
config/initializers/active_record_schema_ignore_tables.rb'
-
'
config/initializers/active_record_table_definition.rb'
-
'
config/initializers/ar_speed_up_migration_checking.rb'
-
'
config/initializers/asset_proxy_settings.rb'
-
'
config/initializers/attr_encrypted_no_db_connection.rb'
-
'
config/initializers/backtrace_silencers.rb'
-
'
config/initializers/batch_loader.rb'
-
'
config/initializers/bootstrap_form.rb'
-
'
config/initializers/bullet.rb'
-
'
config/initializers/cluster_events_before_phased_restart.rb'
-
'
config/initializers/console_message.rb'
-
'
config/initializers/cookies_serializer.rb'
-
'
config/initializers/date_time_formats.rb'
-
'
config/initializers/default_url_options.rb'
-
'
config/initializers/deprecations.rb'
-
'
config/initializers/direct_upload_support.rb'
-
'
config/initializers/doorkeeper.rb'
-
'
config/initializers/doorkeeper_openid_connect.rb'
-
'
config/initializers/etag_caching.rb'
-
'
config/initializers/fill_shards.rb'
-
'
config/initializers/fix_local_cache_middleware.rb'
-
'
config/initializers/fog_google_https_private_urls.rb'
-
'
config/initializers/forbid_sidekiq_in_transactions.rb'
-
'
config/initializers/gettext_rails_i18n_patch.rb'
-
'
config/initializers/gitlab_kas_secret.rb'
-
'
config/initializers/gitlab_shell_secret_token.rb'
-
'
config/initializers/gitlab_workhorse_secret.rb'
-
'
config/initializers/go_get.rb'
-
'
config/initializers/grpc.rb'
-
'
config/initializers/hamlit.rb'
-
'
config/initializers/health_check.rb'
-
'
config/initializers/http_hostname_override.rb'
-
'
config/initializers/kaminari_active_record_relation_methods_with_limit.rb'
-
'
config/initializers/kaminari_config.rb'
-
'
config/initializers/lograge.rb'
-
'
config/initializers/mail_encoding_patch.rb'
-
'
config/initializers/mime_types.rb'
-
'
config/initializers/mini_magick.rb'
-
'
config/initializers/new_framework_defaults.rb'
-
'
config/initializers/octokit.rb'
-
'
config/initializers/omniauth.rb'
-
'
config/initializers/peek.rb'
-
'
config/initializers/postgresql_cte.rb'
-
'
config/initializers/premailer.rb'
-
'
config/initializers/query_limiting.rb'
-
'
config/initializers/rack_lineprof.rb'
-
'
config/initializers/relative_naming_ci_namespace.rb'
-
'
config/initializers/request_context.rb'
-
'
config/initializers/request_profiler.rb'
-
'
config/initializers/routing_draw.rb'
-
'
config/initializers/sentry.rb'
-
'
config/initializers/server_uptime.rb'
-
'
config/initializers/session_store.rb'
-
'
config/initializers/sherlock.rb'
-
'
config/initializers/sprockets.rb'
-
'
config/initializers/static_files.rb'
-
'
config/initializers/time_zone.rb'
-
'
config/initializers/trusted_proxies.rb'
-
'
config/initializers/warden.rb'
-
'
config/initializers/workhorse_multipart.rb'
-
'
config/initializers/wrap_parameters.rb'
-
'
config/initializers/zz_metrics.rb'
-
'
config/initializers_before_autoloader/000_inflections.rb'
-
'
config/object_store_settings.rb'
-
'
config/routes.rb'
-
'
config/routes/admin.rb'
-
'
config/routes/api.rb'
-
'
config/routes/dashboard.rb'
-
'
config/routes/development.rb'
-
'
config/routes/explore.rb'
-
'
config/routes/git_http.rb'
-
'
config/routes/google_api.rb'
-
'
config/routes/help.rb'
-
'
config/routes/import.rb'
-
'
config/routes/legacy_builds.rb'
-
'
config/routes/repository.rb'
-
'
config/routes/sherlock.rb'
-
'
config/routes/sidekiq.rb'
-
'
config/routes/snippets.rb'
-
'
config/routes/uploads.rb'
-
'
config/routes/wiki.rb'
-
'
config/smime_signature_settings.rb'
-
'
config/spring.rb'
-
'
danger/changes_size/Dangerfile'
-
'
danger/metadata/Dangerfile'
-
'
db/migrate/20190325080727_truncate_user_fullname.rb'
...
...
config.ru
View file @
7a0c278e
# frozen_string_literal: true
# This file is used by Rack-based servers to start the application.
if
defined?
(
Unicorn
)
...
...
config/boot.rb
View file @
7a0c278e
# frozen_string_literal: true
ENV
[
'BUNDLE_GEMFILE'
]
||=
File
.
expand_path
(
'../Gemfile'
,
__dir__
)
# Set up gems listed in the Gemfile.
...
...
config/environment.rb
View file @
7a0c278e
# frozen_string_literal: true
# Load the Rails application.
require_relative
'application'
...
...
config/environments/development.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
configure
do
# Settings specified here will take precedence over those in config/application.rb
...
...
config/environments/production.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
configure
do
# Settings specified here will take precedence over those in config/application.rb
...
...
config/environments/test.rb
View file @
7a0c278e
# frozen_string_literal: true
require
'gitlab/testing/request_blocker_middleware'
require
'gitlab/testing/robots_blocker_middleware'
require
'gitlab/testing/request_inspector_middleware'
...
...
config/initializers/01_secret_token.rb
View file @
7a0c278e
# frozen_string_literal: true
# WARNING: Before you make a change to secrets.yml, read the development guide for GitLab secrets
# doc/development/application_secrets.md.
#
...
...
config/initializers/0_acts_as_taggable.rb
View file @
7a0c278e
# frozen_string_literal: true
ActsAsTaggableOn
.
strict_case_match
=
true
# tags_counter enables caching count of tags which results in an update whenever a tag is added or removed
...
...
config/initializers/0_inject_feature_flags.rb
View file @
7a0c278e
# frozen_string_literal: true
# This needs to be loaded after
# config/initializers/0_inject_enterprise_edition_module.rb
...
...
config/initializers/0_post_deployment_migrations.rb
View file @
7a0c278e
# frozen_string_literal: true
# Post deployment migrations are included by default. This file must be loaded
# before other initializers as Rails may otherwise memoize a list of migrations
# excluding the post deployment migrations.
...
...
config/initializers/1_settings.rb
View file @
7a0c278e
# frozen_string_literal: true
require_relative
'../settings'
require_relative
'../object_store_settings'
require_relative
'../smime_signature_settings'
...
...
config/initializers/2_gitlab.rb
View file @
7a0c278e
# frozen_string_literal: true
require_dependency
'gitlab'
config/initializers/5_backend.rb
View file @
7a0c278e
# frozen_string_literal: true
unless
Rails
.
env
.
test?
required_version
=
Gitlab
::
VersionInfo
.
parse
(
Gitlab
::
Shell
.
version_required
)
current_version
=
Gitlab
::
VersionInfo
.
parse
(
Gitlab
::
Shell
.
version
)
...
...
config/initializers/6_validations.rb
View file @
7a0c278e
# frozen_string_literal: true
def
storage_validation_error
(
message
)
raise
"
#{
message
}
. Please fix this in your gitlab.yml before starting GitLab."
end
...
...
config/initializers/7_prometheus_metrics.rb
View file @
7a0c278e
# frozen_string_literal: true
require
'prometheus/client'
# Keep separate directories for separate processes
...
...
config/initializers/7_redis.rb
View file @
7a0c278e
# frozen_string_literal: true
# Make sure we initialize a Redis connection pool before multi-threaded
# execution starts by
# 1. Sidekiq
...
...
config/initializers/8_devise.rb
View file @
7a0c278e
# frozen_string_literal: true
# Use this hook to configure devise mailer, warden hooks and so forth. The first
# four configuration values can also be set straight in your models.
Devise
.
setup
do
|
config
|
...
...
config/initializers/8_gitaly.rb
View file @
7a0c278e
# frozen_string_literal: true
require
'uri'
Gitlab
.
config
.
repositories
.
storages
.
keys
.
each
do
|
storage
|
...
...
config/initializers/9_fast_gettext.rb
View file @
7a0c278e
# frozen_string_literal: true
FastGettext
.
default_available_locales
=
Gitlab
::
I18n
.
available_locales
I18n
.
available_locales
=
Gitlab
::
I18n
.
available_locales
config/initializers/action_dispatch_http_mime_negotiation.rb
View file @
7a0c278e
# frozen_string_literal: true
# Starting with Rails 5, Rails tries to determine the request format based on
# the extension of the full URL path if no explicit `format` param or `Accept`
# header is provided, like when simply browsing to a page in your browser.
...
...
config/initializers/action_mailer_hooks.rb
View file @
7a0c278e
# frozen_string_literal: true
unless
Gitlab
.
config
.
gitlab
.
email_enabled
ActionMailer
::
Base
.
register_interceptor
(
::
Gitlab
::
Email
::
Hook
::
DisableEmailInterceptor
)
ActionMailer
::
Base
.
logger
=
nil
...
...
config/initializers/active_record_data_types.rb
View file @
7a0c278e
# frozen_string_literal: true
# ActiveRecord custom data type for storing datetimes with timezone information.
# See https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/11229
...
...
config/initializers/active_record_ping.rb
View file @
7a0c278e
# frozen_string_literal: true
# # frozen_string_literal: true
if
Gitlab
::
Utils
.
to_boolean
(
ENV
[
'ENABLE_ACTIVERECORD_EMPTY_PING'
],
default:
false
)
...
...
config/initializers/active_record_preloader.rb
View file @
7a0c278e
# frozen_string_literal: true
module
ActiveRecord
module
Associations
class
Preloader
...
...
config/initializers/active_record_schema_ignore_tables.rb
View file @
7a0c278e
# frozen_string_literal: true
# Ignore dynamically managed partitions in static application schema
ActiveRecord
::
SchemaDumper
.
ignore_tables
+=
[
"
#{
Gitlab
::
Database
::
DYNAMIC_PARTITIONS_SCHEMA
}
.*"
]
config/initializers/active_record_table_definition.rb
View file @
7a0c278e
# frozen_string_literal: true
# ActiveRecord custom method definitions with timezone information.
# See https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/11229
...
...
config/initializers/ar_speed_up_migration_checking.rb
View file @
7a0c278e
# frozen_string_literal: true
if
Rails
.
env
.
test?
require
'active_record/migration'
...
...
config/initializers/asset_proxy_settings.rb
View file @
7a0c278e
# frozen_string_literal: true
#
# Asset proxy settings
#
...
...
config/initializers/attr_encrypted_no_db_connection.rb
View file @
7a0c278e
# frozen_string_literal: true
module
AttrEncrypted
module
Adapters
module
ActiveRecord
...
...
config/initializers/backtrace_silencers.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
backtrace_cleaner
.
remove_silencers!
# This allows us to see the proper caller of SQL calls in {development,test}.log
...
...
config/initializers/batch_loader.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
config
.
middleware
.
use
(
BatchLoader
::
Middleware
)
config/initializers/bootstrap_form.rb
View file @
7a0c278e
# frozen_string_literal: true
module
BootstrapFormBuilderCustomization
def
label_class
"label-bold"
...
...
config/initializers/bullet.rb
View file @
7a0c278e
# frozen_string_literal: true
def
bullet_enabled?
Gitlab
::
Utils
.
to_boolean
(
ENV
[
'ENABLE_BULLET'
].
to_s
)
end
...
...
config/initializers/cluster_events_before_phased_restart.rb
View file @
7a0c278e
# frozen_string_literal: true
# Technical debt, this should be ideally upstreamed.
#
# However, there's currently no way to hook before doing
...
...
config/initializers/console_message.rb
View file @
7a0c278e
# frozen_string_literal: true
# rubocop:disable Rails/Output
if
Gitlab
::
Runtime
.
console?
# note that this will not print out when using `spring`
...
...
config/initializers/cookies_serializer.rb
View file @
7a0c278e
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
Rails
.
application
.
config
.
action_dispatch
.
use_cookies_with_metadata
=
true
...
...
config/initializers/date_time_formats.rb
View file @
7a0c278e
# frozen_string_literal: true
# :short - 10 Nov
# :medium - Nov 10, 2007
# :long - November 10, 2007
...
...
config/initializers/default_url_options.rb
View file @
7a0c278e
# frozen_string_literal: true
default_url_options
=
{
host:
Gitlab
.
config
.
gitlab
.
host
,
protocol:
Gitlab
.
config
.
gitlab
.
protocol
,
...
...
config/initializers/deprecations.rb
View file @
7a0c278e
# frozen_string_literal: true
if
Rails
.
env
.
development?
||
ENV
[
'GITLAB_LEGACY_PATH_LOG_MESSAGE'
]
deprecator
=
ActiveSupport
::
Deprecation
.
new
(
'11.0'
,
'GitLab'
)
...
...
config/initializers/direct_upload_support.rb
View file @
7a0c278e
# frozen_string_literal: true
class
DirectUploadsValidator
SUPPORTED_DIRECT_UPLOAD_PROVIDERS
=
[
ObjectStorage
::
Config
::
GOOGLE_PROVIDER
,
ObjectStorage
::
Config
::
AWS_PROVIDER
,
...
...
config/initializers/doorkeeper.rb
View file @
7a0c278e
# frozen_string_literal: true
Doorkeeper
.
configure
do
# Change the ORM that doorkeeper will use.
# Currently supported options are :active_record, :mongoid2, :mongoid3, :mongo_mapper
...
...
config/initializers/doorkeeper_openid_connect.rb
View file @
7a0c278e
# frozen_string_literal: true
Doorkeeper
::
OpenidConnect
.
configure
do
issuer
Gitlab
.
config
.
gitlab
.
url
...
...
config/initializers/etag_caching.rb
View file @
7a0c278e
# frozen_string_literal: true
# This middleware has to come after Gitlab::Metrics::RackMiddleware
# in the middleware stack, because it tracks events with
# GitLab Performance Monitoring
...
...
config/initializers/fill_shards.rb
View file @
7a0c278e
# frozen_string_literal: true
# The explicit schema version check is needed because during our migration rollback testing,
# `Shard.connected?` could be cached and return true even though the table doesn't exist
return
unless
Shard
.
connected?
...
...
config/initializers/fix_local_cache_middleware.rb
View file @
7a0c278e
# frozen_string_literal: true
module
LocalCacheRegistryCleanupWithEnsure
LocalCacheRegistry
=
ActiveSupport
::
Cache
::
Strategy
::
LocalCache
::
LocalCacheRegistry
...
...
config/initializers/fog_google_https_private_urls.rb
View file @
7a0c278e
# frozen_string_literal: true
#
# Monkey patching the https support for private urls
# See https://gitlab.com/gitlab-org/gitlab/issues/4879
...
...
config/initializers/forbid_sidekiq_in_transactions.rb
View file @
7a0c278e
# frozen_string_literal: true
module
Sidekiq
module
Worker
EnqueueFromTransactionError
=
Class
.
new
(
StandardError
)
...
...
config/initializers/gettext_rails_i18n_patch.rb
View file @
7a0c278e
# frozen_string_literal: true
require
'gettext_i18n_rails/haml_parser'
require
'gettext_i18n_rails_js/parser/javascript'
require
'json'
...
...
config/initializers/gitlab_kas_secret.rb
View file @
7a0c278e
# frozen_string_literal: true
Gitlab
::
Kas
.
ensure_secret!
config/initializers/gitlab_shell_secret_token.rb
View file @
7a0c278e
# frozen_string_literal: true
Gitlab
::
Shell
.
ensure_secret_token!
config/initializers/gitlab_workhorse_secret.rb
View file @
7a0c278e
# frozen_string_literal: true
begin
Gitlab
::
Workhorse
.
secret
rescue
...
...
config/initializers/go_get.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
config
.
middleware
.
use
(
Gitlab
::
Middleware
::
Go
)
config/initializers/grpc.rb
View file @
7a0c278e
# frozen_string_literal: true
require
'logger'
GRPC_LOGGER
=
Logger
.
new
(
Rails
.
root
.
join
(
'log/grpc.log'
))
...
...
config/initializers/hamlit.rb
View file @
7a0c278e
# frozen_string_literal: true
Hamlit
::
RailsTemplate
.
set_options
(
attr_quote:
'"'
)
Hamlit
::
Filters
.
remove_filter
(
'coffee'
)
...
...
config/initializers/health_check.rb
View file @
7a0c278e
# frozen_string_literal: true
HealthCheck
.
setup
do
|
config
|
config
.
standard_checks
=
%w(database migrations cache)
config
.
full_checks
=
%w(database migrations cache)
...
...
config/initializers/http_hostname_override.rb
View file @
7a0c278e
# frozen_string_literal: true
# This override allows passing `@hostname_override` to the SNI protocol,
# which is used to lookup the correct SSL certificate in the
# request handshake process.
...
...
config/initializers/kaminari_active_record_relation_methods_with_limit.rb
View file @
7a0c278e
# frozen_string_literal: true
module
Kaminari
# Active Record specific page scope methods implementations
module
ActiveRecordRelationMethodsWithLimit
...
...
config/initializers/kaminari_config.rb
View file @
7a0c278e
# frozen_string_literal: true
Kaminari
.
configure
do
|
config
|
config
.
default_per_page
=
20
config
.
max_per_page
=
100
...
...
config/initializers/lograge.rb
View file @
7a0c278e
# frozen_string_literal: true
# Only use Lograge for Rails
unless
Gitlab
::
Runtime
.
sidekiq?
Rails
.
application
.
reloader
.
to_prepare
do
...
...
config/initializers/mail_encoding_patch.rb
View file @
7a0c278e
# frozen_string_literal: true
# Monkey patch mail 2.7.1 to fix quoted-printable issues with newlines
# The issues upstream invalidate SMIME signatures under some conditions
# This was working properly in 2.6.6
...
...
config/initializers/mime_types.rb
View file @
7a0c278e
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
...
...
config/initializers/mini_magick.rb
View file @
7a0c278e
# frozen_string_literal: true
MiniMagick
.
configure
do
|
config
|
config
.
cli
=
:graphicsmagick
end
config/initializers/new_framework_defaults.rb
View file @
7a0c278e
# frozen_string_literal: true
# Remove this `if` condition when upgraded to rails 5.0.
# The body must be kept.
# Be sure to restart your server when you modify this file.
...
...
config/initializers/octokit.rb
View file @
7a0c278e
# frozen_string_literal: true
Octokit
.
middleware
.
insert_after
Octokit
::
Middleware
::
FollowRedirects
,
Gitlab
::
Octokit
::
Middleware
config/initializers/omniauth.rb
View file @
7a0c278e
# frozen_string_literal: true
if
Gitlab
::
Auth
::
Ldap
::
Config
.
enabled?
module
OmniAuth::Strategies
Gitlab
::
Auth
::
Ldap
::
Config
.
available_servers
.
each
do
|
server
|
...
...
config/initializers/peek.rb
View file @
7a0c278e
# frozen_string_literal: true
require
'peek/adapters/redis'
Peek
::
Adapters
::
Redis
.
prepend
::
Gitlab
::
PerformanceBar
::
RedisAdapterWhenPeekEnabled
...
...
config/initializers/postgresql_cte.rb
View file @
7a0c278e
# frozen_string_literal: true
# Adds support for WITH statements when using PostgreSQL. The code here is taken
# from https://github.com/shmay/ctes_in_my_pg which at the time of writing has
# not been pushed to RubyGems. The license of this repository is as follows:
...
...
config/initializers/premailer.rb
View file @
7a0c278e
# frozen_string_literal: true
# See https://github.com/fphilipe/premailer-rails#configuration
Premailer
::
Rails
.
config
.
merge!
(
generate_text_part:
false
,
...
...
config/initializers/query_limiting.rb
View file @
7a0c278e
# frozen_string_literal: true
if
Gitlab
::
QueryLimiting
.
enable?
require_dependency
'gitlab/query_limiting/active_support_subscriber'
require_dependency
'gitlab/query_limiting/transaction'
...
...
config/initializers/rack_lineprof.rb
View file @
7a0c278e
# frozen_string_literal: true
# The default colors of rack-lineprof can be very hard to look at in terminals
# with darker backgrounds. This patch tweaks the colors a bit so the output is
# actually readable.
...
...
config/initializers/relative_naming_ci_namespace.rb
View file @
7a0c278e
# frozen_string_literal: true
# Description: https://coderwall.com/p/heed_q/rails-routing-and-namespaced-models
#
# This allows us to use CI ActiveRecord objects in all routes and use it:
...
...
config/initializers/request_context.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
configure
do
|
config
|
config
.
middleware
.
insert_after
RequestStore
::
Middleware
,
Gitlab
::
Middleware
::
RequestContext
end
config/initializers/request_profiler.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
configure
do
|
config
|
config
.
middleware
.
use
(
Gitlab
::
RequestProfiler
::
Middleware
)
end
config/initializers/routing_draw.rb
View file @
7a0c278e
# frozen_string_literal: true
# Adds draw method into Rails routing
# It allows us to keep routing split into files
ActionDispatch
::
Routing
::
Mapper
.
prepend
Gitlab
::
Patch
::
DrawRoute
config/initializers/sentry.rb
View file @
7a0c278e
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
require
'gitlab/current_settings'
...
...
config/initializers/server_uptime.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
config
.
booted_at
=
Time
.
now
config/initializers/session_store.rb
View file @
7a0c278e
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
require
'gitlab/current_settings'
...
...
config/initializers/sherlock.rb
View file @
7a0c278e
# frozen_string_literal: true
if
Gitlab
::
Sherlock
.
enabled?
Rails
.
application
.
configure
do
|
config
|
config
.
middleware
.
use
(
Gitlab
::
Sherlock
::
Middleware
)
...
...
config/initializers/sprockets.rb
View file @
7a0c278e
# frozen_string_literal: true
Sprockets
.
register_compressor
'application/javascript'
,
:terser
,
Terser
::
Compressor
config/initializers/static_files.rb
View file @
7a0c278e
# frozen_string_literal: true
app
=
Rails
.
application
if
app
.
config
.
public_file_server
.
enabled
...
...
config/initializers/time_zone.rb
View file @
7a0c278e
# frozen_string_literal: true
Time
.
zone
=
Gitlab
.
config
.
gitlab
.
time_zone
||
Time
.
zone
# The default is normally set by Rails in the
# active_support.initialize_time_zone Railtie, but we need to set it
...
...
config/initializers/trusted_proxies.rb
View file @
7a0c278e
# frozen_string_literal: true
# Override Rack::Request to make use of the same list of trusted_proxies
# as the ActionDispatch::Request object. This is necessary for libraries
# like rack_attack where they don't use ActionDispatch, and we want them
...
...
config/initializers/warden.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
configure
do
|
config
|
Warden
::
Manager
.
after_set_user
(
scope: :user
)
do
|
user
,
auth
,
opts
|
Gitlab
::
Auth
::
UniqueIpsLimiter
.
limit_user!
(
user
)
...
...
config/initializers/workhorse_multipart.rb
View file @
7a0c278e
# frozen_string_literal: true
Rails
.
application
.
configure
do
|
config
|
# ApolloUploadServer::Middleware expects to find uploaded files ready to use
config
.
middleware
.
insert_before
(
ApolloUploadServer
::
Middleware
,
Gitlab
::
Middleware
::
Multipart
)
...
...
config/initializers/wrap_parameters.rb
View file @
7a0c278e
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
#
# This file contains settings for ActionController::ParamsWrapper which
...
...
config/initializers/zz_metrics.rb
View file @
7a0c278e
# frozen_string_literal: true
# This file was prefixed with zz_ because we want to load it the last!
# See: https://gitlab.com/gitlab-org/gitlab-foss/issues/55611
...
...
config/initializers_before_autoloader/000_inflections.rb
View file @
7a0c278e
# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
...
...
config/object_store_settings.rb
View file @
7a0c278e
# frozen_string_literal: true
# Set default values for object_store settings
class
ObjectStoreSettings
SUPPORTED_TYPES
=
%w(artifacts external_diffs lfs uploads packages dependency_proxy terraform_state pages)
.
freeze
...
...
config/routes.rb
View file @
7a0c278e
# frozen_string_literal: true
require
'sidekiq/web'
require
'sidekiq/cron/web'
require
'product_analytics/collector_app'
...
...
config/routes/admin.rb
View file @
7a0c278e
# frozen_string_literal: true
namespace
:admin
do
resources
:users
,
constraints:
{
id:
%r{[a-zA-Z./0-9_
\-
]+}
}
do
resources
:keys
,
only:
[
:show
,
:destroy
]
...
...
config/routes/api.rb
View file @
7a0c278e
# frozen_string_literal: true
post
'/api/graphql'
,
to:
'graphql#execute'
mount
GraphiQL
::
Rails
::
Engine
,
at:
'/-/graphql-explorer'
,
graphql_path:
Gitlab
::
Utils
.
append_path
(
Gitlab
.
config
.
gitlab
.
relative_url_root
,
'/api/graphql'
)
...
...
config/routes/dashboard.rb
View file @
7a0c278e
# frozen_string_literal: true
resource
:dashboard
,
controller:
'dashboard'
,
only:
[]
do
get
:issues
,
action: :issues_calendar
,
constraints:
lambda
{
|
req
|
req
.
format
==
:ics
}
get
:issues
...
...
config/routes/development.rb
View file @
7a0c278e
# frozen_string_literal: true
if
Rails
.
env
.
development?
# Make the built-in Rails routes available in development, otherwise they'd
# get swallowed by the `namespace/project` route matcher below.
...
...
config/routes/explore.rb
View file @
7a0c278e
# frozen_string_literal: true
namespace
:explore
do
resources
:projects
,
only:
[
:index
]
do
collection
do
...
...
config/routes/git_http.rb
View file @
7a0c278e
# frozen_string_literal: true
scope
(
path:
'*repository_path'
,
format:
false
)
do
constraints
(
repository_path:
Gitlab
::
PathRegex
.
repository_git_route_regex
)
do
scope
(
module: :repositories
)
do
...
...
@@ -42,7 +44,7 @@ scope(path: '*repository_path', format: false) do
wiki_redirect
=
redirect
do
|
params
,
request
|
container_path
=
params
[
:repository_path
].
delete_suffix
(
'.wiki.git'
)
path
=
File
.
join
(
container_path
,
'-'
,
'wikis'
)
path
<<
"?
#{
request
.
query_string
}
"
unless
request
.
query_string
.
blank?
path
+=
"?
#{
request
.
query_string
}
"
unless
request
.
query_string
.
blank?
path
end
...
...
@@ -54,7 +56,7 @@ scope(path: '*repository_path', format: false) do
constraints
(
repository_path:
Gitlab
::
PathRegex
.
repository_route_regex
)
do
ref_redirect
=
redirect
do
|
params
,
request
|
path
=
"
#{
params
[
:repository_path
]
}
.git/info/refs"
path
<<
"?
#{
request
.
query_string
}
"
unless
request
.
query_string
.
blank?
path
+=
"?
#{
request
.
query_string
}
"
unless
request
.
query_string
.
blank?
path
end
...
...
config/routes/google_api.rb
View file @
7a0c278e
# frozen_string_literal: true
scope
'-'
do
namespace
:google_api
do
resource
:auth
,
only:
[],
controller: :authorizations
do
...
...
config/routes/help.rb
View file @
7a0c278e
# frozen_string_literal: true
get
'help'
=>
'help#index'
get
'help/shortcuts'
=>
'help#shortcuts'
get
'help/instance_configuration'
=>
'help#instance_configuration'
...
...
config/routes/import.rb
View file @
7a0c278e
# frozen_string_literal: true
# Alias import callbacks under the /users/auth endpoint so that
# the OAuth2 callback URL can be restricted under http://example.com/users/auth
# instead of http://example.com.
...
...
config/routes/legacy_builds.rb
View file @
7a0c278e
# frozen_string_literal: true
resources
:builds
,
only:
[
:index
,
:show
],
constraints:
{
id:
/\d+/
}
do
collection
do
resources
:artifacts
,
only:
[],
controller:
'build_artifacts'
do
...
...
config/routes/repository.rb
View file @
7a0c278e
# frozen_string_literal: true
# All routing related to repository browsing
resource
:repository
,
only:
[
:create
]
do
...
...
config/routes/sherlock.rb
View file @
7a0c278e
# frozen_string_literal: true
if
Gitlab
::
Sherlock
.
enabled?
namespace
:sherlock
do
resources
:transactions
,
only:
[
:index
,
:show
]
do
...
...
config/routes/sidekiq.rb
View file @
7a0c278e
# frozen_string_literal: true
constraints
::
Constraints
::
AdminConstrainer
.
new
do
mount
Sidekiq
::
Web
,
at:
'/admin/sidekiq'
,
as: :sidekiq
end
config/routes/snippets.rb
View file @
7a0c278e
# frozen_string_literal: true
resources
:snippets
,
except:
[
:create
,
:update
,
:destroy
],
concerns: :awardable
,
constraints:
{
id:
/\d+/
}
do
member
do
get
:raw
...
...
config/routes/uploads.rb
View file @
7a0c278e
# frozen_string_literal: true
scope
path: :uploads
do
# Note attachments and User/Group/Project avatars
get
"-/system/:model/:mounted_as/:id/:filename"
,
...
...
config/routes/wiki.rb
View file @
7a0c278e
# frozen_string_literal: true
scope
(
controller: :wikis
)
do
scope
(
path:
'wikis'
,
as: :wikis
)
do
get
:git_access
...
...
config/smime_signature_settings.rb
View file @
7a0c278e
# frozen_string_literal: true
# Set default values for email_smime settings
class
SmimeSignatureSettings
def
self
.
parse
(
email_smime
)
...
...
config/spring.rb
View file @
7a0c278e
# frozen_string_literal: true
%w(
.ruby-version
.rbenv-vars
...
...
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