Sha256: 27e7b02d424deadb815b72aea158381266edb6892ed1fcb5806ba96ba61bab9b

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

require 'bundler/gem_tasks'

require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'reek/rake/task'
require 'forspell/cli'
require 'mdl'
require 'inch/rake'

RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new(:rubocop)
Reek::Rake::Task.new
Inch::Rake::Suggest.new

PATHS_TO_SPELLCHECK = ['.'].freeze
PATHS_FOR_MDL = ['README.md'].freeze

desc 'Run self spellchecking'
task :spellcheck do |_task|
  Forspell::CLI.new(PATHS_TO_SPELLCHECK).call
end

desc 'Run markdown linter'
task :mdl do |_task|
  MarkdownLint.run(PATHS_FOR_MDL)
end

# TODO: spellcheck and mdl tasks stop execution even with successful result
# should be fixed someday
task default: %i[rubocop reek inch spec spellcheck mdl]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
benchin-0.1.0 Rakefile