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: StatementIndentationFixer - handle monolithic php only #7864

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gharlan
Copy link
Contributor

@gharlan gharlan commented Mar 4, 2024

Fixing indentation in non-monolithic files is difficult. Multiple issues regarding this were closed as not planned (e.g. #7836 and #7754).

So I think the fixer should not try to fix non-monolithic files. It would avoid these issues.

I know there is also #6517. However, I would prefer to only disable rules that actually have issues with non-monolithic files.

@gharlan gharlan changed the title feat: StatementIndentationFixer - handle monolithic php only fix: StatementIndentationFixer - handle monolithic php only Mar 4, 2024
@coveralls
Copy link

coveralls commented Mar 4, 2024

Coverage Status

coverage: 96.018% (-0.01%) from 96.029%
when pulling 53ab963 on gharlan:statement-indentation-monolithic
into 438d5ea on PHP-CS-Fixer:master.

Copy link
Member

@Wirone Wirone left a comment

Choose a reason for hiding this comment

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

@gharlan this is a breaking change, the only way it can be merged is to provide config option for that and leave it enabled by default (to keep current behaviour), probably with a deprecation warning and behaviour switch in 4.0.

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.

None yet

3 participants