Update Rakefile.rb

This commit is contained in:
0x1eef 2024-05-12 01:09:26 -03:00
parent 773166b640
commit 543af297fa

View file

@ -5,11 +5,16 @@ require 'rake/extensiontask'
Rake::ExtensionTask.new('bsdcontrol.rb') Rake::ExtensionTask.new('bsdcontrol.rb')
task default: %w[clobber compile test] task default: %w[clobber compile test]
namespace :clang do namespace :format do
desc 'Run clang-format' desc 'Run clang-format'
task :format do task :clang do
sh 'clang-format -style=file:.clang-format -i ext/bsdcontrol.rb/*.c' sh 'clang-format -style=file:.clang-format -i ext/bsdcontrol.rb/*.c'
end end
desc 'Run rubocop'
task :ruby do
sh 'bundle exec rubocop -A'
end
end end
namespace :test do namespace :test do