This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
Releases: wmde/WikibaseCodeSniffer
Releases · wmde/WikibaseCodeSniffer
Release 1.2.0
1.1.0
1.0.0
0.5.1
0.5.0
- Updated the base MediaWiki rule set from 16.0.1 to 19.0.0. This adds the following sniffs:
MediaWiki.Commenting.LicenseComment
MediaWiki.Commenting.PhpunitAnnotations
MediaWiki.PHP71Features.NullableType
MediaWiki.PHP71Features.VoidReturnType
- Enabled
MediaWiki.Commenting.MissingCovers
. - Made
Wikibase.Namespaces.UnusedUse
aware of PHP7 return types. - Added auto-fix for PHPDoc tags that end with a colon, e.g.
@todo:
. - Added capitalization and spelling fixes for more PHPDoc tags:
@covers…
@dataProvider
@deprecated
@expectedException…
@expected…
- Sniff
Wikibase.Commenting.ClassLevelDocumentation
now supports parameterlicense
which will enforce presence of correct value in@license
tag
0.4.1
- Added
PHPUnit\Framework\TestCase
to the exceptionsWikibase.Namespaces.FullQualifiedClassName
allows. Wikibase.Namespaces.UnusedUse
can't confuse method with class names any more.
0.4.0
- Added custom
Wikibase.Namespaces.FullQualifiedClassName
sniff. - Updated the base MediaWiki rule set from 15.0.0 to 16.0.1. This adds the following sniff:
MediaWiki.Usage.AssignmentInReturn
- Removed
PSR1.Methods.CamelCapsMethodName
(redundant to
MediaWiki.NamingConventions.LowerCamelFunctionsName
).
0.3.0
- Updated the base MediaWiki rule set from 0.8 to 15.0.0. This adds the following sniffs:
Generic.Files.OneObjectStructurePerFile
(replacesGeneric.Files.OneClass…
,…Interface…
,
and…TraitPerFile
)Generic.PHP.BacktickOperator
Generic.PHP.DiscourageGoto
(replacesMediaWiki.Usage.GotoUsage
)MediaWiki.AlternativeSyntax.LeadingZeroInFloat
MediaWiki.AlternativeSyntax.PHP7UnicodeSyntax
MediaWiki.AlternativeSyntax.ShortCastSyntax
MediaWiki.Files.ClassMatchesFilename
MediaWiki.Usage.DeprecatedConstantUsage
MediaWiki.Usage.ForbiddenFunctions
MediaWiki.Usage.ReferenceThis
MediaWiki.Usage.ScalarTypeHintUsage
MediaWiki.VariableAnalysis.ForbiddenGlobalVariables
MediaWiki.WhiteSpace.OpeningKeywordParenthesis
- Added
@package
to the disallowed PHPDoc tags
0.2.0
- Added custom sniffs:
Wikibase.Commenting.ClassLevelDocumentation
Wikibase.Commenting.DisallowedDocTags
Wikibase.Commenting.RedundantVarName
Wikibase.Namespaces.UnnecessaryUse
Wikibase.Namespaces.UnusedUse
Wikibase.Usage.InArrayUsage
- Updated the base MediaWiki rule set from 0.7 to 0.8.1. This adds the following sniffs:
Generic.Formatting.NoSpaceAfterCast
MediaWiki.ExtraCharacters.ParenthesesAroundKeyword
MediaWiki.NamingConventions.LowerCamelFunctionsName
MediaWiki.Usage.DbrQueryUsage
MediaWiki.Usage.ExtendClassUsage
MediaWiki.Usage.SuperGlobalsUsage
MediaWiki.WhiteSpace.SpaceBeforeClassBrace
MediaWiki.WhiteSpace.SpaceBeforeControlStructureBrace
PSR2.Methods.FunctionClosingBrace
- Added
Squiz.Operators.ValidLogicalOperators
- Added
Squiz.WhiteSpace.CastSpacing
0.1.0
Initial tagged release