Update dependency mediawiki/mediawiki-codesniffer to v43 #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
41.0.0
->43.0.0
Release Notes
wikimedia/mediawiki-tools-codesniffer (mediawiki/mediawiki-codesniffer)
v43.0.0
Compare Source
New sniffs
Universal.Constants.LowercaseClassResolutionKeyword
: Enforce lowercase::class
Universal.Constants.UppercaseMagicConstants
: Enforce uppercase magic constantsUniversal.ControlStructures.DisallowAlternativeSyntax
: Disallow alternative PHP syntaxUniversal.Lists.DisallowLongListSyntax
: Disallow the longlist()
syntaxUniversal.Operators.TypeSeparatorSpacing
: Forbid spaces in union and intersection typesUniversal.UseStatements.KeywordSpacing
: Enforce a single space around keywords inuse
statementsUniversal.UseStatements.LowercaseFunctionConst
: Enforce lowercasefunction
andconst
inuse
statementsUniversal.UseStatements.NoUselessAliases
: Forbids aliases inuse
statements where the alias is the same as the original nameUniversal.WhiteSpace.CommaSpacing
: Enforce correct spacing around commasChanged sniffs
DeprecatedGlobalVariablesSniff
: Add$wgCommandLineMode
(Bartosz Dziewoński)FunctionCommentSniff
&PropertyDocumentationSniff
: Allow array shapes in PHPDoc comments (thiemowmde)FunctionCommentSniff
: Require documentation of getters starting with "is", not only "get" (thiemowmde)FunctionCommentSniff
: Actually check if a method returns anything (thiemowmde)FunctionAnnotationsSniff
: Add@phan-type
as an allowed annotation (Umherirrender)FunctionAnnotationsSniff
: Add@phan-side-effect-free
as an allowed annotation (Bartosz Dziewoński)LowerCamelFunctionsNameSniff
: Ignore hook methods (DannyS712)PhpunitAnnotationsSniff
: Enforce absolute class path for coverage annotations (Func)Removed sniffs
OneSpaceInlineArraySniff
: Superseded byUniversal.WhiteSpace.CommaSpacing
ShortListSyntaxSniff
: Superseded byUniversal.Lists.DisallowLongListSyntax
AlternativeSyntaxSniff
: Superseded byUniversal.ControlStructures.DisallowAlternativeSyntax
Documentation, dependencies and build changes
v42.0.0
Compare Source
New sniffs
MockBoilerplateSniff
for PHPUnit tests (DannyS712)OneSpaceInlineArraySniff
(Amir Sarabadani)ShortListSyntaxSniff
to replacelist()
by short array syntax (Umherirrender)Generic.WhiteSpace.ScopeIndent
(Daimona Eaytoy)Squiz.ControlStructures.ControlSignature
(Daimona Eaytoy)AssignmentInControlStructuresSniff
withGeneric.CodeAnalysis.AssignmentInCondition
(Daimona Eaytoy)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)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.