New PHP_CodeSniffer\Sniffs\DeprecatedSniff interface to allow for marking a sniff as deprecated. #281
If a ruleset uses deprecated sniffs, deprecation notices will be shown to the end-user before the scan starts.
When running in -q (quiet) mode, the deprecation notices will be hidden.
Deprecated sniffs will still run and using them will have no impact on the exit code for a scan.
In ruleset "explain"-mode (-e) an asterix * will show next to deprecated sniffs.
Sniff maintainers are advised to read through the PR description for full details on how to use this feature for their own (deprecated) sniffs.
Squiz.PHP.EmbeddedPhp : the sniff will now also examine the formatting of embedded PHP statements using short open echo tags. #27
Includes a new ShortOpenEchoNoSemicolon errorcode to allow for selectively ignoring missing semicolons in single line embedded PHP snippets within short open echo tags.
The other error codes are the same and do not distinguish between what type of open tag was used.
Sniff tests which extend the PHPCS native AbstractSniffUnitTest class will now show a (non-build-breaking) warning when test case files contain fixable errors/warnings, but there is no corresponding .fixed file available in the test suite to verify the fixes against. #336
The warning is only displayed on PHPUnit 7.3.0 and higher.
The warning will be elevated to a test failure in PHPCS 4.0.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patches
New PHP_CodeSniffer\Sniffs\DeprecatedSniff interface to allow for marking a sniff as deprecated. #281
If a ruleset uses deprecated sniffs, deprecation notices will be shown to the end-user before the scan starts.
When running in -q (quiet) mode, the deprecation notices will be hidden.
Deprecated sniffs will still run and using them will have no impact on the exit code for a scan.
In ruleset "explain"-mode (-e) an asterix * will show next to deprecated sniffs.
Sniff maintainers are advised to read through the PR description for full details on how to use this feature for their own (deprecated) sniffs.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
New Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence sniff. #197
Forbid mixing different binary boolean operators within a single expression without making precedence clear using parentheses
Thanks to [Tim Düsterhus][@TimWolla] for the contribution
Squiz.PHP.EmbeddedPhp : the sniff will now also examine the formatting of embedded PHP statements using short open echo tags. #27
Includes a new ShortOpenEchoNoSemicolon errorcode to allow for selectively ignoring missing semicolons in single line embedded PHP snippets within short open echo tags.
The other error codes are the same and do not distinguish between what type of open tag was used.
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
The Performance report can now also be used for a phpcbf run. #308
Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
Sniff tests which extend the PHPCS native AbstractSniffUnitTest class will now show a (non-build-breaking) warning when test case files contain fixable errors/warnings, but there is no corresponding .fixed file available in the test suite to verify the fixes against. #336
The warning is only displayed on PHPUnit 7.3.0 and higher.
The warning will be elevated to a test failure in PHPCS 4.0.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
coverage: 100.0%. remained the same
when pulling f35e49b1458dfbcaee476e4e33ecaf000d23e8dd on dependabot/composer/squizlabs/php_codesniffer-3.9.0
into 9d9728feda364b8fc005eff99b9991d6d3149a13 on master.
coverage: 100.0%. remained the same
when pulling f35e49b1458dfbcaee476e4e33ecaf000d23e8dd on dependabot/composer/squizlabs/php_codesniffer-3.9.0
into 9d9728feda364b8fc005eff99b9991d6d3149a13 on master.
⚠️ Dependabot is rebasing this PR ⚠️
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
Bumps squizlabs/php_codesniffer from 3.8.0 to 3.9.0.
Release notes
Sourced from squizlabs/php_codesniffer's releases.
... (truncated)
Changelog
Sourced from squizlabs/php_codesniffer's changelog.
... (truncated)
Commits
d63cee4
Merge pull request #341 from PHPCSStandards/feature/changelog-3.9.04a9addc
Changelog for the 3.9.0 release4bbc820
Merge pull request #340 from fredden/missing-fixed-file/Squiz.Commenting.Clos...66e87a1
Avoid adding extra newlines when adding a comment392b2b5
Add auto-generated ".fixed" file3e582fe
Merge pull request #339 from PHPCSStandards/feature/various-minor-cs-cleanup814896b
Merge pull request #338 from PHPCSStandards/feature/various-docs-tweaks479b4dc
CS: various minor fixes8e92de6
Changelog: various tweaks21219d1
README: minor tweakDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show