Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix ignore error bug.

  • Loading branch information...
commit 4865721802133f2a11ea812624f24e1622feece5 1 parent 3498cf0
Robin authored

Showing 1 changed file with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. +6 3 gjslint.py
9 gjslint.py
@@ -79,16 +79,19 @@ def append_data(self, proc, data, end=False):
79 79 for line in data.split('\n'):
80 80 if len(line) == 0:
81 81 continue
  82 + ignored = False
82 83 for rule in self.ignore_errors:
83   - if re.search(rule, line) == None:
84   - text += line + '\n'
85   - else:
  84 + if re.search(rule, line):
  85 + ignored = True
86 86 self.ignored_error_count += 1
87 87 if self.debug:
88 88 print "text match line "
89 89 print "rule = " + rule
90 90 print "line = " + line
91 91 print "---------"
  92 + break
  93 + if ignored == False:
  94 + text += line + '\n'
92 95
93 96 self.show_tests_panel()
94 97 selection_was_at_end = (len(self.output_view.sel()) == 1 and self.output_view.sel()[0] == sublime.Region(self.output_view.size()))

0 comments on commit 4865721

Please sign in to comment.
Something went wrong with that request. Please try again.