?
avatar mbabker
mbabker
16 Jun 2018

We should add code linting to our CI integrations to scan over changed files to ensure the syntax remains compatible with our lowest supported PHP version. It's way too easy to introduce newer version syntax into files that have zero test coverage where the only way to detect issues is going to be thorough reading of diffs or one of the low number of users on old versions raising an issue.

There's already a lint command in build.xml which will scan the full repo, in theory it should be possible to get changed files in a pull request and run php -l on that list of files.

avatar mbabker mbabker - open - 16 Jun 2018
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jun 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Jun 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jun 2018
Category Unit Tests
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jun 2018
Status New Discussion
avatar mbabker
mbabker - comment - 23 Jul 2018

We have enough CI related issues without adding to the wishlist.

avatar mbabker mbabker - change - 23 Jul 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-07-23 19:08:19
Closed_By mbabker
avatar mbabker mbabker - close - 23 Jul 2018
avatar wojsmol
wojsmol - comment - 2 Aug 2018

@mbabker there even better way then php -l see this project.

avatar mbabker
mbabker - comment - 2 Aug 2018

Well aware, I oversee the Joomla compatibility ruleset for that ?

avatar wojsmol
wojsmol - comment - 2 Aug 2018

Then what besides the general problems with CI blocks us from using this project to achieve the purpose described in this issue?

avatar mbabker
mbabker - comment - 2 Aug 2018

It doesn't support PHPCS 1.x and aside from the work @photodude has been doing there is very little effort in moving the CMS from using the long deprecated PHPCS 1.x releases to PHPCS 2.x or 3.x.

avatar wojsmol
wojsmol - comment - 20 Aug 2018

@mbabker PHPCS fixer 2.0 config in merged to 4.0-dev via #18877.

avatar mbabker
mbabker - comment - 20 Aug 2018

PHP-CS-Fixer is a different tool from PHP_CodeSniffer (commonly acronymed as PHPCS).

avatar wojsmol
wojsmol - comment - 20 Aug 2018

But we are one step closer.

Add a Comment

Login with GitHub to post a comment