Skip to content
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

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

stephen-carter-at-sf
Copy link
Collaborator

No description provided.

(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"
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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).

Copy link
Collaborator Author

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.

@stephen-carter-at-sf stephen-carter-at-sf merged commit b9f8764 into dev-5 Nov 20, 2024
12 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the sc/polishDetailView branch November 20, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants