Skip to content

Commit

Permalink
🔨 Rake tasks for yard and yard:junk
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Sep 4, 2024
1 parent 50050a4 commit 5b5575d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,24 @@ rescue LoadError
end
end

task default: %i[test rubocop_gradual]
begin
require "yard-junk/rake"

YardJunk::Rake.define_task
rescue LoadError
task("yard:junk") do
warn("yard:junk is disabled")
end
end

begin
require "yard"

YARD::Rake::YardocTask.new(:yard)
rescue LoadError
task(:yard) do
warn("yard is disabled")
end
end

task default: %i[test rubocop_gradual yard yard:junk]

0 comments on commit 5b5575d

Please sign in to comment.