coding-standards
coding-standards copied to clipboard
Joomla Coding Standards Definition
See https://travis-ci.org/joomla-framework/renderer/jobs/659706812 and [reported error lines](https://github.com/joomla-framework/renderer/blob/a4a17ee7be507607c5942d00780bf863823da13b/src/BladeRenderer.php#L51-L54)
When should a new line be inserted in XML files? In the https://github.com/joomla/joomla-cms/blob/9efee5154ca98fe1429cdfa09c1088fef47a4cfd/administrator/components/com_config/forms/application.xml#L268, the lines 274 and 278 are too many. Right? 
PHP 7.4 introduces two new magic methods, `__serialize` and `__unserialize`. Introducing support for this has broken PHPCS on the relevant repos because the `Joomla.NamingConventions.ValidFunctionName.MethodDoubleUnderscore` sniff does not know about these...
With PHP 7.2 being required going forward, I propose all class constants are required to have a visibility declared so it is explicitly clear what constants are visible in what...
Extracted from https://github.com/joomla/coding-standards/pull/109#issuecomment-268876448 - [x] In the ruleset.xml there are some pear rules with adjusted messages that we either need to accept messages reporting spaces or will need to create...
Following what other Coding standards using PHPCS are doing, We should consider dropping PHPCS 2.x support by August 31, 2018 Example of what another Coding standard is doing (details of...
Test case: ````
`php ./vendor/bin/phpcbf --extensions=php --standard=Joomla --no-patch /components/com_tz_portfolio/controllers/timeline.php` https://github.com/templaza/tz_portfolio/blob/master/site/controllers/timeline.php Trows `PHP Notice: Uninitialized string offset: -1 in /Joomla/Sniffs/Commenting/SingleCommentSniff.php on line 119` https://github.com/joomla/coding-standards/blob/6f98a125efb93abdf181fd745bf87799076fb332/Joomla/Sniffs/Commenting/SingleCommentSniff.php#L119
Hi, For me one of the most import Coding Standards is to NOT use deprecated code in my Joomla extensions. Some IDE's have build in support where they read the...