-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CHANGE: @W-17272495@: Polish detail view output #1678
Conversation
...s/comparison-files/lib/viewers/ResultsViewer.test.ts/one-multilocation-violation-details.txt
Outdated
Show resolved
Hide resolved
(main) __PATH_TO_FILE_Z__:2:1 This is a comment at Location 2 | ||
__PATH_TO_FILE_A__:1:1 This is a comment at Location 3 | ||
resources: https://example.com/stub1RuleA | ||
(main) __PATH_TO_FILE_Z__:2:1 "This is a comment at Location 2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this just 2:1
instead of 2:1-7
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. The way Core is currently implemented over at https://github.com/forcedotcom/code-analyzer-core/blob/dev/packages/code-analyzer-core/src/results.ts#L72 is to say that we do not actually return an endColumn if it doesn't have an associated endLine since it'll force clients to each make their own decisions as to what to do. It's just easier to that engines must supply endLine if they want to supply endColumn.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then why does this violation have an endColumn
at all in the declaration? (see 149 of the test file).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't - it's just a sanity check in case we ever change what the core module does... I want the test to fail somehow so we know what to do with it.
...s/comparison-files/lib/viewers/ResultsViewer.test.ts/one-multilocation-violation-details.txt
Outdated
Show resolved
Hide resolved
377c5b0
to
065608a
Compare
No description provided.