Sourced from mediawiki/mediawiki-codesniffer's changelog.
42.0.0 / 2023-09-21
New sniffs
- Create
MockBoilerplateSniff
for PHPUnit tests (DannyS712)- Create
OneSpaceInlineArraySniff
(Amir Sarabadani)- Create
ShortListSyntaxSniff
to replacelist()
by short array syntax (Umherirrender)- Enable
Generic.WhiteSpace.ScopeIndent
(Daimona Eaytoy)- Enable
Squiz.ControlStructures.ControlSignature
(Daimona Eaytoy)- Replace
AssignmentInControlStructuresSniff
withGeneric.CodeAnalysis.AssignmentInCondition
(Daimona Eaytoy)- Replace
DisallowEmptyLineFunctionsSniff
withSquiz.WhiteSpace.FunctionOpeningBraceSpace
(Daimona Eaytoy)Changed sniffs
AssertCountSniff
: PreferassertSameSize
when both parts arecount()
(Func)DeprecatedGlobalVariablesSniff
: Add$wgHooks
(Umherirrender)ForbiddenFunctionsSniff
: Fix not counting arguments correctly (Daimona Eaytoy)SpaceAfterClosureSniff
: Expand to enforce space after arrow functions (Umherirrender)UnusedUseStatement
: Ignore function name when detect unused use (Umherirrender)ValidGlobalNameSniff
&UnusedGlobalVariablesSniff
: Make sniffs skip dynamic names (Daimona Eaytoy)Documentation, dependencies and build changes
ParenthesesAroundKeyword
: Usefixer->beginChangeset/endChangeset
(Umherirrender)- Make some sniffs work for more OOP structures (Daimona Eaytoy)
- build: Switch phan to special library mode (James D. Forrester)
- build: Clean up of phan config (Umherirrender)
41.0.0 / 2023-02-25
Changed sniffs
AssertionOrderSniff
: Also run forassertNotEquals
/assertNotSame
(Umherirrender)AssertionOrderSniff
: Handle more wrong actual values (DannyS712)ForbiddenFunctionsSniff
: Forbideval()
and makeForbiddenFunctions
sniff more flexible (Thiemo Kreuz)FunctionCommentSniff
: Allow fully-typed functions to omit documentation (Lucas Werkmeister)FunctionCommentSniff
: Allow fully typed__constructor
without@param
tags (thiemowmde)FunctionCommentSniff
: Allow prose-only documentation for statically typed functions (Lucas Werkmeister)FunctionCommentSniff
: Tiny performance optimization (thiemowmde)PropertyDocumentationSniff
: Allow prose-only documentation for statically typed properties (Lucas Werkmeister)PropertyDocumentationSniff
: Allow typed properties to omit documentation (Lucas Werkmeister)SpaceyParenthesisSniff
: Minor performance optimization (thiemowmde)Documentation, dependencies and build changes
- README: Remove todo about check-vars.php (Umherirrender)
- build: Add Doxygen (James D. Forrester)
- build: Pin PHPUnit to 9.5.28 (James D. Forrester)
- build: Update squizlabs/PHP_CodeSniffer to 3.7.2 (Taavi Väänänen)
- code: Disable
OneObjectStructurePerFile
duringFunctionComment
tests (thiemowmde)40.0.1 / 2022-11-01
Documentation, dependencies and build changes
- build: Loosen symfony/polyfill-php80 requirement (Alexander Vorwerk)
40.0.0 / 2022-11-01
New sniffs
... (truncated)
7299d2d
Release v42.0.0e28d453
Expand closue sniff to enforce space after arrow functions10969fc
MockBoilerplateSniff: fix and re-enable equalTo() handling14ec349
UnusedUseStatement: Ignore function name when detect unused use423d5c8
Temporarily disable MediaWiki.PHPUnit.MockBoilerplate.ConstaintEqualTo
by def...330a59b
Introduce OneSpaceInlineArraySniff59f6a9b
Fix ForbiddenFunctionsSniff not counting arguments correctly482d9e5
Make sniffs for global variables skip dynamic namese8ccb98
Make some sniffs work for more OOP structuresd31ad78
Add new MockBoilerplateSniff for PHPUnit tests