File tree Expand file tree Collapse file tree 3 files changed +17
-15
lines changed
Expand file tree Collapse file tree 3 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 1414rubocop-report.json
1515
1616/Gemfile.lock
17+ .idea
18+ .irb_history
Original file line number Diff line number Diff line change 1+ --require spec_helper.rb
2+ --color
3+ --format documentation
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- task default : %i[ spec bundle:audit rubocop yardstick verify_measurements yard build ]
3+ task default : %i[ spec bundle:audit rubocop yardstick:audit yardstick:coverage yard build ]
44
55# Bundler Audit
66
@@ -20,13 +20,7 @@ require 'bump/tasks'
2020
2121require 'rspec/core/rake_task'
2222
23- RSpec ::Core ::RakeTask . new do |t |
24- t . rspec_opts = %w[
25- --require spec_helper.rb
26- --color
27- --format documentation
28- ]
29- end
23+ RSpec ::Core ::RakeTask . new
3024
3125CLEAN << 'coverage'
3226CLEAN << '.rspec_status'
5549CLEAN << '.yardoc'
5650CLEAN << 'doc'
5751
58- # yardstick
52+ # Yardstick
5953
60- require ' yardstick/rake/verify '
61- Yardstick :: Rake :: Verify . new do | verify |
62- verify . threshold = 100
54+ desc 'Run yardstick to show missing YARD doc elements '
55+ task :'yardstick:audit' do
56+ sh "yardstick 'lib/**/*.rb'"
6357end
6458
65- desc 'Run yardstick to check yard docs'
66- task :yardstick do
67- sh "yardstick 'lib/**/*.rb'"
59+ # Yardstick coverage
60+
61+ require 'yardstick/rake/verify'
62+
63+ Yardstick ::Rake ::Verify . new ( :'yardstick:coverage' ) do |verify |
64+ verify . threshold = 100
6865end
You can’t perform that action at this time.
0 commit comments