-
## Describe the bug
PHPCS throws a fatal error when the user passes an invalid generator.
### To reproduce
Steps to reproduce the behavior:
1. Run `phpcs test.php --generator=InvalidGenerator …
-
now:
```
phpcs:
script: vendor/bin/phpcs --report=full --report-\\Micheh\\PhpCodeSniffer\\Report\\Gitlab=phpcs-quality-report.json
artifacts:
reports:
codequality: phpcs-quality-…
-
The sniff overrides the token content of PHPCS ignore annotations to allow for fixing these but doesn't revert that change correctly once the sniff is done, which means that this change will affect al…
-
While PHPCS currently has partial/limited support for sniff file includes of sniffs which do not comply with the PHPCS naming conventions (as outlined in the [Coding Standard Tutorial](https://github.…
-
## Describe the bug
While working on improving code coverage for the `Generic.Files.LowercasedFilename` sniff (#681), I noticed that it fails to properly handle file names that contain uppercase no…
-
I created this action to add basic code sniffing for pull requests:
```
name: Code Sniffer
on:
pull_request:
jobs:
sniff:
name: Sniff changed files
runs-on: my-server
st…
-
Not much change is needed:
```
$ vendor/bin/phpcs -p src --standard=PHPCompatibility --runtime-set testVersion 8.3
........................ 24 / 24 (100%)
```
but there's php8.2 compatibility pat…
-
Created based on discussion: https://github.com/PHPCSStandards/PHP_CodeSniffer/discussions/680
## Describe the bug
After adjusting (1) the Sniff according to https://github.com/PHPCSStandards/PH…
-
Instead of ignoring test files and allowing code to be written in any format (https://github.com/alleyinteractive/create-wordpress-project/blob/develop/.phpcs.xml#L30) we should relax the standards fo…
-
It was previously already announced that the 4.0 release will drop support for:
* JavaScript and CSS tokenizers, which also means the JS and CSS specific sniffs will be removed.
* The MySource stand…
jrfnl updated
18 hours ago