Skip to content

Commit ca527cb

Browse files
author
Alexej Yaroshevich
committed
validate-jsdoc: fix dirty line modification ;-(
Fixes #89
1 parent f4f7bdb commit ca527cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rules/validate-jsdoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports.prototype = {
130130
return;
131131
}
132132
// call tag validator
133-
commentStart.line = commentStartLine + i;
133+
commentStart._line = commentStartLine + i;
134134
validators['@' + tag.id].forEach(function(v) {
135135
v.call(_this, node, tag, fixErrLocation(addError, tag));
136136
});
@@ -149,7 +149,7 @@ module.exports.prototype = {
149149
line = relLine.line;
150150
column = relLine.column;
151151
} else {
152-
line = commentStart.line + (relLine || 0);
152+
line = commentStart._line + (relLine || 0);
153153
column = commentStart.column + (relColumn || 0);
154154
}
155155
errors.add(text, line, column);

0 commit comments

Comments
 (0)