Releases: hostnet/phpcs-tool
Releases · hostnet/phpcs-tool
Add Squiz.Strings.DoubleQuoteUsage.NotRequired to HostnetExperimental
Adds Squiz.Strings.DoubleQuoteUsage.NotRequired to HostnetExperimental
Add UnusedUses sniff to the HostnetExperimental ruleset
- Adds UnusedUses sniff to the HostnetExperimental ruleset
Add MediaWiki.WhiteSpace.MultipleEmptyLines to Hostnet ruleset
This release adds MediaWiki.WhiteSpace.MultipleEmptyLines to Hostnet ruleset.
Remove ReturnTypeDeclarationSniff
- 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'
8.3.3 Hotfix: rtrim with a charlist removes more than 'Test'. (#41)
Add ClassConstantVisibility to HostnetExperimental
- Adds the ClassConstantVisibilitySniff to the HostnetExperimental ruleset.
Use "present" as copyright right hand side year
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
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
Including the PSR2 ruleset disables Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines. This reactivates it in the Hostnet ruleset.