Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #177 from mvidner/syntax-error-without-return
Browse files Browse the repository at this point in the history
Do not stop parsing all files on a syntax warning (#148).
  • Loading branch information
Yorick Peterse committed Jun 8, 2016
2 parents 826f4b0 + 0924ca6 commit a535662
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/ruby-lint/runner.rb
Expand Up @@ -30,12 +30,6 @@ def analyze(files)

parser.consumer = proc do |diag|
report_diagnostic(diag, report)

# FIXME: there's a bug in the pure Ruby version of Racc causing it hang
# after detecting a syntax error (it stays forever in recovery mode).
# To work around this we'll have to bail out after detecting the first
# syntax error.
return presenter.present(report)
end

files.each do |file|
Expand Down

0 comments on commit a535662

Please sign in to comment.