joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

psr12 script

Open brianteeman opened this issue 3 years ago • 8 comments

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?

brianteeman avatar Sep 13 '22 20:09 brianteeman

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...

HLeithner avatar Sep 13 '22 21:09 HLeithner

its not the only file.

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

brianteeman avatar Sep 13 '22 21:09 brianteeman

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

HLeithner avatar Sep 13 '22 21:09 HLeithner

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

brianteeman avatar Sep 13 '22 21:09 brianteeman

yes but it should complain about tabs

HLeithner avatar Sep 13 '22 21:09 HLeithner

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

brianteeman avatar Sep 13 '22 21:09 brianteeman

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

HLeithner avatar Sep 13 '22 21:09 HLeithner

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

brianteeman avatar Sep 13 '22 21:09 brianteeman

see #39145

brianteeman avatar Nov 03 '22 14:11 brianteeman