-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Use tabs instead of spaces #4454
Conversation
Probably a good move. Accessibility is one of the most important factors in a decision like this. Most other arguments pro and contra tabs vs spaces are stupid in comparison. There are only two potential issues we would need to check first:
$thisIsAVariable = 'With a value that spans over multiple lines.' .
'This would break with tabs because it would require mixed indentation.'; Also not sure if we should update the files over time. We would have to disable all linting with Prettier and PHP-CS-Fixer. Also it will litter all PRs with whitespace changes that distract when reviewing the PR. |
Apparently there is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the XML files (PHPMD, PHPUnit, Psalm) use twice the amount of tabs as would be necessary. E.g. the first level uses two tabs.
The PHPMD file is also an example for what I meant with the "extra indentation". The attributes for the root tag <ruleset>
are indented to match the previous lines. I think these should just be one attribute per line without the artificial breaks in the attr values. And then all attributes just indented with one tab.
This PR …
I would suggest to update the config settings in this PR, update our local editors... but only update the actual files as we go along (would be a huge PR otherwise).
Refactored
Ready?
Unit tests for fixed bug/featureIn-code documentation (wherever needed)For review team