Skip to content

Instantly share code, notes, and snippets.

@gonzalo-bulnes
Created June 2, 2015 18:01
Show Gist options
  • Save gonzalo-bulnes/89449b059fc35b9491bb to your computer and use it in GitHub Desktop.
Save gonzalo-bulnes/89449b059fc35b9491bb to your computer and use it in GitHub Desktop.
Add documentation improvement suggestions to a Ruby test suite (by defining a Rake task with Inch).
# Rakefile
begin
require 'inch/rake'
Inch::Rake::Suggest.new(:inch) do |suggest|
suggest.args << "--private"
suggest.args << "--pedantic"
end
rescue LoadError
desc 'Inch rake task not available'
task :inch do
abort 'Inch rake task is not available. Be sure to install inch as a gem or plugin'
end
end
# ...
# task :default => [:spec, 'blueprint:verify', 'app_json:validate', :inch]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment