Update Rakefile.rb
This commit is contained in:
parent
773166b640
commit
543af297fa
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue