Permalink
Browse files

Filter out annoying warnings in RSpec

  • Loading branch information...
1 parent 1b3a838 commit 613f09c157a8995d215d3378008807bc10868654 @ebeigarts ebeigarts committed Apr 5, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 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

0 comments on commit 613f09c

Please sign in to comment.