/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
rake/rubocop.rake
21 строка
579 B
Ashwin Maroli
Format `.rubocop.yml` via a rake task (#9687)
20 сен 2024, 14:25
Не верифицирован
20 сен 2024, 14:25
94831d5
Код
Авторство
О чём код?
# frozen_string_literal: true namespace :rubocop do desc "Format existing `.rubocop.yml` to improve readability" task :format_config do require_relative "./task_utils/rubocop_config_formatter" config_file = File.expand_path("../.rubocop.yml", __dir__) if File.exist?(config_file) print " Configuration File: " puts config_file puts "formating...".rjust(20) else puts "#{config_file} not found! Exiting." exit! end Jekyll::TaskUtils::RuboCopConfigFormatter.new(config_file).format! puts "done!".rjust(26) end end