From 543af297fa69488b51ef6d12c0302fa641aa7bf1 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 12 May 2024 01:09:26 -0300 Subject: [PATCH] Update Rakefile.rb --- Rakefile.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Rakefile.rb b/Rakefile.rb index 5a8494f..0b96dc3 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -5,11 +5,16 @@ require 'rake/extensiontask' Rake::ExtensionTask.new('bsdcontrol.rb') task default: %w[clobber compile test] -namespace :clang do +namespace :format do desc 'Run clang-format' - task :format do + task :clang do sh 'clang-format -style=file:.clang-format -i ext/bsdcontrol.rb/*.c' end + + desc 'Run rubocop' + task :ruby do + sh 'bundle exec rubocop -A' + end end namespace :test do