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

Support Overriding PHPCS Integration Path #89

Closed ObliviousHarmony closed 7 months ago

ObliviousHarmony commented 7 months ago

All Submissions:

Changes proposed in this Pull Request:

In order to support narrow use-cases without bloating the settings we're going to add a new specialOptions setting. This can contain any of these optional settings in a single setting. The first of these settings is phpcsIntegrationPathOverride. This allows developers to override the path to the PHPCS integration files in case they're using PHP in a container but not using a VS Code remote extension.

Closes #86.

How to test the changes in this Pull Request:

  1. Make sure that the extension works without setting the option.
  2. Set it to a path that does not work and see that it errors with a missing report message.
  3. Set it to a path that works and see that it lints again.