Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #12 from ggilder/master

Filter out annoying warnings on Cucumber step files
  • Loading branch information...
commit e22fae36af071e9fc80c5e02f0a655ddbc82723c 2 parents 74683ec + f932a15
@radar radar authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Commands/Validate and Save.tmCommand
View
6 Commands/Validate and Save.tmCommand
@@ -15,6 +15,12 @@ if compiler_ruby.length == 0
end
result = `#{compiler_ruby} -wc "$TM_FILEPATH" 2>&1`
+
+scopes = ENV['TM_SCOPE'].split
+if scopes.include? 'source.ruby.rspec.cucumber.steps'
+ result.gsub!(/^.+warning: ambiguous first argument; put parentheses or even spaces$/, '')
+end
+
if result =~ /:(\d+):/
print result
TextMate.go_to :line => $1
Please sign in to comment.
Something went wrong with that request. Please try again.