Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Releases: wmde/WikibaseCodeSniffer

Release 1.2.0

21 Oct 05:41
Compare
Choose a tag to compare
Update the release notes and the version in the README.md.

1.1.0

24 Jan 15:30
e387c21
Compare
Choose a tag to compare

1.1.0 (2020-01-24)

  • Upgrade PHPUnit from ^4.8.35 to ^8.4
  • Upgrade MediaWiki Code Sniffer from v28 to v29

1.0.0

12 Oct 15:13
9797484
Compare
Choose a tag to compare
  • Updated the base MediaWiki rule set from 19.1.0 to 28.0.0.
    This adds many new sniffs and drops PHP <7.2 compatibility
  • This version of WikibaseCodeSniffer also requires PHP >=7.2

0.5.1

27 Nov 11:58
0ff177b
Compare
Choose a tag to compare
  • Updated the base MediaWiki rule set from 19.0.0 to 19.1.0. This fixes compatibility with PHP 7.3.

0.5.0

19 Jul 08:51
6a19e78
Compare
Choose a tag to compare
  • 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 parameter license which will enforce presence of correct value in @license tag

0.4.1

23 Mar 12:32
63030d8
Compare
Choose a tag to compare
  • Added PHPUnit\Framework\TestCase to the exceptions Wikibase.Namespaces.FullQualifiedClassName allows.
  • Wikibase.Namespaces.UnusedUse can't confuse method with class names any more.

0.4.0

07 Mar 13:50
c82aab7
Compare
Choose a tag to compare
  • 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

12 Feb 11:15
259d27a
Compare
Choose a tag to compare
  • Updated the base MediaWiki rule set from 0.8 to 15.0.0. This adds the following sniffs:
    • Generic.Files.OneObjectStructurePerFile (replaces Generic.Files.OneClass…, …Interface…,
      and …TraitPerFile)
    • Generic.PHP.BacktickOperator
    • Generic.PHP.DiscourageGoto (replaces MediaWiki.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

13 Oct 14:36
Compare
Choose a tag to compare
  • 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

26 Apr 14:53
Compare
Choose a tag to compare

Initial tagged release