coding-standards icon indicating copy to clipboard operation
coding-standards copied to clipboard

Joomla Coding Standards Definition

Results 41 coding-standards issues
Sort by recently updated
recently updated
newest added

Let's consider allowing the `{@inheritdoc}` tag. This really helps when extending classes, you don't have to rewrite whole docblock and keep it up to date with docblock changes in base...

code sniffer

Is there currently a way to avoid errors when using a inline php syntax? Like this: ``` php Yes ```

See the current report at: http://joomla-projects.github.io/jcms-codestyle/

The https://github.com/joomla/coding-standards/blob/master/Sniffs/Classes/InstantiateNewClassesSniff.php sniff is doing a lot of comparisons inside, but if it really checks that no `()` are present after `new SomeClass` then why it's not checking that. 1....

There are a few formats that seem to be gaining popularity. See the following examples: ``` php // Inline array. $foo = bar($arg1, array( 'one', 'two', 'three', ), $arg3); //...

question
code sniffer

Some improved documentation would be nice to have here: https://github.com/joomla-projects/jcms-codestyle#joomla-cms-codestyle-report Also Joomla could be added as a submodule as mentioned at: https://github.com/mbabker/jcms-codestyle/pull/1

http://pear.php.net/manual/en/package.php.php-codesniffer.coding-standard-tutorial.php Study the current situation and the differences between the Framework and the CMS specific ruleset

Our company are translating Joomla coding standard to Chinese Traditional. https://github.com/asika32764/Joomla-Coding-Stanard-Chinese Could we add this language (zh-TW) to this repo and gh-pages branch?

manual

Sometimes putting a comment right inside the control structure is (IMHO) the best place: ``` PHP // Perform tests if ($foo // Testing phase 1 && $foo->test1() // Testing phase...

code sniffer

Do we need to version out the IDE xml's? Or are we assuming every dev will have the latest version of their IDE of choice? @betweenbrain you have https://github.com/betweenbrain/phpstorm-joomla-code-style/blob/master/Joomla.xml which...

IDE support