Skip to content

Commit

Permalink
Update mediawiki/mediawiki-codesniffer requirement from 41.0.0 to 42.…
Browse files Browse the repository at this point in the history
…0.0 (#76)

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>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>
<li><code>UnusedUseStatement</code>: Ignore function name when detect
unused use (Umherirrender)</li>
<li><code>ValidGlobalNameSniff</code> &amp;
<code>UnusedGlobalVariablesSniff</code>: Make sniffs skip dynamic names
(Daimona Eaytoy)</li>
</ul>
<h3>Documentation, dependencies and build changes</h3>
<ul>
<li><code>ParenthesesAroundKeyword</code>: Use
<code>fixer-&gt;beginChangeset/endChangeset</code> (Umherirrender)</li>
<li>Make some sniffs work for more OOP structures (Daimona Eaytoy)</li>
<li>build: Switch phan to special library mode (James D. Forrester)</li>
<li>build: Clean up of phan config (Umherirrender)</li>
</ul>
<h2>41.0.0 / 2023-02-25</h2>
<h3>Changed sniffs</h3>
<ul>
<li><code>AssertionOrderSniff</code>: Also run for
<code>assertNotEquals</code>/<code>assertNotSame</code>
(Umherirrender)</li>
<li><code>AssertionOrderSniff</code>: Handle more wrong actual values
(DannyS712)</li>
<li><code>ForbiddenFunctionsSniff</code>: Forbid <code>eval()</code> and
make <code>ForbiddenFunctions</code> sniff more flexible (Thiemo
Kreuz)</li>
<li><code>FunctionCommentSniff</code>: Allow fully-typed functions to
omit documentation (Lucas Werkmeister)</li>
<li><code>FunctionCommentSniff</code>: Allow fully typed
<code>__constructor</code> without <code>@param</code> tags
(thiemowmde)</li>
<li><code>FunctionCommentSniff</code>: Allow prose-only documentation
for statically typed functions (Lucas Werkmeister)</li>
<li><code>FunctionCommentSniff</code>: Tiny performance optimization
(thiemowmde)</li>
<li><code>PropertyDocumentationSniff</code>: Allow prose-only
documentation for statically typed properties (Lucas Werkmeister)</li>
<li><code>PropertyDocumentationSniff</code>: Allow typed properties to
omit documentation (Lucas Werkmeister)</li>
<li><code>SpaceyParenthesisSniff</code>: Minor performance optimization
(thiemowmde)</li>
</ul>
<h3>Documentation, dependencies and build changes</h3>
<ul>
<li>README: Remove todo about check-vars.php (Umherirrender)</li>
<li>build: Add Doxygen (James D. Forrester)</li>
<li>build: Pin PHPUnit to 9.5.28 (James D. Forrester)</li>
<li>build: Update squizlabs/PHP_CodeSniffer to 3.7.2 (Taavi
Väänänen)</li>
<li>code: Disable <code>OneObjectStructurePerFile</code> during
<code>FunctionComment</code> tests (thiemowmde)</li>
</ul>
<h2>40.0.1 / 2022-11-01</h2>
<h3>Documentation, dependencies and build changes</h3>
<ul>
<li>build: Loosen symfony/polyfill-php80 requirement (Alexander
Vorwerk)</li>
</ul>
<h2>40.0.0 / 2022-11-01</h2>
<h3>New sniffs</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/7299d2d9e30888fefa2901732b867d984fba51e2"><code>7299d2d</code></a>
Release v42.0.0</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/e28d4539d4b85048afc02dae652bd65aa1126484"><code>e28d453</code></a>
Expand closue sniff to enforce space after arrow functions</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/10969fc81f3578ab275aec32bf0c7fe045ac0815"><code>10969fc</code></a>
MockBoilerplateSniff: fix and re-enable equalTo() handling</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/14ec349eb7371c6246a0dd0e8713b00e1acb8568"><code>14ec349</code></a>
UnusedUseStatement: Ignore function name when detect unused use</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/423d5c812436ca9e3c19ac539d781822c4b7431f"><code>423d5c8</code></a>
Temporarily disable MediaWiki.PHPUnit.MockBoilerplate.ConstaintEqualTo
by def...</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/330a59bb90e53aa4f329db15e7e4ff1946d3bc54"><code>330a59b</code></a>
Introduce OneSpaceInlineArraySniff</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/59f6a9beaa1f511864a6234698dfc8b6b9e7ded5"><code>59f6a9b</code></a>
Fix ForbiddenFunctionsSniff not counting arguments correctly</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/482d9e5787a63fa63facb116b3a956e27eec6ecf"><code>482d9e5</code></a>
Make sniffs for global variables skip dynamic names</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/e8ccb989704dc1174d62ce7da9ddebf5396806fc"><code>e8ccb98</code></a>
Make some sniffs work for more OOP structures</li>
<li><a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/commit/d31ad788e8c174e055531ba7851d0c775c5a5942"><code>d31ad78</code></a>
Add new MockBoilerplateSniff for PHPUnit tests</li>
<li>Additional commits viewable in <a
href="https://github.com/wikimedia/mediawiki-tools-codesniffer/compare/v41.0.0...v42.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>
  • Loading branch information
dependabot[bot] committed Nov 3, 2023
1 parent a684eba commit 493c4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"composer/installers": ">=1.0.1"
},
"require-dev": {
"mediawiki/mediawiki-codesniffer": "41.0.0",
"mediawiki/mediawiki-codesniffer": "42.0.0",
"mediawiki/mediawiki-phan-config": "0.13.0",
"mediawiki/minus-x": "1.1.1",
"php-parallel-lint/php-console-highlighter": "1.0.0",
Expand Down

0 comments on commit 493c4ef

Please sign in to comment.