Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/PHPCSStandards/PHPCSExtra
A collection of code standards for use with PHP_CodeSniffer
https://github.com/PHPCSStandards/PHPCSExtra
New sniff to disallow the use of namespace declarations without a namespace name.
Declaring a n...
53b742f648913d088b538a48769e71e1af5fe37b authored over 4 years ago by jrfnl <[email protected]>Universal/NoLeadingBackslash: add metrics
1107c9c8a63d9eba5edb1df3591edb1ef772830c authored over 4 years ago by Juliette <[email protected]>Add metrics to the sniff.
Example report:
```
PHP CODE SNIFFER INFORMATION REPORT
-------------...
New `Universal.Operators.StrictComparisons` sniff
cdbc95fbebb8202377a100028fdff908a33c0c77 authored over 4 years ago by Juliette <[email protected]>New `Universal.UseStatements.NoLeadingBackslash` sniff
909b2f9734ad352b504e6aedcbeff39f0eeab436 authored over 4 years ago by Juliette <[email protected]>New sniff to verify that a name being imported in an import use statement does not start with a ...
1fbc52611756f6b30a5cba3a32a66eb0b6027612 authored over 4 years ago by jrfnl <[email protected]>New sniff to enforce the use of strict comparisons as loose type comparisons will type juggle th...
ec6db2bb36f263de9dc6b44da2831b66e24aaffc authored over 4 years ago by jrfnl <[email protected]>DisallowInlineTabs: improve code sample in docs
426fe8f33d7ed14936df80693c958161cc169564 authored over 4 years ago by Juliette <[email protected]>06c3f0ca92e9fc56448900e6f80e39fd38e7aca8 authored over 4 years ago by jrfnl <[email protected]>
DisallowInlineTabs: bug fix / indentation vs annotation
470a3982f4218afe4596964e7352c117e04bd728 authored over 4 years ago by Juliette <[email protected]>When PHPCS annotations are part of a comment, they get a different token, which led to the sniff...
51e0f672b30e5c55f4265712de765d2149c4fbc3 authored over 4 years ago by jrfnl <[email protected]>New `Universal.WhiteSpace.DisallowInlineTabs` sniff
04f941472a7e02f277d79c6326bad3bc2f8741e0 authored almost 5 years ago by Juliette <[email protected]>New sniff to enforce using spaces for mid-line alignment.
While tab versus space based indentat...
25e84d41df475bf3195689cf85fe870a61e1e98c authored almost 5 years ago by jrfnl <[email protected]>Travis: fix the build
b76e23a45c25c8b6f87191b86fa9bf3256dfc305 authored almost 5 years ago by Juliette <[email protected]>The Travis docs say that `$TRAVIS_BUILD_STAGE_NAME` is in "proper case" form:
> TRAVIS_BUILD_ST...
b64ab634816ffa5c822b1a85a6eb899aa170e6ac authored almost 5 years ago by jrfnl <[email protected]>New `Universal.Operators.DisallowShortTernary` sniff
9e83ab00bae3261c3c9dd8814df0965de522ff21 authored almost 5 years ago by Juliette <[email protected]>New sniff to disallow using short ternaries.
While short ternaries are useful when used correct...
70ffed9b8d986e3950b91dfe6640205c36979ee6 authored almost 5 years ago by jrfnl <[email protected]>Travis: add a test run against PHPCS 4.x-dev
c00549fa893fc68c4da3f7f8057d8571bd0ad0cd authored almost 5 years ago by Juliette <[email protected]>Start testing against PHPCS 4.x-dev, for which development has started, to get early warning abo...
771827e4cd1d15f2c22b94bbd01eba7433f2f6c5 authored almost 5 years ago by jrfnl <[email protected]>New `Universal.Arrays.DisallowShortArraySyntax` sniff
54e7fafdbbfc5c8f2665a629ad7ca5a32bb2271a authored almost 5 years ago by Juliette <[email protected]>The upstream PHPCS `Generic.Arrays.DisallowShortArraySyntax` sniff does not account for short li...
0a639268a982b49a8def5951942e9c611b5882ea authored almost 5 years ago by jrfnl <[email protected]>CI: switch to fork of Parallel-lint package
d6aaf8cb4b005eb024ebff717d4e50cb13d2c8df authored almost 5 years ago by Juliette <[email protected]>... as the original appears not to be maintained anymore and is not compatible with PHP 7.4.
254d824a678d71e0d93c37cbe5200cf62660b3b9 authored almost 5 years ago by jrfnl <[email protected]>Release 1.0.0-alpha2
65e057f47429208b8c482fbf8a0670a1baf6514e authored almost 5 years ago by Juliette <[email protected]>Add a changelog
0a0e2f27ae00b43538b2d6fc4dafff26ec258146 authored almost 5 years ago by Juliette <[email protected]>422282c0cf9f3719232b176e7fb2ac4ac8256eb1 authored almost 5 years ago by jrfnl <[email protected]>
PHPCS: remove temporary exclusion
56dc639ebb28a55c9249113a2065b8b85ff17e11 authored almost 5 years ago by Juliette <[email protected]>The fix which was needed has been merged in PHPCS and released in version `3.5.4`.
0353eec841f8e7fa45e71bf2aeb2714669cbad50 authored almost 5 years ago by jrfnl <[email protected]>QA: enable code coverage recording & checking
09a3258bec789012bc10f670460a78305e342c3e authored almost 5 years ago by Juliette <[email protected]>Enable Coveralls for code coverage checking.
Includes:
* Composer: convenience script for code ...
Universal/MixedKeyedUnkeyedArray: improve defensive coding
d931865b2ccd0a09e161aa58ba489d7abf1abe46 authored almost 5 years ago by Juliette <[email protected]>... for the handling of empty array items.
Includes unit test.
7e52d2f3c5519c295b330cd5f116415b0197a5e5 authored almost 5 years ago by jrfnl <[email protected]>Universal/MixedArrayKeyTypes: add additional test
42d0b679c6dfca261a21185a3ec1534865921977 authored almost 5 years ago by Juliette <[email protected]>... to safeguard handling of undetermined array keys.
02061a685c1ef838d1749bd010977dc7cf5a35a5 authored almost 5 years ago by jrfnl <[email protected]>Universal/IfElseDeclaration: test respecting tab indentation
004fab75aedefa7ad58618cca3743006243d33c8 authored almost 5 years ago by Juliette <[email protected]>Universal/IfElseDeclaration: add additional test
79195ab0af5cb6bf693d1dd86978767b055226f9 authored almost 5 years ago by Juliette <[email protected]>Universal/DisallowUseConst: add additional test
c5c72368d1b56e8c751474b4860dc76f303e6dab authored almost 5 years ago by Juliette <[email protected]>Universal/DisallowUseFunction: add additional test
bf4bfb143e41716729d4662e13ddcec781d996b3 authored almost 5 years ago by Juliette <[email protected]>Universal/DisallowShortListSyntax: add additional test
45a50d854c8e68f226ca362dee19371560d6f0dd authored almost 5 years ago by Juliette <[email protected]>NormalizedArrays/ArrayBraceSpacing: add additional unit test
a86882e349d5066758e976cc2b38ceae2ad629ab authored almost 5 years ago by Juliette <[email protected]>To allow this to be tested, the `tabWidth` needs to be set.
705e61a01dd1e7b14533c39cb451fe01ebc817a4 authored almost 5 years ago by jrfnl <[email protected]>... to verify handling of mixed inline/braced control structures. Yes, this is valid PHP *sigh*.
ad5762c7615b7de9d18b56ee8253282349f4e1f2 authored almost 5 years ago by jrfnl <[email protected]>... to verify the error is reported on the intended line.
ed28a79d0676ed1abb97121b86db7b41f3799b9f authored almost 5 years ago by jrfnl <[email protected]>... to verify the error is reported on the intended line.
45c3221a0dd533acfdbcd77fa6c9a72cdb34878c authored almost 5 years ago by jrfnl <[email protected]>... to safeguard parse error protection within the sniff.
8cdc121d52404922c87ec0f97ce94b5986f4f897 authored almost 5 years ago by jrfnl <[email protected]>... to test exceptional situation when all checks would be turned off.
89218c183fa13738060ff1041d3fea03b0da4dbe authored almost 5 years ago by jrfnl <[email protected]>Add a README
57c14284f535e16d0dd7728b1ea92af2f3f96295 authored almost 5 years ago by Juliette <[email protected]>37097d6be9cb236ff2814dbc06702cd07ccca78a authored almost 5 years ago by jrfnl <[email protected]>
DisallowUseClass/Function/Const: make the error codes more modular.
858f78a413e57d02ebe7e35c0eb2bfb0ce70bd24 authored almost 5 years ago by Juliette <[email protected]>
This adds four new error codes to each of the sniffs:
- `FoundSameNamespace`, `FoundSameNamespac...
IfElseDeclaration: fix unintentional parse eror in test case file
7d981009c01c638db1b860a672dec60cb038c64c authored almost 5 years ago by Juliette <[email protected]>5e7786d76e1683a32f2c58ddf7949257f1ab09dc authored almost 5 years ago by jrfnl <[email protected]>
New `Universal.ControlStructures.DisallowAlternativeSyntax` sniff
6f023adc8e28dbdcd21a55bdc822e2c17f17152f authored almost 5 years ago by Juliette <[email protected]>New sniff to disallow using the alternative syntax for control structures.
Notes:
* This sniff ...
Composer: add PHPCSDevCS dependency
45c41d121be4bdd82fbb710d8da43ec3e245a79d authored almost 5 years ago by Juliette <[email protected]>The `PHPCSDev` ruleset has been split off from PHPCSDevTools to its own package.
The new `PHPCS...
01ee5f5edc117a71ba9b8e18e4241a006cabbab2 authored almost 5 years ago by jrfnl <[email protected]>IfElseDeclaration: fix unintentional parse error in the unit tests
ada74747d4144197b9add6e418642f024f68684d authored almost 5 years ago by Juliette <[email protected]>18bde833cdf1b125a338761688886fbe84cdee72 authored almost 5 years ago by jrfnl <[email protected]>
DuplicateArrayKey: fix line nr in error message
2b660547f2baa1bd1664fe1c9cbed5fe597fe9aa authored almost 5 years ago by Juliette <[email protected]>Follow up on PR 18
4ea72bfa61209cbdac8fce939552c90eae4269fc authored almost 5 years ago by jrfnl <[email protected]>IfElseDeclaration: respect tab indentation
304f66bfb987c70a38a74d23480784fe4103b7e5 authored almost 5 years ago by Juliette <[email protected]>If tabs were replaced in the file on which the sniff was used, use the original content to make ...
ca888ed4957a87dd39ad03afade5c076723a4123 authored almost 5 years ago by jrfnl <[email protected]>DuplicateArrayKey: improve error message
af3a9ab7d7f5fb3594fc0bc56812f38705b78f8d authored almost 5 years ago by Juliette <[email protected]>CLI docs: line length tweaks and one incorrect example fix
243a165e17dd42e0647d284aa738994e7bd7b142 authored almost 5 years ago by Juliette <[email protected]>The item nr doesn't really add value and can be confusing.
07fa9650804991bbcead837bfedf18159c39d484 authored almost 5 years ago by jrfnl <[email protected]>9039a7d5cce2d1fa6bde6e691bf2076cd210de06 authored almost 5 years ago by jrfnl <[email protected]>
1.0.0-alpha1
8670f1856865c37eeee63a00fd24fed6962b6202 authored almost 5 years ago by Juliette <[email protected]>New `Universal.Arrays.MixedArrayKeyTypes` sniff
183e887ea903c0a2f4c845b5f31cda9ac00e5582 authored almost 5 years ago by Juliette <[email protected]>New `Universal.Arrays.MixedKeyedUnkeyedArray` sniff
ec3d9eab26e5b18bae1c557f0fe5006379fa667e authored almost 5 years ago by Juliette <[email protected]>New `Universal.Arrays.DuplicateArrayKey` sniff
868f9e31d64c6159b43b84994b55b651b3cdc88b authored almost 5 years ago by Juliette <[email protected]>New `NormalizedArrays.Arrays.ArrayBraceSpacing` sniff
0fce87c33c126474ffc05d7c4e9a50b3b362fc7a authored almost 5 years ago by Juliette <[email protected]>New `NormalizedArrays.Arrays.CommaAfterLast` sniff
7a78dabde3edc5cb8fa1ef6d29016883ca4328f6 authored almost 5 years ago by Juliette <[email protected]>New `Universal.ControlStructures.IfElseDeclaration` sniff
352c9a5111398fa3bad559072700829617dcc63a authored almost 5 years ago by Juliette <[email protected]>New `Universal.UseStatements.DisallowUseConst` sniff
94de0819fbeecf9a5d5b2baddc85aedd3c013efd authored almost 5 years ago by Juliette <[email protected]>New `Universal.UseStatements.DisallowUseFunction` sniff
a49764e43dda369d6d1e2e011caa28b3add16869 authored almost 5 years ago by Juliette <[email protected]>New `Universal.UseStatements.DisallowUseClass` sniff
7b43ee59efca72968c8c67f1be06bef89cb5b24c authored almost 5 years ago by Juliette <[email protected]>New `Universal.Namespaces.OneDeclarationPerFile` sniff
11b6b1f922e65a95219eb0e0e06e2265b73dde49 authored almost 5 years ago by Juliette <[email protected]>New `Universal.Namespaces.DisallowCurlyBraceSyntax` sniff
401aa68f5c19be91f75d472ff893eb8f016736f8 authored almost 5 years ago by Juliette <[email protected]>New `Universal.Namespaces.EnforceCurlyBraceSyntax` sniff
889e6af57a77cf224ba8ff114de4cec2c8b6cba3 authored almost 5 years ago by Juliette <[email protected]>Best practice sniff: either have all array items with numeric keys or with string keys. Don't us...
badd720042f14803bcd88312ffe3c1697a6fab63 authored almost 5 years ago by jrfnl <[email protected]>Best practice sniff: either have all array items with keys or none. Don't use a mix of keyed and...
39148886214630f018c8e1766ac59129af3bf506 authored almost 5 years ago by jrfnl <[email protected]>Best practice sniff: detects duplicate array keys in array declarations.
Includes unit tests.
I...
Enforce consistent spacing for the open/close braces of arrays.
The sniff allows for having dif...
1365caa509230fdbd3bd01179b52a5795c4d45fc authored almost 5 years ago by jrfnl <[email protected]>Configurable sniff to enforce/forbid a comma after the last array item.
By default, this sniff ...
5163e7f43e92e8fd14a989a9418c2c97f9db53b2 authored almost 5 years ago by jrfnl <[email protected]>f51cacb6cc74e3312ae4165029ce0dfb1acc6107 authored almost 5 years ago by jrfnl <[email protected]>
New sniff to verify that `else(if)` statements with braces are on a new line.
Sister-sniff to t...
516d06be9a6a61a2e74cb3519355d53ed385162e authored almost 5 years ago by jrfnl <[email protected]>Sniff to forbid using import use statements for constants.
The sniff contains two error codes `...
4e27fd76b3a169e7864ca03c3c98dd6e606cc6ca authored almost 5 years ago by jrfnl <[email protected]>Sniff to forbid using import use statements for functions.
The sniff contains two error codes `...
84d205c93c1a96ec9f370fe0a241ffcf481a96bf authored almost 5 years ago by jrfnl <[email protected]>Sniff to forbid using import use statements for classes/traits/interfaces.
The sniff contains t...
8d5bb109cf4ade0507486813bb9ac4b94a381777 authored almost 5 years ago by jrfnl <[email protected]>New sniff to disallow the use of multiple namespaces within a file.
Includes unit tests.
Includ...
New sniff to enforce using the alternative namespace syntax using curly braces:
```php
namespace...
New sniff to disallow the alternative namespace syntax using curly braces:
```php
namespace Vend...
New DisallowShortListSyntax and DisallowLongListSyntax sniffs (includes QA setup)
efaf0ffdd934134f697cc3c4d9ba4c90252cd32e authored almost 5 years ago by Juliette <[email protected]>
This:
* Adds a PHPUnit `phpunit.xml.dist` configuration file.
* Adds a `phpunit-bootstrap.php` f...
The `PHPCSDevTools` repo offers a script to check that all sniffs are "feature complete", i.e. a...
3c3c7f10852d8d6ef8b1087310799f8378cede97 authored almost 5 years ago by jrfnl <[email protected]>
This:
* Adds a custom PHPCS ruleset which uses the `PHPCSDev` ruleset to check the code style of...
Sister-sniff to the PHPCS native `Generic.Arrays.DisallowLongArraySyntax` and the `Universal.Lis...
4d3147ca251f955e5ca316d116031a3cf6d99aa8 authored almost 5 years ago by jrfnl <[email protected]>9ef6a9598961e984ef622cf5a438bdf4c2a2354f authored almost 5 years ago by jrfnl <[email protected]>
Sister-sniff to the PHPCS native `Generic.Arrays.DisallowShortArraySyntax` sniffs to disallow th...
39c2c6db2216f191352d3bab48112d7261b5774c authored almost 5 years ago by jrfnl <[email protected]>Add the initial rulesets
b942d446e71f6a77d1cb60443fecda7021530923 authored almost 5 years ago by Juliette <[email protected]>