Skip to content

Releases: hostnet/phpcs-tool

Add Squiz.Strings.DoubleQuoteUsage.NotRequired to HostnetExperimental

19 Nov 07:39
Compare
Choose a tag to compare

Adds Squiz.Strings.DoubleQuoteUsage.NotRequired to HostnetExperimental

Add UnusedUses sniff to the HostnetExperimental ruleset

16 Oct 09:52
c55a339
Compare
Choose a tag to compare
  • Adds UnusedUses sniff to the HostnetExperimental ruleset

Add MediaWiki.WhiteSpace.MultipleEmptyLines to Hostnet ruleset

03 Oct 06:44
Compare
Choose a tag to compare

This release adds MediaWiki.WhiteSpace.MultipleEmptyLines to Hostnet ruleset.

Remove ReturnTypeDeclarationSniff

05 Aug 13:34
Compare
Choose a tag to compare
  • Removes ReturnTypeDeclarationSniff which is already covered by
    Squiz.Functions.MultiLineFunctionDeclaration and SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing.
  • Upgrades to latest squizlabs/php_codesniffer.
  • Adds PHP 7.3 build to Travis.

Hotfix: rtrim with a charlist removes more than 'Test'

25 Mar 12:30
0d50d25
Compare
Choose a tag to compare
8.3.3

Hotfix: rtrim with a charlist removes more than 'Test'. (#41)

Add ClassConstantVisibility to HostnetExperimental

17 Oct 07:32
Compare
Choose a tag to compare
  • Adds the ClassConstantVisibilitySniff to the HostnetExperimental ruleset.

Use "present" as copyright right hand side year

27 Sep 08:21
Compare
Choose a tag to compare

Following the Symfony example we are going to change the most recent year in our copyright messages to "present" to prevent useless updates to all our files every year.

This update to the sniff will NOT "fix" the current years because this causes mayhem in code reviews. To change all the copyright notices use the following bash command:

find -type f -name '*.php'  | xargs sed -i 's/@copyright \([0-9]\+\)\(-[0-9]\+\)\? Hostnet B.V.$/@copyright \1-present Hostnet B.V./'

Add HostnetExperimental ruleset

25 Sep 08:16
Compare
Choose a tag to compare

Adds the HostnetExperimental ruleset for use in specific projects, or for new/modified files only since the impact can be big.

Activate Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines

12 Sep 10:50
Compare
Choose a tag to compare

Including the PSR2 ruleset disables Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines. This reactivates it in the Hostnet ruleset.

Removed EarlyExit + some codestyle changes

05 Sep 13:09
Compare
Choose a tag to compare
  • Made a few codestyle changes - #36
  • Remove EarlyExit rule - has unintended side effects - #35