Skip to content

Commit

Permalink
Merge pull request #6 from nebulab/add-hint-to-task
Browse files Browse the repository at this point in the history
Add line number hint to rake task
  • Loading branch information
FrancescoAiello01 authored Sep 20, 2021
2 parents bb9db4f + b852cd1 commit 9ae6311
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/erb/linter/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def initialize(*args, &block)

def run
success = ERB::Linter::Checker.check_files(glob, root: root, tmpdir: tmpdir)
puts 'Hint: Line numbers reflect compiled temp files, not necessarily the original line numbers.'
puts " The compiled files are stored in this directory: #{tmpdir}"

exit(success)
rescue ERB::Linter::Error => error
Expand Down

0 comments on commit 9ae6311

Please sign in to comment.