No Code Attached Yet
avatar brianteeman
brianteeman
13 Sep 2022

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?

avatar brianteeman brianteeman - open - 13 Sep 2022
avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Sep 2022
avatar HLeithner
HLeithner - comment - 13 Sep 2022

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

avatar brianteeman
brianteeman - comment - 13 Sep 2022

its not the only file.

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

avatar HLeithner
HLeithner - comment - 13 Sep 2022

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

avatar brianteeman
brianteeman - comment - 13 Sep 2022

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

avatar HLeithner
HLeithner - comment - 13 Sep 2022

yes but it should complain about tabs

avatar brianteeman
brianteeman - comment - 13 Sep 2022

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

avatar HLeithner
HLeithner - comment - 13 Sep 2022

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

avatar brianteeman
brianteeman - comment - 13 Sep 2022

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

avatar brianteeman brianteeman - change - 3 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-03 14:06:42
Closed_By brianteeman
avatar brianteeman brianteeman - close - 3 Nov 2022
avatar brianteeman
brianteeman - comment - 3 Nov 2022

see #39145

Add a Comment

Login with GitHub to post a comment