setasign / phpcs-teamcity-report
Installs: 34 616
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1 || ^8.0
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-12-04 18:37:01 UTC
README
A phpcs reporter for teamcity using the inspection service messages
Usage
Note that you have to install the report script the same way as PHP_CodeSniffer. At the moment we only support composer.
So use:
composer global require "setasign/phpcs-teamcity-report=*"
Or:
{
"require-dev": {
"squizlabs/php_codesniffer": "^3.0",
"setasign/phpcs-teamcity-report": "^1.0"
}
}
To use the report just add the following parameter to your code sniffer call:
--report=\setasign\PhpcsTeamcityReport\TeamcityReport
Drawbacks
At the moment all inspections are in the category "CodeSniffer" without a description or a 'readable' name. Due to a missing easy way to extract these from CodeSniffer.