Skip to content

Commit

Permalink
fix: reporter node position
Browse files Browse the repository at this point in the history
  • Loading branch information
araujogui committed Feb 20, 2025
1 parent 7dfb6dc commit 762adeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/linter/reporters/console.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const levelToColorMap = {
*/
export default issue => {
const position = issue.location.position
? ` (${issue.location.position.start}:${issue.location.position.end})`
? ` (${issue.location.position.start.line}:${issue.location.position.end.line})`
: '';

console.log(
Expand Down
3 changes: 1 addition & 2 deletions src/linter/rules/invalid-change-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export const invalidChangeVersion = entry => {
message: LINT_MESSAGES.invalidChangeVersion.replace('{{version}}', version),
location: {
path: entry.api_doc_source,
line: entry.yaml_position.start.line,
column: entry.yaml_position.start.column,
position: entry.yaml_position,
},
}));
};

0 comments on commit 762adeb

Please sign in to comment.