Skip to content

Anchor to opening brace instead of closing paren in paren_brace_linter - #727

Merged
AshesITR merged 5 commits into
masterfrom
feature/583-curly_brace_linter-position
Feb 1, 2021
Merged

AshesITR merged 5 commits into
masterfrom
feature/583-curly_brace_linter-position

Conversation

@AshesITR

@AshesITR AshesITR commented Jan 31, 2021 •

Copy link
Copy Markdown
Collaborator

fixes #583

  • implement
  • update tests to check lint location as well

@AshesITR

Copy link
Copy Markdown
Collaborator Author

We could potentially test explicitly for the column number of the lints in tests, WDYT?

MichaelChirico
MichaelChirico previously approved these changes Jan 31, 2021

@MichaelChirico MichaelChirico left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, glad it's an easy fix. XPath can be great!

@MichaelChirico

Copy link
Copy Markdown
Collaborator

I'm not sure it's always ideal, but in this case I would say it's a good idea to test since the issue is explicitly about getting a better position from the linter

@AshesITR

Copy link
Copy Markdown
Collaborator Author

Okay, I'll work on that tomorrow maybe.
Fixed the XPath reversal (I overlooked the intermediate expr)

@AshesITR
AshesITR merged commit 9eaf446 into master Feb 1, 2021
@AshesITR
AshesITR deleted the feature/583-curly_brace_linter-position branch February 1, 2021 21:45
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.

curly_brace_linter column number is sub-optimal

2 participants