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

fix: Alignment fixer should use indentation character from sourceCode. #412

Merged
merged 3 commits into from
Oct 29, 2019

Conversation

kaidjohnson
Copy link
Contributor

addresses #368

There were a few other areas where ' '.repeat is used that probably need to be looked into further, as I believe they apply to rules other than "check-alignment".

@gajus
Copy link
Owner

gajus commented Oct 28, 2019

Please add a test case.

@gajus gajus requested a review from brettz9 October 28, 2019 17:48
@kaidjohnson
Copy link
Contributor Author

Uncovered some inconsistency with how each line trimmed before evaluation while working through the test. Let me know if there's anything else with this update that should be addressed.

- Testing: Add test cases for jsdoc blocks flush at beginning of line
@brettz9
Copy link
Collaborator

brettz9 commented Oct 29, 2019

Nice work! I've added a couple test cases to ensure we're ok flush at the beginning of a line, and those tests pass as well.

If you may be so inspired to help with any other indentation-impinging issues (e.g., #369, #199 , #211, or the check-indentation fixer (to strip indents) in #336), it would be most appreciated as well!

@brettz9 brettz9 merged commit fc46821 into gajus:master Oct 29, 2019
@gajus
Copy link
Owner

gajus commented Oct 29, 2019

🎉 This PR is included in version 15.12.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Oct 29, 2019
@kaidjohnson kaidjohnson deleted the fix/alignment-fixer branch October 29, 2019 18:04
This was referenced Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants