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

Tab character in file causes unexpected indention in docblock #7210

Closed
eigan opened this issue Jun 6, 2022 · 2 comments · Fixed by rectorphp/rector-src#2442
Closed

Tab character in file causes unexpected indention in docblock #7210

eigan opened this issue Jun 6, 2022 · 2 comments · Fixed by rectorphp/rector-src#2442
Labels

Comments

@eigan
Copy link

eigan commented Jun 6, 2022

Bug Report

Subject Details
Rector version dev-main 07acf20

Some wild guess would be that rector assumes we use tab and then choose tabs for the docblock.

Minimal PHP Code Causing Issue

https://getrector.org/demo/3a219f06-7de7-419e-877c-5a20577d2629

Expected Behaviour

The docblock uses space as the rest of the file and docblock uses.

@eigan eigan added the bug label Jun 6, 2022
@samsonasik
Copy link
Member

that's known drawback https://github.com/rectorphp/rector#known-drawbacks . You can use coding standard tool to tidify that.

@TomasVotruba
Copy link
Member

The tab is actually not at the start line, but inside the code. So it should be ignored.

I'm working on configurable solution in: rectorphp/rector-src#2442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants