Skip to content

Commit

Permalink
fix(require-jsdoc): have reporting cover entire first line of funct…
Browse files Browse the repository at this point in the history
…ion so more visible; (causes `endLine` to be removed); #386
  • Loading branch information
brettz9 committed Sep 27, 2019
1 parent f77144d commit 3558377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rules/requireJsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default {

const report = () => {
const loc = {
end: node.loc.start,
end: node.loc.start + 1,
start: node.loc.start,
};
context.report({
Expand Down
2 changes: 1 addition & 1 deletion test/rules/assertions/requireJsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default {
}`,
errors: [
{
endLine: 2,
endLine: undefined,
line: 2,
message: 'Missing JSDoc comment.',
},
Expand Down

0 comments on commit 3558377

Please sign in to comment.