Skip to content

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

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

Merged
merged 5 commits into from
Feb 1, 2021

Conversation

AshesITR
Copy link
Collaborator

@AshesITR AshesITR commented Jan 31, 2021

fixes #583

  • implement
  • update tests to check lint location as well

@AshesITR
Copy link
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
Copy link
Collaborator

@MichaelChirico MichaelChirico left a comment

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