Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Filter out annoying warnings in RSpec

  • Loading branch information...
commit 613f09c157a8995d215d3378008807bc10868654 1 parent 1b3a838
@ebeigarts ebeigarts authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Commands/Validate and Save.tmCommand
View
5 Commands/Validate and Save.tmCommand
@@ -17,6 +17,11 @@ end
result = `#{compiler_ruby} -wc "$TM_FILEPATH" 2>&1`
scopes = ENV['TM_SCOPE'].split
+
+if scopes.include? 'source.ruby.rspec'
+ result.gsub!(/^.+warning: possibly useless use of == in void context$/, '')
+end
+
if scopes.include? 'source.ruby.rspec.cucumber.steps'
result.gsub!(/^.+warning: ambiguous first argument; put parentheses or even spaces$/, '')
end
Please sign in to comment.
Something went wrong with that request. Please try again.