-
## 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.…
-
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…
-
## 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…
-
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…
-
Hi,
v2.0.0-rc.1 was running successfully (getting 86 errors in the normal phpstan output)
I just updated to v2.0.0 and ran it to get the following internal errors...
```
-- ----------------------…
-
## Describe the bug
Mentioned fixable sniff breaks the PHP code as follows:
### Code sample
```php
match ($foo) {
'a' => [
'x' => 0,
'y' => 0,
],
default => 0
…