Commit 82872c01 authored by Albert Salim's avatar Albert Salim

Merge branch 'fix-base-linter-autoloading-warnings' into 'master'

Fix base linter loading warnings

See merge request gitlab-org/gitlab!50397
parents 5f003f9d 7a846352
# frozen_string_literal: true # frozen_string_literal: true
require_relative 'base_linter'
emoji_checker_path = File.expand_path('emoji_checker', __dir__) emoji_checker_path = File.expand_path('emoji_checker', __dir__)
defined?(Rails) ? require_dependency(emoji_checker_path) : require_relative(emoji_checker_path) base_linter_path = File.expand_path('base_linter', __dir__)
if defined?(Rails)
require_dependency(base_linter_path)
require_dependency(emoji_checker_path)
else
require_relative(base_linter_path)
require_relative(emoji_checker_path)
end
module Gitlab module Gitlab
module Danger module Danger
......
# frozen_string_literal: true # frozen_string_literal: true
require_relative 'base_linter' base_linter_path = File.expand_path('base_linter', __dir__)
if defined?(Rails)
require_dependency(base_linter_path)
else
require_relative(base_linter_path)
end
module Gitlab module Gitlab
module Danger module Danger
......
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