debian-mirror-gitlab/lib/tasks/lint.rake

21 lines
463 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
unless Rails.env.production?
namespace :lint do
2018-03-17 18:26:18 +05:30
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
2017-08-17 22:00:37 +05:30
desc "GitLab | lint | Lint JavaScript files using ESLint"
task :javascript do
Rake::Task['eslint'].invoke
end
end
end