20 lines
463 B
Ruby
20 lines
463 B
Ruby
unless Rails.env.production?
|
|
namespace :lint do
|
|
task :static_verification_env do
|
|
ENV['STATIC_VERIFICATION'] = 'true'
|
|
end
|
|
|
|
desc "GitLab | lint | Static verification"
|
|
task static_verification: %w[
|
|
lint:static_verification_env
|
|
dev:load
|
|
] do
|
|
Gitlab::Utils::Override.verify!
|
|
end
|
|
|
|
desc "GitLab | lint | Lint JavaScript files using ESLint"
|
|
task :javascript do
|
|
Rake::Task['eslint'].invoke
|
|
end
|
|
end
|
|
end
|