mirror of
https://gh.wpcy.net/https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-04-28 01:22:17 +08:00
2.5 KiB
2.5 KiB
| name | about |
|---|---|
| Bug report | Create a report to help us improve |
Bug Description
Minimal Code Snippet
The issue happens when running this command:
phpcs ...
... over a file containing this code:
// Place your code sample here.
The file was auto-fixed via phpcbf to:
// Place your code sample here.
... while I expected the code to be fixed to:
// Place your code sample here.
Error Code
Custom Ruleset
<?xml version="1.0"?>
<ruleset name="My Custom Standard">
...
</ruleset>
Environment
| Question | Answer |
|---|---|
| PHP version | x.y.z |
| PHP_CodeSniffer version | x.y.z |
| WordPressCS version | x.y.z |
| PHPCSUtils version | x.y.z |
| PHPCSExtra version | x.y.z |
| WordPressCS install type | e.g. Composer global, Composer project local, other (please expand) |
| IDE (if relevant) | Name and version e.g. PhpStorm 2018.2.2 |
Additional Context (optional)
Tested Against develop Branch?
- I have verified the issue still exists in the
developbranch of WordPressCS.