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
... as for some unfanthomable reason (short) arrays can be used as keys for short lists and if s...
c330d3e686121bdd456bcc78d61dd9a2bd124124 authored about 2 years ago by jrfnl <[email protected]>Universal/DisallowShortListSyntax: allow for tokenizer issue in PHPCS 3.7.1
80cb0d80cc2d1b3b04522ca08838b148ff413e4f authored about 2 years ago by Juliette <[email protected]>... which was fixed in 3.7.2.
The utility methods used from PHPCSUtils 1.0.0-alpha4 already tak...
9b0c43b3ac2837d77be98202aac91f821ab70279 authored about 2 years ago by jrfnl <[email protected]>Universal/AlphabeticExtendsImplements: docs/test update for enums
2c99f0172dfce8447ea423418bd0fda2e4fd3239 authored about 2 years ago by Juliette <[email protected]>Universal/DisallowUseClass: "docs" update for enums
0fae1a11b50a4f3f6d4103124129e8dd2d5686eb authored about 2 years ago by Juliette <[email protected]>Universal/[Require/Disallow]FinalClass: docs/test update for readonly classes
737975358ee4593dc02d829a287f35d683c47cfe authored about 2 years ago by Juliette <[email protected]>This commit adds tests confirming that `enum ... implements ...` statements are handled correctl...
4f655d9998c23c4ced94c1ec6ffd7140f4e5fb89 authored about 2 years ago by jrfnl <[email protected]>
This updates the phrasing referencing the different OO structures to include enums in:
* The err...
... to ensure the fixer continues to work correctly when the class is also `readonly`.
9c56dd111a737818c854d1202d8659b1fe465633 authored about 2 years ago by jrfnl <[email protected]>What with PHP 8.2 introducing `readonly` classes, the metric name `Class declaration type` would...
53b149205921909542a86f6ad6a5829472c1e1e9 authored about 2 years ago by jrfnl <[email protected]>Universal/OneStatementInShortEchoTag: improve error code
4ddaefc1d88c5763da6fe7331480869acdcb4f36 authored about 2 years ago by Juliette <[email protected]>As the name of the sniff is `OneStatementInShortEchoTag`, "Found" would imply that one statement...
1cf15cea5a7f2c1e8167a00fb63d89a6727114e5 authored about 2 years ago by jrfnl <[email protected]>Universal/ConstructorDestructorReturn: improve return type fixer
72e5dbb93bd88a03fbb7608348c7d3b120ffc9f0 authored about 2 years ago by Juliette <[email protected]>... to prevent it from removing comments.
Includes adjusting a pre-existing test to cover the c...
02dcbddcadc4fe55468baa67cb2629e4a756bd25 authored about 2 years ago by jrfnl <[email protected]>QA: always declare metric names as class constants
0e936762e7d12966bc5a51c41c372f7751ef9892 authored about 2 years ago by Juliette <[email protected]>.. to reduce the risk of metrics not recording correctly due to typos in one of the instances re...
65a092aa4740f0ad8f54f1ee5a9cf0b16a5b5829 authored about 2 years ago by jrfnl <[email protected]>NormalizedArrays/CommaAfterLast: improve fixer for flexible heredoc/nowdoc
d41862413fa8360b14b9af16eef11f3e919ddcbc authored about 2 years ago by Juliette <[email protected]>When comma's are enforced after the last entry of a (multi-line) array, the fixer would previous...
0c168223b1106bdaf5036682cb515ca5a67552fb authored about 2 years ago by jrfnl <[email protected]>:sparkles: New `Universal.Constants.ModifierKeywordOrder` sniff
4894d9f464adf646c0e4327d719dc16f5a54d8ac authored about 2 years ago by Juliette <[email protected]>:sparkles: New `Universal.Classes.ModifierKeywordOrder` sniff
d714b5830cb95e24249d7d171ef4d521ad0f47b0 authored about 2 years ago by Juliette <[email protected]>Sniff to standardize the modifier keyword order for OO constant declarations.
The sniff contain...
ad1a954381fa80a06acd0cbd11a0ebd54949ea30 authored about 2 years ago by jrfnl <[email protected]>Sniff to standardize the modifier keyword order for class declarations, what with the `readonly`...
d960fd60da47c4c9f051797a069fef2c59a60f48 authored about 2 years ago by jrfnl <[email protected]>Universal/ConstructorDestructorReturn: add auto-fixer for return type
d8916a19ae5bd71c69ffd74822ffe98895cdcc7b authored about 2 years ago by Juliette <[email protected]>The "returns a value" warning cannot be auto-fixed as it should be looked at by a developer. How...
92f65a5815922a015c9807232d9e17da8c62b420 authored about 2 years ago by jrfnl <[email protected]>DisallowInlineTabsUnitTest: skip on PHP 5.5
2c8c6187620c8367772dc1b54ef14f6b488303b5 authored about 2 years ago by Juliette <[email protected]>For some weird and unknown reason, the tests for this sniff have started to fail intermittently ...
f6606d7a4a9a2797fd3b3b1e76dee0ab6d3c1022 authored about 2 years ago by jrfnl <[email protected]>Documentation: various minor fixes
9c494e6a023c0c8ed19001d39e144bae87240301 authored about 2 years ago by Juliette <[email protected]>QA: remove some redundant/unused code & minor CS fix
fb29632b15de6a76a5cb03cb6a34713a6daeb00a authored about 2 years ago by Juliette <[email protected]>:sparkles: New `Universal.CodeAnalysis.ConstructorDestructorReturn` sniff
8304a557efd20516be5a37d77af556c5abf25248 authored about 2 years ago by Juliette <[email protected]>f8efa5dc9c184b4e9264242bf07020c01aa4bba3 authored about 2 years ago by jrfnl <[email protected]>
New sniff to verify that class constructor/destructors:
* [error] Do not have a return type decl...
9a7d54950373b427967765535730d110ecd58694 authored about 2 years ago by jrfnl <[email protected]>
510a9989bd2a26ca579974a36c1428fe0a9cc915 authored about 2 years ago by jrfnl <[email protected]>
DisallowStandalonePostIncrementDecrement: prevent looking for nullsafe object operator
7e1cae26f55ebfe042bbfdd861937b4cb850fe32 authored about 2 years ago by Juliette <[email protected]>NormalizedArrays/ArrayBraceSpacing: safeguard upstream bugfix
6c5998282ca7844330fa95ecc4a0d1566fd63ce5 authored about 2 years ago by Juliette <[email protected]>New `Universal.Files.SeparateFunctionsFromOO` sniff
49b13882370338a4cc1814588c9fed79c0e2f957 authored about 2 years ago by Juliette <[email protected]>This sniff will enforce that a file should either declare (global/namespaced) functions or decla...
5b10c0ba3141e04a2674572c19cdcad08af1e8ba authored about 2 years ago by jrfnl <[email protected]>The PHPCSUtils `Collections::$objectOperators` property has been deprecated in favour of a `Coll...
b74734d8033112f01aeb8a31e1e635d4290a20f8 authored about 2 years ago by jrfnl <[email protected]>The `SpacesFixer` in PHPCSUtils contains a bugfix for a specific situation which affected this s...
773aa930129b786fca0042dd6521aec70d31c594 authored about 2 years ago by jrfnl <[email protected]>Upgrade to PHPCSUtils 1.0.0-alpha4
fe509f998a46f89f23dcea87947c5c7f50a2427b authored about 2 years ago by Juliette <[email protected]>Take advantage of new features in PHPCSUtils 1.0.0-alpha4.
Ref: https://github.com/PHPCSStandar...
e1e2033baf9fc9a9a16b466fa4bcdb4b7287b09e authored about 2 years ago by jrfnl <[email protected]>GH Actions: few tweaks
cb7cfbffc0a5d934a2216e3ec0d9ef31ffb5c5a9 authored about 2 years ago by Juliette <[email protected]>If there is a ruleset error, the `cs2pr` action doesn't receive an `xml` report and exits with a...
e689c49ed951527d108cbb5db5b0b2cf4a23f007 authored about 2 years ago by jrfnl <[email protected]>As the `korelstar/xmllint-problem-matcher` repo now has a long-running `v1` branch, this update ...
e28cb70da4b32c6ae7af2c9259a6b1ab315e4a78 authored about 2 years ago by jrfnl <[email protected]>GH Actions: various updates
c92a2c7e41f01ec19a7193731a6f68adccccd9dd authored about 2 years ago by Juliette <[email protected]>The `xmllint-problem-matcher` action runner has released a new version which updates it to use n...
0d05c2a0fd0d2facd14cc436745fa44798bad420 authored about 2 years ago by jrfnl <[email protected]>GitHub has deprecated the use of `set-output` (and `set-state`) in favour of new environment fil...
d15f6781460136226f20005e49294e969d88298e authored about 2 years ago by jrfnl <[email protected]>Changelog: improve maintainability and source readability
edffef062036ba348ec2dfd31e012ef762fcaec6 authored about 2 years ago by Juliette <[email protected]>... by moving links to link lists under each release.
7d292221b731106e2044226ad35de5559cc8c183 authored about 2 years ago by jrfnl <[email protected]>Composer: up the minimum PHPCS version to 3.7.1
3efad2e2f924ebbbe52fd3fc163f590a8f6ccf34 authored about 2 years ago by Juliette <[email protected]>Raise the minimum supported PHPCS version to PHPCS 3.7.1, in line with PHPCSUtils.
Includes upd...
5b589341ff9b7f6ec94016ee3bed70cdfcd9d050 authored about 2 years ago by jrfnl <[email protected]>Composer/GH Actions: start using PHPCSDevTools 1.2.0
b67f494d6705bba323498f8dcacee84a76f06e60 authored over 2 years ago by Juliette <[email protected]>Includes adding the `<?xml..?>` header if it didn't exist in the file.
461a0c37935482d5195e7eee3319d8c0cfc013f7 authored over 2 years ago by jrfnl <[email protected]>PHPCSDevTools 1.2.0 introduces an XSD for the XML docs which can accompany sniffs.
This commit:...
1972280cae3583ab9c2d75a062c07703df42c422 authored over 2 years ago by jrfnl <[email protected]>Add "static analysis" Composer keyword
8324f1143f8b1a2c89d4cba869a1b7e06913ee1a authored over 2 years ago by Juliette <[email protected]>As per https://getcomposer.org/doc/04-schema.md#keywords by including "static analysis" as a key...
86f3f4cd6bec0c72a4f4cbbd868b7d37a7664f66 authored over 2 years ago by Gary Jones <[email protected]>WhiteSpace/PrecisionAlignment: bug fix - improved handling of heredoc/nowdoc closers
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
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...
da935b614a7b15127fc5ae93ff1c142041404441 authored over 2 years ago by jrfnl <[email protected]>Universal/PrecisionAlignment: minor tweaks
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.
3b3b62004c819b05e13b184f1607ac95cd26a23c authored over 2 years ago by jrfnl <[email protected]>... to be more descriptive.
6c961fbd5a1412bf7015e7c5de70127e9986ed76 authored over 2 years ago by jrfnl <[email protected]>QA: make all classes `final`
0abedcc8810806562a0d4f2b78ba3bd350ac22d0 authored over 2 years ago by Juliette <[email protected]>4f53913dc031585ed89477916abb94d64026e5c9 authored over 2 years ago by jrfnl <[email protected]>
New `Universal.WhiteSpace.AnonClassKeywordSpacing` sniff
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...
7b6780836925857782a91a861c229df48064b911 authored over 2 years ago by jrfnl <[email protected]>New `Universal.WhiteSpace.PrecisionAlignment` sniff
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...
39764307f24d25720a67fbc4cf6c96998ee20e3c authored over 2 years ago by jrfnl <[email protected]>NormalizedArrays/ArrayBraceSpacing: allow for trailing comments after array opener
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...
740a7db48335e385420b06ef0d9ddfed3efc1867 authored over 2 years ago by jrfnl <[email protected]>New `Universal.Operators.TypeSeparatorSpacing` sniff
38e83a7bb0639288a5f8447b226cdb0ccf368c93 authored over 2 years ago by Juliette <[email protected]>New `Universal.CodeAnalysis.StaticInFinalClass` sniff
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...
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...
ba28f736acd22c19cd38437ec6fd30cb5162452d authored over 2 years ago by jrfnl <[email protected]>Composer: up the minimum PHPCS version to 3.7.0 & remove work-arounds
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...
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 -...
2a188c2f9cdfa6028b53d51dea75961ea9d1e347 authored over 2 years ago by jrfnl <[email protected]>Classes/DisallowFinalClassSniff: fix incorrect recording of metrics
77937268753ae1bb5d32b5e84017a34b7f69f3a2 authored over 2 years ago by Juliette <[email protected]>cfca53a589a11299591ed0412412417efb336f0d authored over 2 years ago by jrfnl <[email protected]>
Composer: Update php-parallel-lint/php-console-highlighter requirement from ^0.5 to ^0.5 || ^1.0
749184220089ffa87e79ff0b05583247ccae320a authored over 2 years ago by Juliette <[email protected]>PHP Console Highlighter has, at long last, released version `1.0.0` and PHP Parallel Lint versio...
00f632d6c1e335b6fa3876f0aca3f9727399e096 authored over 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Add dependabot configuration file
936ab7e96aab9bf3eb219849a7a15bb0f337a634 authored over 2 years ago by Juliette <[email protected]>GH Actions: show deprecations when linting
b54b2c95a53349f34fb275d6cb0e7ecaae25556e authored over 2 years ago by Juliette <[email protected]>
This automatically enabled Dependabot to:
* Submit pull requests for security updates and versio...
While rare, there are some deprecations which PHP can show when a file is being linted.
By defau...
New `Universal.CodeAnalysis.ForeachUniqueAssignment` sniff
c2c7498be85e7b009ce03388bfb62d4eb5200311 authored almost 3 years ago by Juliette <[email protected]>Inspired by a tweet from dseguy, this new sniff will detect foreach control structures which use...
f72e8ea108334b95444c9c5eea8f3c332a764c6b authored almost 3 years ago by jrfnl <[email protected]>New `Universal.Classes.DisallowFinalClass` sniff
ffc27fb9e6826af4d02bcb99ed438870fb346b90 authored almost 3 years ago by Juliette <[email protected]>New `Universal.Classes.RequireFinalClass` sniff
8fa80c4d0d73e16ae2350eab549b04b7ccab7d9a authored almost 3 years ago by Juliette <[email protected]>New sniff to require all non-abstract classes to be declared `final`.
:warning: The included fi...
a3aa7cd19c37bba3e1772097c868b0fd8696fde4 authored almost 3 years ago by jrfnl <[email protected]>New sniff to disallow classes being declared `final`.
Includes fixer.
Includes unit tests.
Incl...
NoReservedKeywordParameterNames: more specific error indicator
dbbcabc955ad99b931d44cffe0c6c8837050c421 authored almost 3 years ago by Juliette <[email protected]>The warning for reserved keywords used in parameter names would previously be thrown on the line...
2fa8e1a1ae3ef582c03462a57c86acee1b051001 authored almost 3 years ago by jrfnl <[email protected]>NoReservedKeywordParameterNames: update for new keywords in PHP 8.1
be4e5e2f86aecc7e2f1a2dd4db243224f755c0dd authored almost 3 years ago by Juliette <[email protected]>602bf51556f86385237fab5f5a821dbc9231651b authored almost 3 years ago by jrfnl <[email protected]>
Add issue templates
36d99c5695ccfe292be8cef7c9b1ae5ee8760d73 authored almost 3 years ago by Juliette <[email protected]>7b0eee0a8bc82f1c973b914be0e3939f6a20ac01 authored almost 3 years ago by jrfnl <[email protected]>
GH Actions/CS: fix build failure
442d0036232d84c36220ba74d94def6189c72edb authored almost 3 years ago by Juliette <[email protected]>Fix failing installation of the xmllint tooling.
da5c11749545521b751a45071c3bff86e162b42b authored almost 3 years ago by jrfnl <[email protected]>