Skip to content
Snippets Groups Projects
Commit 28b966e3 authored by Henning Glawe's avatar Henning Glawe
Browse files

always gather match statistics

parent f3d8babb
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,6 @@ class Annotator(object): ...@@ -41,8 +41,6 @@ class Annotator(object):
self._update_annotate_format() self._update_annotate_format()
def annotate(self, match, line, matcher, targetStartEnd): def annotate(self, match, line, matcher, targetStartEnd):
if not self.annotateFile:
return 1
# classify match # classify match
full = match and match.start() == 0 and match.end() == len(line) full = match and match.start() == 0 and match.end() == len(line)
local_ignore = False local_ignore = False
...@@ -76,6 +74,10 @@ class Annotator(object): ...@@ -76,6 +74,10 @@ class Annotator(object):
else: else:
self.counter['unmatched'] += 1 self.counter['unmatched'] += 1
# don't write to file unless it is there
if not self.annotateFile:
return 1
# setup match label # setup match label
matchlabel = '' matchlabel = ''
if local_ignore: if local_ignore:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment