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

psr12 script #38754

Closed
brianteeman opened this issue Sep 13, 2022 · 9 comments
Closed

psr12 script #38754

brianteeman opened this issue Sep 13, 2022 · 9 comments

Comments

@brianteeman
Copy link
Contributor

Following a comment elsehwere I checked and there appear to be approx 70 files still using tabs for indentation instead of spaces.

For example
administrator\components\com_actionlogs\src\View\Actionlogs\HtmlView.php

I ran the psr12 scripts but it didnt pick up anything and I checked the ruleset.xml to make sure that these files were not being excluded.

@HLeithner am I missing something?

@HLeithner
Copy link
Member

I think the psr12 can be removed at some point (will do this later, because it also removes the jexec die).
I will look why this file is not touched... I don't see a reason based on the path...

@brianteeman
Copy link
Contributor Author

its not the only file.

i did a grep for tabs in *.php and that gave me 76 files

@HLeithner
Copy link
Member

yes I understood that, more interesting is why drone doesn't complain.

@brianteeman
Copy link
Contributor Author

drone doesnt complain about a lot of things. I keep saying that

@HLeithner
Copy link
Member

yes but it should complain about tabs

@brianteeman
Copy link
Contributor Author

thinking out loud here but its almost as if - there were no other errors in the file - so it was skipped. and that the conversion from tab to space only takes place on saving an edited file

@HLeithner
Copy link
Member

shouldn't be the case because phpcs did the analyse which should know the difference between space and tabs ;-)
I would think that the files where excluded maybe because of html in the name but that's only a guess

@brianteeman
Copy link
Contributor Author

unlikely as this is one of the other files
administrator\components\com_actionlogs\tmpl\actionlogs\default.php

@brianteeman
Copy link
Contributor Author

see #39145

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

No branches or pull requests

3 participants