Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/joomla/coding-standards
Joomla Coding Standards Definition
https://github.com/joomla/coding-standards
172392aa1e02ad0c664ca3868c3e1f666f563e51 authored about 8 years ago
48422aa2dd1020e28acf078885a5738c7ad9bbb1 authored about 8 years ago
c03939795377f4ae1d02c8f37f99a219e1f2ade0 authored about 8 years ago
f8b0f2f97dfc132f32743ffde40ea12e95af3535 authored about 8 years ago
026b424497e9752be5d7de03f511c090d1a33a5b authored about 8 years ago
The tag in position 1 should be the @package tag (Joomla.Commenting.FileComment.PackageTagOrder)...
b7e190170097e9770bd1ded59f75cccb4b72d116 authored about 8 years ago5c37f197cb9de5ed2416e19b9f561bd20dcd52a2 authored about 8 years ago
d741d62cd5b559ed1702839a890a1dd9fab9b55c authored about 8 years ago
[PHPCS2] Fix some spelling and grammar in the readme
2dd462662509732638178c4a4ef7ee42f8d18311 authored about 8 years agofa3c223a13ff3f5d2cd03c5ca633d81f3ea52671 authored about 8 years ago
7271ac6c9459df801bf1c79da1fae2c716d3f2a7 authored about 8 years ago
8e7f29ae45b1898c767f981d764f5b069d5af662 authored about 8 years ago
475337cefb4940db76602525716ab758c2c08e2c authored about 8 years ago
6b224404fa6cc6d058e78267b3b813019a1f44b6 authored about 8 years ago
Expanded IDE instructions for PHPStorm
e372ab50ed488f825d8a3b8611d14e1c88a883a8 authored about 8 years agob2b95a44ced5e399e5b47ad4f28c168b0e30e9dd authored about 8 years ago
Apply fixes to PHPCS 1.5.x InstantiateNewClasses Sniff
d4ca8c3efb36e1712ffc5a6be07472d2d08863ae authored about 8 years agoUpdate for PHPCS 2.x series
5e5d8e6c0d3a6f740a24ed03360ea203d8f320eb authored about 8 years ago73fd2a6f4e4bbca6bdf05b64942906aed20e2d87 authored about 8 years ago
Stage 1 - copying markdown docs from gh-pages branch
abb398c4dab39e34fee316e2e169bb49bbb31585 authored about 8 years ago38c04ae5161d78de17d56343f8d4152a671aa21f authored about 8 years ago
53daec4b057e0dbf9c8b36d95ef59696b4dccd59 authored about 8 years ago
25b79cd0e3769775aa5a824e8f05f89b41684fa9 authored about 8 years ago
4db9e06f02dcdcc9b6584b9465de93b70df57837 authored about 8 years ago
87079ea108a13832dc86492d5c47b20e156d7637 authored about 8 years ago
$namespaced is the token ID (an INT), so we need to check the type using $tokens[$namespaced]['c...
b5059f405de39db0890be12c85c9cfa946c32cb6 authored over 8 years agoImproved Check for a namespace token, notes if certain other tokens are found so we can move on....
16827b092325162e9416d691355190f0fdfc5f50 authored over 8 years agoIgnore the @package tag requirement for namespaced code, require it otherwise.
d3e2f8dfbafb8fd17400beaa332f74b4c37c6416 authored over 8 years agoFix the path for phpstrorm thanks @yvesh
acb96f777e5e4bb5b14e7aa2b406b99524522268 authored over 8 years agoe1930781ee84582c45f5add94db856ee03dda49d authored over 8 years ago
PEAR.ControlStructures.MultiLineCondition.CloseBracketNewLine should not be enforced
remove
...
eb379b011d13869ea2371f8be9525d2f0af67467 authored over 8 years ago
Try to keep brace specific checks in the ControlStructuresBrackets sniff
bb00b22e563c093a9958024e4c2d6281247306d9 authored over 8 years ago4469ae710b6b16f823bc27a883cd3586c0a28788 authored over 8 years ago
21e81407f74bb833d035fd3b69fcb8df78e7b906 authored over 8 years ago
Add PHP 7.1 to tests as allowed failure
seperate PHPCS and PHPUnit tests
continue work fixing co...
fixed file wasn't fixed
3dd8efef05323122daf928b261b0d675e3384352 authored over 8 years ago5cdd6a5a9daef9d89f29945b76ee02a48eb3a151 authored over 8 years ago
Add note about type casting Integer field values
117f18e88005e828a3904c3f75a4797745584c07 authored over 8 years agob954687d7c14e0009de67f4f301fce29979eab64 authored over 8 years ago
Add unit tests for new instantiation instances of classes encapsulated
in a variable
The followi...
Integer field values should also be type cast to `(int)`.
af49359b8d967690c49ec982e423dea0984188ad authored over 8 years agoMissing `$` in front of variable name.
9fa39ece65054dc0322bac1c4f9474e1d2a2827c authored over 8 years ago
Closing parenthesis of a multi-line function call must be on a line by itself
so remove `<exclu...
Provides a method to allow Short Array Syntax for select projects that don't support php 5.3
Th...
1ef15923bec6f85924cd4080cdbdf1e6168ab46f authored over 8 years ago
```xml
<exclude name="Joomla.NamingConventions.ValidFunctionName.FunctionNoCapital"/>
<exclude...
27ac38e3ea706f0832984cd3622bee90545d6b55 authored over 8 years ago
0af3426d32392f3222893c2400aded883e2e8945 authored over 8 years ago
0ca6147e9ac045d0c3d8c340a9aea25a2a369344 authored over 8 years ago
try spaces again
4f7d0f86d92a25bd535e3e29a6736700ab5160d4 authored over 8 years agotry with spaces rather than tabs, the spaces to tabs are mostly corrected via other sniffs
32cdf25c6d3c657ac0d567b4559c6c5a1ada2ada authored over 8 years ago6bf1520d1a40bc853277688e83e4c414b84e88ad authored over 8 years ago
14b8b1d346eb563eea23bab3fc3d6ee9d4a6d113 authored over 8 years ago
This should fix the sniff processing to give the correct space counts for the tabs.
5ee709e3dc6d49752d2718edfb5ee5e6c6789e13 authored over 8 years ago4aef8e402a81ff6ccdf196b31e21bc23e2c240ac authored over 8 years ago
attempt fixing the unit test issue
ce830beea806644591c93a84bbd9a2c3ef038b2c authored over 8 years agoGeneric.WhiteSpace.ScopeIndent is the correct sniff as in the PEAR standard, you don't indent CA...
5c8751b4fd902ec02a6620260d5c31df50785d94 authored over 8 years agocorrect the file indentings
911e4ae41f2597423fbde5c774410480a7a29b00 authored over 8 years ago356677e09ea7932282b2c7369a05a15cd7df2aa5 authored over 8 years ago
e0bec1c37b352936f9fb6be02aec29bbba397633 authored over 8 years ago
Comment must start with a capital letter; found "c"
Please consider an empty line before the if...
0f80f886e5fed4c1fce693b949d5efbb1ea5d04c authored over 8 years ago
41af70a21a8ff0ce714a5ca84008bac5566ec605 authored over 8 years ago
a064abdb9808e6d6458a3df0849c1c0b8f588dd2 authored over 8 years ago
8530445b785542484aadd66d94fd43c4c642b01e authored over 8 years ago
66d710aa57a00d9ac169e3162625bea85d4517f4 authored over 8 years ago
b6f6da48a2e2c63c57e88203dd1b4c369c7cda51 authored over 8 years ago
f93f0250809c60c529327d09ec34d00059fbf3e8 authored over 8 years ago
7e5d38bbaf38a9ac1c68e840103e8b45c616897e authored over 8 years ago
fd323bcbcb5d7e74fddff886a8a9a9fe58f275a7 authored over 8 years ago
25dec17d25a47227decf071be13cab0ca7ddb07c authored over 8 years ago
1308589e03bcaf55164eccf06b2264b2b7ffb6c2 authored over 8 years ago
fb5e6efa90bd28d3ee2af9e6fd7dc2aa43ce6b82 authored over 8 years ago
f08a386083cc75187aeda8186e5ec4d1b8bb6891 authored over 8 years ago
echo $a; or echo ($a); is allowed
558bce5bb4c01b986e0ec517fea9488b86400b68 authored over 8 years agocorrect the expected to be indent of tab=1
bca40e7a53ea28c2dbca76ad6b1154f9be9353d4 authored over 8 years agoThese are space based sniffs and need `<property name="indent" value="4"/>` i.e 4 spaces = 1 tab
d9312610a20f8d40f27cb0dcbb1492732916ed45 authored over 8 years agoWe get false positives if this is not `$indent = 4` meaning 4 spaces = 1 tab
06cf889e887cc390f5f4f55239ef901a01582694 authored over 8 years agoMost of the sniffs written for PHP_CodeSniffer do not support the usage of tabs for indentation ...
25b73752778cec682e91baa88f38aed289977eb5 authored over 8 years agob722b2676bc86676e1f64770f72dd93b3aad3cbb authored over 8 years ago
7a9e57188f1ced577fc8193e4cf5d8f25238a853 authored over 8 years ago
Fix "Class" typo
c903e6a5ca807e66fb1c16b2d492dfb30bcb17a3 authored over 8 years ago8591a50dbe6710ee9ab87fd377f376bb6689a1b9 authored over 8 years ago
A formatting change, Add an extra return before ## to improve readability and help visually spec...
74c475b438eb095ccfd0275d95671c7cf63319a5 authored almost 9 years agoRemove unnecessary duplication & add try/catch...
5650091f977f86556ddd92f7a0fd13cd7ab99ab2 authored almost 9 years ago49933a2624d954cc46763d4c05dafa180e38e8cf authored almost 9 years ago
empty arrays are a valid parameter too
13d9a5287432f54a0f2db79b9cb1e08ebcce2976 authored almost 9 years ago
- Reference the chapter on DocBlocks rather than duplicating content.
- Add a try-catch example...
Add @throws requirement to methods DocBlock
269b50ec4ec2b609ec276947f5bfd4d59faaae71 authored almost 9 years agob7cfde2b129c6a022ddc53520d147adb9893dc28 authored almost 9 years ago
`echo` should be allowed to be used with or without parenthesis
11734f669423e3d8d832c0510e26056d3a02a3e3 authored almost 9 years agoRemove T_ECHO fixes #130
8e0f801ba7bcb70c55c4b3e66efc2cdbe414f6bd authored almost 9 years ago`echo` should be allowed to be used with or without parenthesis
e3f9986f1b2aaa48ac4d64e0e15da25d3a6678f5 authored almost 9 years ago
Generic.Arrays.DisallowShortArraySyntax should be included until php5.3 support is ended.
Cons...
PSR-5 proposal indicates that the @throws tag is "RECOMMENDED" for every occurrence of an except...
2203d809f80c5b5ab597435bce84bbe1e6483e90 authored almost 9 years agofixer is correctly applying tabs and not spaces so just the message is wrong.
00391f631ab4319b348931108674cf0c26803b33 authored almost 9 years agoPEAR.Functions.FunctionDeclaration.BraceOnNewLine returns a result opposite of the desired resul...
15b69fcf9309a86dd49187d3e7be9880fa8cb587 authored almost 9 years agooverride .close span class from bootstrap
f2ee1b38091683d5fc7d508ebcbc33db3d9831d9 authored almost 9 years agoThe closing tags on all the code samples at https://joomla.github.io/coding-standards/?coding-st...
b30ec5a5f324066acd3b7a207a7ec2863a2f506e authored almost 9 years ago