ObliviousHarmony / vscode-php-codesniffer

A VS Code extension for integrating PHP_CodeSniffer.
https://marketplace.visualstudio.com/items?itemName=obliviousharmony.vscode-php-codesniffer
Other
38 stars 2 forks source link

PHPCS Integration Composer Package #91

Closed ObliviousHarmony closed 7 months ago

ObliviousHarmony commented 7 months ago

All Submissions:

Changes proposed in this Pull Request:

This pull request sets up a Composer package for the integration files and adds a new configuration option to make it possible to use it instead of the integrated reports. This is useful for cases where the path to the report files from the extension are not available. This is primarily the case when using a Docker environment but not using a remote extension.

How to test the changes in this Pull Request:

  1. Enable the phpCodeSniffer.autoloadPHPCSIntegration setting. It should give an error about a missing report.
  2. Add a path repository to a composer.json file in a project you want to test against.
  3. composer require -D "obliviousharmony/vscode-phpcs-integration"="*"
  4. Make sure that the extension now works
  5. Disable the setting and confirm it works.
  6. Remove the package and confirm it works.