2021-09-30 23:02:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
Rails.autoloaders.each do |autoloader|
|
|
|
|
# We need to ignore these since these are non-Ruby files
|
|
|
|
# that do not define Ruby classes / modules
|
|
|
|
autoloader.ignore(Rails.root.join('lib/support'))
|
2022-04-04 11:22:00 +05:30
|
|
|
autoloader.ignore(Rails.root.join('lib/gitlab/ci/parsers/security/validators/schemas'))
|
2021-10-27 15:23:28 +05:30
|
|
|
autoloader.ignore(Rails.root.join('ee/lib/ee/gitlab/ci/parsers/security/validators/schemas')) if Gitlab.ee?
|
2021-09-30 23:02:18 +05:30
|
|
|
|
2021-10-27 15:23:28 +05:30
|
|
|
# Mailer previews are loaded manually by Rails
|
2021-09-30 23:02:18 +05:30
|
|
|
# https://github.com/rails/rails/blob/v6.1.3.2/actionmailer/lib/action_mailer/preview.rb#L121-L125
|
|
|
|
autoloader.ignore(Rails.root.join('app/mailers/previews'))
|
|
|
|
autoloader.ignore(Rails.root.join('ee/app/mailers/previews')) if Gitlab.ee?
|
2021-10-27 15:23:28 +05:30
|
|
|
autoloader.ignore(Rails.root.join('jh/app/mailers/previews')) if Gitlab.jh?
|
2021-09-30 23:02:18 +05:30
|
|
|
|
|
|
|
autoloader.inflector.inflect(
|
|
|
|
'api' => 'API',
|
|
|
|
'api_authentication' => 'APIAuthentication',
|
|
|
|
'api_guard' => 'APIGuard',
|
|
|
|
'group_api_compatibility' => 'GroupAPICompatibility',
|
|
|
|
'project_api_compatibility' => 'ProjectAPICompatibility',
|
|
|
|
'ast' => 'AST',
|
|
|
|
'cte' => 'CTE',
|
|
|
|
'recursive_cte' => 'RecursiveCTE',
|
|
|
|
'cidr' => 'CIDR',
|
|
|
|
'cli' => 'CLI',
|
|
|
|
'dn' => 'DN',
|
2022-06-21 17:19:12 +05:30
|
|
|
'gitlab_cli_activity_unique_counter' => 'GitLabCliActivityUniqueCounter',
|
2021-09-30 23:02:18 +05:30
|
|
|
'global_id_type' => 'GlobalIDType',
|
|
|
|
'hll' => 'HLL',
|
|
|
|
'hll_redis_counter' => 'HLLRedisCounter',
|
|
|
|
'redis_hll_metric' => 'RedisHLLMetric',
|
|
|
|
'hmac_token' => 'HMACToken',
|
|
|
|
'html' => 'HTML',
|
|
|
|
'html_parser' => 'HTMLParser',
|
|
|
|
'html_gitlab' => 'HTMLGitlab',
|
|
|
|
'http' => 'HTTP',
|
|
|
|
'http_connection_adapter' => 'HTTPConnectionAdapter',
|
|
|
|
'http_clone_enabled_check' => 'HTTPCloneEnabledCheck',
|
|
|
|
'hangouts_chat_http_override' => 'HangoutsChatHTTPOverride',
|
|
|
|
'chunked_io' => 'ChunkedIO',
|
|
|
|
'http_io' => 'HttpIO',
|
2022-04-04 11:22:00 +05:30
|
|
|
'jetbrains_plugin_activity_unique_counter' => 'JetBrainsPluginActivityUniqueCounter',
|
2021-09-30 23:02:18 +05:30
|
|
|
'json_formatter' => 'JSONFormatter',
|
|
|
|
'json_web_token' => 'JSONWebToken',
|
|
|
|
'as_json' => 'AsJSON',
|
|
|
|
'jwt_token' => 'JWTToken',
|
|
|
|
'ldap_key' => 'LDAPKey',
|
|
|
|
'mr_note' => 'MRNote',
|
|
|
|
'pdf' => 'PDF',
|
|
|
|
'csv' => 'CSV',
|
|
|
|
'rsa_token' => 'RSAToken',
|
|
|
|
'san_extension' => 'SANExtension',
|
|
|
|
'sca' => 'SCA',
|
|
|
|
'spdx' => 'SPDX',
|
|
|
|
'sql' => 'SQL',
|
|
|
|
'ssh_key' => 'SSHKey',
|
|
|
|
'ssh_key_with_user' => 'SSHKeyWithUser',
|
|
|
|
'ssh_public_key' => 'SSHPublicKey',
|
|
|
|
'git_ssh_proxy' => 'GitSSHProxy',
|
|
|
|
'git_user_default_ssh_config_check' => 'GitUserDefaultSSHConfigCheck',
|
|
|
|
'binary_stl' => 'BinarySTL',
|
|
|
|
'text_stl' => 'TextSTL',
|
|
|
|
'svg' => 'SVG',
|
|
|
|
'function_uri' => 'FunctionURI',
|
|
|
|
'uuid' => 'UUID',
|
|
|
|
'vulnerability_uuid' => 'VulnerabilityUUID',
|
|
|
|
'vs_code_extension_activity_unique_counter' => 'VSCodeExtensionActivityUniqueCounter'
|
|
|
|
)
|
|
|
|
end
|