Skip to content

Commit

Permalink
Update 'rake test:md'
Browse files Browse the repository at this point in the history
Add the list of enabled rules to the output
  • Loading branch information
dshevtsov committed Feb 18, 2020
1 parent efb6bbc commit 069fa60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ namespace :test do
desc 'Test Markdown style with mdl'
task :md do
puts 'Testing Markdown style with mdl ...'.magenta
print 'List the rules: $ '.magenta
sh 'bin/mdl -l --style=_checks/styles/style-rules-prod'
puts 'Linting ...'.magenta
output = `bin/mdl --style=_checks/styles/style-rules-prod --ignore-front-matter --git-recurse -- .`
puts output.yellow
abort "The Markdown linter detected #{output.lines.count - 2} issue(s)".red unless output.empty?
Expand Down

0 comments on commit 069fa60

Please sign in to comment.