Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mediawiki/mediawiki-codesniffer requirement from 42.0.0 to 43.…
…0.0 (#78) Updates the requirements on [mediawiki/mediawiki-codesniffer](https://github.com/wikimedia/mediawiki-tools-codesniffer) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/HISTORY.md">mediawiki/mediawiki-codesniffer's changelog</a>.</em></p> <blockquote> <h2>43.0.0 / 2024-01-29</h2> <h3>New sniffs</h3> <ul> <li>Added the following sniffs from the PHPCSExtra standards: (Daimona Eaytoy) <ul> <li><code>Universal.Constants.LowercaseClassResolutionKeyword</code>: Enforce lowercase <code>::class</code></li> <li><code>Universal.Constants.UppercaseMagicConstants</code>: Enforce uppercase magic constants</li> <li><code>Universal.ControlStructures.DisallowAlternativeSyntax</code>: Disallow alternative PHP syntax</li> <li><code>Universal.Lists.DisallowLongListSyntax</code>: Disallow the long <code>list()</code>syntax</li> <li><code>Universal.Operators.TypeSeparatorSpacing</code>: Forbid spaces in union and intersection types</li> <li><code>Universal.UseStatements.KeywordSpacing</code>: Enforce a single space around keywords in <code>use</code> statements</li> <li><code>Universal.UseStatements.LowercaseFunctionConst</code>: Enforce lowercase <code>function</code> and <code>const</code> in <code>use</code> statements</li> <li><code>Universal.UseStatements.NoUselessAliases</code>: Forbids aliases in <code>use</code> statements where the alias is the same as the original name</li> <li><code>Universal.WhiteSpace.CommaSpacing</code>: Enforce correct spacing around commas</li> </ul> </li> </ul> <h3>Changed sniffs</h3> <ul> <li><code>DeprecatedGlobalVariablesSniff</code>: Add <code>$wgCommandLineMode</code> (Bartosz Dziewoński)</li> <li><code>FunctionCommentSniff</code> & <code>PropertyDocumentationSniff</code>: Allow array shapes in PHPDoc comments (thiemowmde)</li> <li><code>FunctionCommentSniff</code>: Require documentation of getters starting with "is", not only "get" (thiemowmde)</li> <li><code>FunctionCommentSniff</code>: Actually check if a method returns anything (thiemowmde)</li> <li><code>FunctionAnnotationsSniff</code>: Add <code>@phan-type</code> as an allowed annotation (Umherirrender)</li> <li><code>FunctionAnnotationsSniff</code>: Add <code>@phan-side-effect-free</code> as an allowed annotation (Bartosz Dziewoński)</li> <li><code>LowerCamelFunctionsNameSniff</code>: Ignore hook methods (DannyS712)</li> <li><code>PhpunitAnnotationsSniff</code>: Enforce absolute class path for coverage annotations (Func)</li> </ul> <h3>Removed sniffs</h3> <ul> <li><code>OneSpaceInlineArraySniff</code>: Superseded by <code>Universal.WhiteSpace.CommaSpacing</code></li> <li><code>ShortListSyntaxSniff</code>: Superseded by <code>Universal.Lists.DisallowLongListSyntax</code></li> <li><code>AlternativeSyntaxSniff</code>: Superseded by <code>Universal.ControlStructures.DisallowAlternativeSyntax</code></li> </ul> <h3>Documentation, dependencies and build changes</h3> <ul> <li>Run in parallel with 64 jobs by default (Kunal Mehta, Antoine Musso)</li> <li>build: Allow composer/semver 3.4.0 as well as 3.3.2 (Reedy)</li> <li>tests: Add test for awfully inconsistent code (Daimona Eaytoy)</li> <li>build: Update squizlabs/PHP_CodeSniffer to 3.8.1 (Umherirrender)</li> </ul> <h2>42.0.0 / 2023-09-21</h2> <h3>New sniffs</h3> <ul> <li>Create <code>MockBoilerplateSniff</code> for PHPUnit tests (DannyS712)</li> <li>Create <code>OneSpaceInlineArraySniff</code> (Amir Sarabadani)</li> <li>Create <code>ShortListSyntaxSniff</code> to replace <code>list()</code> by short array syntax (Umherirrender)</li> <li>Enable <code>Generic.WhiteSpace.ScopeIndent</code> (Daimona Eaytoy)</li> <li>Enable <code>Squiz.ControlStructures.ControlSignature</code> (Daimona Eaytoy)</li> <li>Replace <code>AssignmentInControlStructuresSniff</code> with <code>Generic.CodeAnalysis.AssignmentInCondition</code> (Daimona Eaytoy)</li> <li>Replace <code>DisallowEmptyLineFunctionsSniff</code> with <code>Squiz.WhiteSpace.FunctionOpeningBraceSpace</code> (Daimona Eaytoy)</li> </ul> <h3>Changed sniffs</h3> <ul> <li><code>AssertCountSniff</code>: Prefer <code>assertSameSize</code> when both parts are <code>count()</code> (Func)</li> <li><code>DeprecatedGlobalVariablesSniff</code>: Add <code>$wgHooks</code> (Umherirrender)</li> <li><code>ForbiddenFunctionsSniff</code>: Fix not counting arguments correctly (Daimona Eaytoy)</li> <li><code>SpaceAfterClosureSniff</code>: Expand to enforce space after arrow functions (Umherirrender)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/c559bc02e87b0a969b6ed7380d7fa1d02738158b"><code>c559bc0</code></a> HISTORY: Mark this as v43.0.0</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/0ba59054880a670129d1ac6c59e63538806a8b27"><code>0ba5905</code></a> HISTORY: Add blended entry for 5351ea927 and 6927784cf</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/645429d054e59b3d87a85a31db57b411dc6389d2"><code>645429d</code></a> HISTORY: Add entry for 4861986b0</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/caeab67759f00179217a395466e5dd2bff132419"><code>caeab67</code></a> HISTORY: Add entry for 9640c3255</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/6927784cf90c11ada8a8843ee30389e093480821"><code>6927784</code></a> build: Update squizlabs/php_codesniffer to 3.8.1</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/8c9cb701e56226cac43fee2fa24b0d0e586f1733"><code>8c9cb70</code></a> Enforce absolute class path for coverage annotations</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/4861986b0710ea2c53b771fbcababa670b6ecd4d"><code>4861986</code></a> composer.json: Allow newer composer/semver</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/5351ea927bc2256cb399b6a0698cda719d31cf45"><code>5351ea9</code></a> build: Update squizlabs/php_codesniffer to 3.8.0</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/9640c32551c69c4dde8bf8e6d62da0a3d414a3ca"><code>9640c32</code></a> Deprecate $wgCommandLineMode</li> <li><a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/8b4eb6564c37986410bbcf76212a499ecc7cf25b"><code>8b4eb65</code></a> LowerCamelFunctionsNameSniff: Ignore hook methods</li> <li>Additional commits viewable in <a href="https://github.com/wikimedia/mediawiki-tools-codesniffer/compare/v42.0.0...v43.0.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: CosmicAlpha <cosmic.alpha24@gmail.com>
- Loading branch information