Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
rubocop-report.json

/Gemfile.lock
.idea
.irb_history
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--require spec_helper.rb
--color
--format documentation
27 changes: 12 additions & 15 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

task default: %i[spec bundle:audit rubocop yardstick verify_measurements yard build]
task default: %i[spec bundle:audit rubocop yardstick:audit yardstick:coverage yard build]

# Bundler Audit

Expand All @@ -20,13 +20,7 @@ require 'bump/tasks'

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new do |t|
t.rspec_opts = %w[
--require spec_helper.rb
--color
--format documentation
]
end
RSpec::Core::RakeTask.new

CLEAN << 'coverage'
CLEAN << '.rspec_status'
Expand Down Expand Up @@ -55,14 +49,17 @@ end
CLEAN << '.yardoc'
CLEAN << 'doc'

# yardstick
# Yardstick

require 'yardstick/rake/verify'
Yardstick::Rake::Verify.new do |verify|
verify.threshold = 100
desc 'Run yardstick to show missing YARD doc elements'
task :'yardstick:audit' do
sh "yardstick 'lib/**/*.rb'"
end

desc 'Run yardstick to check yard docs'
task :yardstick do
sh "yardstick 'lib/**/*.rb'"
# Yardstick coverage

require 'yardstick/rake/verify'

Yardstick::Rake::Verify.new(:'yardstick:coverage') do |verify|
verify.threshold = 100
end