Skip to content

Commit

Permalink
Ensure no warnings in YARD
Browse files Browse the repository at this point in the history
Resolves #22
  • Loading branch information
kachick committed Apr 28, 2021
1 parent 69eed0a commit 9655676
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--fail-on-warning
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'bundler/gem_tasks'

require 'rake/testtask'

default_tasks = [:test]
default_tasks = [:test, :test_yard]
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('2.6.0')
default_tasks << :'signature:validate'
end
Expand All @@ -20,3 +20,7 @@ namespace :signature do
sh 'bundle exec rbs -rsingleton -I sig validate'
end
end

task :test_yard do
sh "bundle exec yard --fail-on-warning #{'--no-progress' if ENV['CI']}"
end

0 comments on commit 9655676

Please sign in to comment.