Skip to content

Commit

Permalink
feat: Add Rakefile with format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuyoMo committed Apr 21, 2024
1 parent 81964a1 commit abc4a2d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FORMAT_COMMAND = 'swift package --allow-writing-to-package-directory format'

namespace :swift do
desc 'Run Format'
task :format do
sh FORMAT_COMMAND
end

desc 'Run Lint'
task :lint do
sh FORMAT_COMMAND + ' --lint'
end
end

0 comments on commit abc4a2d

Please sign in to comment.