diff --git a/lib/solargraph/shell.rb b/lib/solargraph/shell.rb index c5a2f9715..f2c4705f9 100755 --- a/lib/solargraph/shell.rb +++ b/lib/solargraph/shell.rb @@ -153,6 +153,7 @@ def typecheck *files probcount += problems.length end puts "#{probcount} problem#{probcount != 1 ? 's' : ''} found#{files.length != 1 ? " in #{filecount} of #{files.length} files" : ''}." + exit 1 if probcount.positive? end desc 'scan', 'Test the workspace for problems'