Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
PHP CodeSniffer
Maintains PHP_CodeSniffer, a number of external standards for PHP_CodeSniffer and tooling to make it easier to use and develop for PHP_CodeSniffer.
Collective -
Host: opensource -
https://opencollective.com/php_codesniffer
- Code: https://github.com/PHPCSStandards
GH Actions: add new workflow to automate repeated task
github.com/PHPCSStandards/PHPCSUtils - 8823a07010ff89f05e13ff892d9a85f46fcd3fa3 authored over 2 years ago by Juliette <[email protected]>The `GetVersionTest` test class contains a constant which should be set to the PHPCS version num...
github.com/PHPCSStandards/PHPCSUtils - 27b6f3f4732c5063e38e839251efd7da92f13dc6 authored over 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - af6925a42da330852f4ce1e50cd686b85cdd8a7d authored over 2 years ago by jrfnl <[email protected]>
Operators::isUnaryPlusMinus(): allow for match control structures
github.com/PHPCSStandards/PHPCSUtils - 262736b1065ecdabb6c8668510ecb96f8bbddae6 authored over 2 years ago by Juliette <[email protected]>
The double arrow in PHP 8.0 match control structures has its own `T_MATCH_ARROW` token.
This tok...
PHPCSDebug/TokenList: visualize whitespace in PHP 7.3+ heredoc/nowdoc closers
github.com/PHPCSStandards/PHPCSDevTools - 29f6a5ecacc2375b7319d1c016f94a305dc210bb authored over 2 years ago by Juliette <[email protected]>
Since PHP 7.3, heredoc/nowdoc closers may be indented.
This indent can use either tabs or spaces...
WhiteSpace/PrecisionAlignment: bug fix - improved handling of heredoc/nowdoc closers
github.com/PHPCSStandards/PHPCSExtra - 82daa02d27d22c6103769fa1996e573f91201f61 authored over 2 years ago by Juliette <[email protected]>
This commit fixes two bugs:
1. When a heredoc/nowdoc closer (PHP 7.3+ flexible syntax) is indent...
WhiteSpace/PrecisionAlignment: best guess tabs vs spaces when fixing
github.com/PHPCSStandards/PHPCSExtra - 906b06d837c95ff345ed42f0b99a864c0afa683f authored over 2 years ago by Juliette <[email protected]>Enhancement to minimize fixer conflicts/speed up fixer runs.
With this change, the fixer will c...
github.com/PHPCSStandards/PHPCSExtra - da935b614a7b15127fc5ae93ff1c142041404441 authored over 2 years ago by jrfnl <[email protected]>Universal/PrecisionAlignment: minor tweaks
github.com/PHPCSStandards/PHPCSExtra - 9ec7ac769b0671f3aa725de7b88dd0af08335750 authored over 2 years ago by Juliette <[email protected]>This file is not supposed to yield errors/warnings, so the `.fixed` file is redundant.
github.com/PHPCSStandards/PHPCSExtra - 3b3b62004c819b05e13b184f1607ac95cd26a23c authored over 2 years ago by jrfnl <[email protected]>... to be more descriptive.
github.com/PHPCSStandards/PHPCSExtra - 6c961fbd5a1412bf7015e7c5de70127e9986ed76 authored over 2 years ago by jrfnl <[email protected]>GH Actions/Securitycheck: update the security checker download
github.com/PHPCSStandards/composer-installer - 231b4e82eee01f16537c8ac3fce31c1f83320c80 authored over 2 years ago by Juliette <[email protected]>The security checker binary has had a new release with improved handling for when a package has ...
github.com/PHPCSStandards/composer-installer - 09228c62d69b0b34a39b0354bf32d8b6639b4364 authored over 2 years ago by jrfnl <[email protected]>QA: make all classes `final`
github.com/PHPCSStandards/PHPCSExtra - 0abedcc8810806562a0d4f2b78ba3bd350ac22d0 authored over 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSExtra - 4f53913dc031585ed89477916abb94d64026e5c9 authored over 2 years ago by jrfnl <[email protected]>
New `Universal.WhiteSpace.AnonClassKeywordSpacing` sniff
github.com/PHPCSStandards/PHPCSExtra - 79a77b79af6da0e970f295451fb2cf41f84d3ced authored over 2 years ago by Juliette <[email protected]>Checks the amount of spacing between the `class` keyword and the open parenthesis (if any) for a...
github.com/PHPCSStandards/PHPCSExtra - 7b6780836925857782a91a861c229df48064b911 authored over 2 years ago by jrfnl <[email protected]>New `Universal.WhiteSpace.PrecisionAlignment` sniff
github.com/PHPCSStandards/PHPCSExtra - e5f0af27e8ffa540366cd5b9c58dc909af24e68d authored over 2 years ago by Juliette <[email protected]>New sniff to enforce indentation to always be a multiple of a tabstop, i.e. disallow precision a...
github.com/PHPCSStandards/PHPCSExtra - 39764307f24d25720a67fbc4cf6c96998ee20e3c authored over 2 years ago by jrfnl <[email protected]>NormalizedArrays/ArrayBraceSpacing: allow for trailing comments after array opener
github.com/PHPCSStandards/PHPCSExtra - 96bac0f9fed1e4fa4cf63052fac5740422da6c25 authored over 2 years ago by Juliette <[email protected]>... when a new line is required after the opener of a multi-line array.
This sniff should not h...
github.com/PHPCSStandards/PHPCSExtra - 740a7db48335e385420b06ef0d9ddfed3efc1867 authored over 2 years ago by jrfnl <[email protected]>New (internal) Cache and NoFileCache classes + implement use of these
github.com/PHPCSStandards/PHPCSUtils - b65fbd47c38202a667ea3930a4a51c5c8b9ca434 authored over 2 years ago by Juliette <[email protected]>This commit sets up a mechanism in the test `bootstrap.php` file to turn the cache on/off depend...
github.com/PHPCSStandards/PHPCSUtils - 7f6443b95462e2c40400289a276cc865252575cd authored over 2 years ago by jrfnl <[email protected]>Depending on the size of the text string, this function _could_ become pretty slow/performance i...
github.com/PHPCSStandards/PHPCSUtils - ca495418ac0d47267143e8154716607ca1d7cd90 authored over 2 years ago by jrfnl <[email protected]>Adjust the GH actions test workflows to run the complete test suite once with the cache turned o...
github.com/PHPCSStandards/PHPCSUtils - ecfef72f50f4252ae97d5c958348d8a673564df8 authored over 2 years ago by jrfnl <[email protected]>Depending on whether or not group use or multi-use statements are used, this method can involve ...
github.com/PHPCSStandards/PHPCSUtils - 4f301b941be6ece01d1d0894d48e3d4f58e8e4fe authored over 2 years ago by jrfnl <[email protected]>While this function will generally be _fast_ for array entries _with_ a double arrow, it will be...
github.com/PHPCSStandards/PHPCSUtils - 4397a87398763a51188e9ab69fba8b1cb70bfde2 authored over 2 years ago by jrfnl <[email protected]>These are easily the most used functions as well as the slowest functions (when dealing with lar...
github.com/PHPCSStandards/PHPCSUtils - 56e15f347ec2745a8120d977d8cd1c012ce40ba8 authored over 2 years ago by jrfnl <[email protected]>While most list only involve a few assignment, for more complex and nested list structures, spli...
github.com/PHPCSStandards/PHPCSUtils - 87170bc494f01bfb54d0a88d46c952bd762aa5ab authored over 2 years ago by jrfnl <[email protected]>
This method searches up in a file to try and find an applicable namespace declaration.
As non-sc...
While most function calls only involve a few parameters, splitting out an array into the individ...
github.com/PHPCSStandards/PHPCSUtils - a27c2f8b8ac255a6aeca3527e70cb7e3a9184299 authored over 2 years ago by jrfnl <[email protected]>
This method finds the end of a potentially multi-line text string.
While most text strings are s...
While arrow functions are generally only small snippets of code, as they don't always have a cle...
github.com/PHPCSStandards/PHPCSUtils - 88640db709f85b2c654915355acdd53bc7055e9f authored over 2 years ago by jrfnl <[email protected]>As `declare` constructs using alternative syntax can be long, determining the scope opener/close...
github.com/PHPCSStandards/PHPCSUtils - 5a5bce0a33d64fd8949cdf7857783c65e5b7de3b authored over 2 years ago by jrfnl <[email protected]>... to allow for caching the results of processing intensive utility methods.
The `Cache` class...
github.com/PHPCSStandards/PHPCSUtils - 24da15ea622d3b5121048684a8d7b2f75f181137 authored over 2 years ago by jrfnl <[email protected]>
Includes:
* Additional tests to cover this change on the off-chance that someone will use this f...
Based on a similar class I wrote for the Requests library.
If/when that class get published as ...
github.com/PHPCSStandards/PHPCSUtils - 7cad4fd0dd490df75607c3d04649131588bcc40b authored over 2 years ago by jrfnl <[email protected]>Tests: minor tweaks to allow for running tests on repeat
github.com/PHPCSStandards/PHPCSUtils - a0de510f5987b64456795e2b437353f63046d4a1 authored over 2 years ago by Juliette <[email protected]>... using the PHPUnit `--repeat` option.
Note: this option was already available in PHPUnit 4.x...
github.com/PHPCSStandards/PHPCSUtils - 2b966c110e37bb2a8f3de5b536a6a1bfa2b98af9 authored over 2 years ago by jrfnl <[email protected]>Tests: use parameter names in data provider test cases
github.com/PHPCSStandards/PHPCSUtils - 5cd4b0446fc423854091372c77f15dccd1fa788c authored over 2 years ago by Juliette <[email protected]>... when the data set array contains more than one item.
This is done to lower the cognitive lo...
github.com/PHPCSStandards/PHPCSUtils - 99a76f9a086379867b1cdea717d46fc65738c536 authored over 2 years ago by jrfnl <[email protected]>QA/Tests: various code coverage tweaks
github.com/PHPCSStandards/PHPCSUtils - cbcf363a86f93cdd3b01490a0a32ba3f48d76176 authored over 2 years ago by Juliette <[email protected]>... for code which is only in place as defensive coding, but shouldn't be reachable under normal...
github.com/PHPCSStandards/PHPCSUtils - 2ed664c55869df85dd62f9ee3b382146131d91f0 authored over 2 years ago by jrfnl <[email protected]>While the feedback shown in the `setup-php` step is awesome, it doesn't show the version of Xdeb...
github.com/PHPCSStandards/PHPCSUtils - d8263d2e9b047685d304a314cbb7ba0f787b5040 authored over 2 years ago by jrfnl <[email protected]>The functions being tested in these three test classes all use function local `static` variables...
github.com/PHPCSStandards/PHPCSUtils - 047929b5e1681f91de861a63ee0d8b21f5f7d3f1 authored over 2 years ago by jrfnl <[email protected]>PassedParameters::hasParameters(): account for upstream tokenization change for `parent`
github.com/PHPCSStandards/PHPCSUtils - 6b4a0e8a2f0b4f2019cc35ee4d8bdb5312c999ce authored over 2 years ago by Juliette <[email protected]>Upstream PR squizlabs/PHP_CodeSniffer 3546, which is included in PHPCS 3.7.0, changed the tokeni...
github.com/PHPCSStandards/PHPCSUtils - 21059b549b90e5dd86b189f76f41f74af3f46bc2 authored over 2 years ago by jrfnl <[email protected]>QA: various minor code tweaks
github.com/PHPCSStandards/PHPCSUtils - 28ac79bc34a2827176d06c25f62e2d2e6ef980b8 authored over 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - bc04066e59365b8d98b7b1f5c8337854c78af81f authored over 2 years ago by jrfnl <[email protected]>
Follow up to PR 327. This simplifies the code a little.
github.com/PHPCSStandards/PHPCSUtils - 8532ea1e89985be6c486cc6627e48f2f3a8dd09f authored over 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - 8f1710ee6d9053f4d49d08241386c881ca8362d4 authored over 2 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - a6c98f1b747b9167d0dcb452c2dc8bf780db9439 authored over 2 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - 93a484f7747627892be9037f5fabbbeb72483ad8 authored over 2 years ago by jrfnl <[email protected]>
github.com/PHPCSStandards/PHPCSUtils - a7bc760632cf6b0dae366adcf7eb4a6bc9768da1 authored over 2 years ago by jrfnl <[email protected]>
Keep the order of the methods alphabetic.
github.com/PHPCSStandards/PHPCSUtils - 5dfa6171ff8afb3c89465c7b0973879aa209ddb0 authored over 2 years ago by jrfnl <[email protected]>Tests: simplify the `@covers` tags in a couple of test files
github.com/PHPCSStandards/PHPCSUtils - fcdd2f8b944731831920ab4240a3f298a37e6001 authored over 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSUtils - c19c9eea81f51b3a21a1a646509923d87d85c2b1 authored over 2 years ago by jrfnl <[email protected]>
BCTokens::functionNameTokens(): sync with upstream
github.com/PHPCSStandards/PHPCSUtils - 18e785dfdff0466c1972f6a9db8368d58facd864 authored over 2 years ago by Juliette <[email protected]>Upstream PR squizlabs/PHP_CodeSniffer 3546, which is included in PHPCS 3.7.0, changed the tokeni...
github.com/PHPCSStandards/PHPCSUtils - b4ec049e7080b96d9bcb748527bf67c13df439f0 authored over 2 years ago by jrfnl <[email protected]>GH Actions: run linting against against ubuntu-latest
github.com/PHPCSStandards/composer-installer - 04f4e8f6716241cb9200774ff73cb99fbb81e09a authored over 2 years ago by Juliette <[email protected]>GH Actions: stop running tests against PHP 5.5/Composer 1.x on Windows (and remove work-arounds)
github.com/PHPCSStandards/composer-installer - edde4344650ecc017b9459f97e52c6caa89d88df authored over 2 years ago by Juliette <[email protected]>Plugin: improve feedback
github.com/PHPCSStandards/composer-installer - 4b7047598783ae3231960020aa74f39fc96dff57 authored over 2 years ago by Juliette <[email protected]>This method was put in place in PR 153 (commit https://github.com/PHPCSStandards/composer-instal...
github.com/PHPCSStandards/composer-installer - 3faa61ea30420d9f4901af154367c994af138a23 authored over 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/composer-installer - e0cd4fbcaa8bd0978d008998c7cc20bcbfe7d16e authored over 2 years ago by jrfnl <[email protected]>
As discussed in 181.
Fixes 181
github.com/PHPCSStandards/composer-installer - 9cf4da47bb8f8123494ff9ac45484593b5629b8c authored over 2 years ago by jrfnl <[email protected]>The `Nothing to install or update` message is confusing, as for an end-user, it may not be clear...
github.com/PHPCSStandards/composer-installer - a9d297e18dc252f487bed96e44137323aaea9f52 authored over 2 years ago by jrfnl <[email protected]>Tests: introduce generic dummy file
github.com/PHPCSStandards/PHPCSUtils - 68b9226f1159e1560fef0f3005bc23faf30c0a97 authored over 2 years ago by Juliette <[email protected]>... for tests which do need a `$phpcsFile` object, but don't have code snippet based tests.
github.com/PHPCSStandards/PHPCSUtils - c831840ae17ca6906aacdb65656eb86c04e15e66 authored over 2 years ago by jrfnl <[email protected]>UtilityMethodTestCase::resetTestFile(): stabilize the resetting
github.com/PHPCSStandards/PHPCSUtils - d66bf2b881e4c0f225e77a6abaa86b991eff2595 authored over 2 years ago by Juliette <[email protected]>GetVersionTest: update for release of PHPCS 3.7.0
github.com/PHPCSStandards/PHPCSUtils - 22d020a870f03b906edff99f50a4eefd6db9b362 authored over 2 years ago by Juliette <[email protected]>If a child test class would overload one of these properties without resetting, it could break a...
github.com/PHPCSStandards/PHPCSUtils - 6c9abd958278189706aae0381b697b9c45bbd363 authored over 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSUtils - f35da046033ede4127cc46acbd3d0ac596611936 authored over 2 years ago by jrfnl <[email protected]>
GH Actions/XSD: various minor touchups
github.com/PHPCSStandards/PHPCSDevTools - 574f43ab7c55173ad4bbade552c08e5845f57e20 authored over 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSDevTools - d0a353c1164f0f9a74aa7b08bf6b3e819c076dfb authored over 2 years ago by jrfnl <[email protected]>
... as XMLLint does not handle remote URLs well.
github.com/PHPCSStandards/PHPCSDevTools - b96ee3e5efd1ff7afb6081bdbedb390b2aad1c25 authored over 2 years ago by jrfnl <[email protected]>github.com/PHPCSStandards/PHPCSDevTools - bcdf9a18bc1f68def817856e4e031de535df6c3e authored over 2 years ago by jrfnl <[email protected]>
... and group related tasks.
github.com/PHPCSStandards/PHPCSDevTools - e13a8e09b47ee6449b235f64130f37bf67fe9962 authored over 2 years ago by jrfnl <[email protected]>* Introduces an XSD schema file to allow for validating PHPCS XML docs files, i.e. the `Standard...
github.com/PHPCSStandards/PHPCSDevTools - d6641f6a15cca2a7b99a7f9af62558588eb2c67a authored over 2 years ago by Denis Žoljom <[email protected]>New `Universal.Operators.TypeSeparatorSpacing` sniff
github.com/PHPCSStandards/PHPCSExtra - 38e83a7bb0639288a5f8447b226cdb0ccf368c93 authored over 2 years ago by Juliette <[email protected]>New `Universal.CodeAnalysis.StaticInFinalClass` sniff
github.com/PHPCSStandards/PHPCSExtra - ef25b47f9eabe0187c58dcc7c65455e91c8b8e3b authored over 2 years ago by Juliette <[email protected]>New sniff to enforce no spaces around union type and intersection type separator operators.
Inc...
github.com/PHPCSStandards/PHPCSExtra - 3f88af2828c71e962bfe552e68761fa6afe79e31 authored over 2 years ago by jrfnl <[email protected]>New sniff to detect using `static` instead of `self` in OO constructs which are `final`.
Includ...
github.com/PHPCSStandards/PHPCSExtra - ba28f736acd22c19cd38437ec6fd30cb5162452d authored over 2 years ago by jrfnl <[email protected]>Composer: up the minimum PHPCS version to 3.7.0 & remove work-arounds
github.com/PHPCSStandards/PHPCSExtra - 9d8ad670c4e8cedea1afa14c2d36e6c8273caf36 authored over 2 years ago by Juliette <[email protected]>As the minimum PHPCS version has been increased to PHPCS 3.7.0, a few work-arounds which were in...
github.com/PHPCSStandards/PHPCSExtra - 2781c613a3d60fe54227f95d406606feb6f36f79 authored over 2 years ago by jrfnl <[email protected]>PHPCS 3.7.0 has just been released and contains significant improvements to the - most notably -...
github.com/PHPCSStandards/PHPCSExtra - 2a188c2f9cdfa6028b53d51dea75961ea9d1e347 authored over 2 years ago by jrfnl <[email protected]>Numbers::getCompleteNumber(): handle invalid explicit octals consistently
github.com/PHPCSStandards/PHPCSUtils - 73c1b4d6143e7e484525cba1b19867051abf33b6 authored over 2 years ago by Juliette <[email protected]>Only the "valid" part should be included in the "complete" number.
Similar to upstream PR 3579....
github.com/PHPCSStandards/PHPCSUtils - c5a9be8844ae8644f24fa10fb6b6cd26d6c84c73 authored over 2 years ago by jrfnl <[email protected]>GetEndOfDoubleQuotedStringTest: update for upstream merge
github.com/PHPCSStandards/PHPCSUtils - 7f13ba01bba01b62b3890ad05c77ee15be660a57 authored over 2 years ago by Juliette <[email protected]>Now upstream PR 3604 has been merged, the issue this method guards against will no longer exist ...
github.com/PHPCSStandards/PHPCSUtils - d2ca45d58607937e9a26908e9be9d0fd17d7cdd1 authored over 2 years ago by jrfnl <[email protected]>FeatureComplete/Config::isColorSupported(): auto-detect GitHub Actions environment as supporting...
github.com/PHPCSStandards/PHPCSDevTools - 55c0d8fa11f9241da505221c53338cad28b7bbe7 authored over 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSDevTools - df88ec65e23db5c19aa533608250c171f6946653 authored over 2 years ago by jrfnl <[email protected]>
FeatureComplete/Config: throw an exception when an invalid target path has been passed
github.com/PHPCSStandards/PHPCSDevTools - 500f960a0cfd178db8e26c59484cc47efa6e030b authored over 2 years ago by Juliette <[email protected]>github.com/PHPCSStandards/PHPCSDevTools - 6e5d6001aa3d88510f1f1a51a0c5b7c0b0f4e68e authored over 2 years ago by jrfnl <[email protected]>
TextStrings: add new methods for working with interpolated variables
github.com/PHPCSStandards/PHPCSUtils - 692c2485b296cce24c1307e91cf30f43e83a4802 authored over 2 years ago by Juliette <[email protected]>This introduces three new methods to the PHPCSUtils\Utils\TextStrings class.
Methods:
* `getEmb...
TextStrings::getCompleteTextString(): split into three methods
github.com/PHPCSStandards/PHPCSUtils - 0db9570a7a5b3543decaacffbc4db0d5cef7a718 authored over 2 years ago by Juliette <[email protected]>This commit splits the `TextStrings::getCompleteTextString()` method into three distinct methods...
github.com/PHPCSStandards/PHPCSUtils - f9388f641ba1a50c383c313a5bfeaa968a73e24c authored over 2 years ago by jrfnl <[email protected]>