Skip to content

Commit 3558377

Browse files
committed
fix(require-jsdoc): have reporting cover entire first line of function so more visible; (causes endLine to be removed); #386
1 parent f77144d commit 3558377

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rules/requireJsdoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export default {
174174

175175
const report = () => {
176176
const loc = {
177-
end: node.loc.start,
177+
end: node.loc.start + 1,
178178
start: node.loc.start,
179179
};
180180
context.report({

test/rules/assertions/requireJsdoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export default {
263263
}`,
264264
errors: [
265265
{
266-
endLine: 2,
266+
endLine: undefined,
267267
line: 2,
268268
message: 'Missing JSDoc comment.',
269269
},

0 commit comments

Comments
 (0)