You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(installer): make phpcs-composer-installer optional
Moves dealerdirect/phpcodesniffer-composer-installer from
equire to suggest in composer.json to make its installation optional.
The README.md has been updated to reflect this change, providing clearer instructions for both automatic and manual configuration of PHP_CodeSniffer.
This gives users more flexibility in how they manage their dependencies and PHP_CodeSniffer setup.
### Optional: Automatic Installation with Dealerdirect
52
52
53
-
This package uses [dealerdirect/phpcodesniffer-composer-installer](https://github.com/Dealerdirect/phpcodesniffer-composer-installer) to automatically register the coding standard with PHP_CodeSniffer. This means:
53
+
For automatic registration with PHP_CodeSniffer, you can optionally install [dealerdirect/phpcodesniffer-composer-installer](https://github.com/Dealerdirect/phpcodesniffer-composer-installer):
54
54
55
-
- The standard is automatically installed to PHP_CodeSniffer's standards directory upon Composer install.
56
-
- No manual path configuration is required.
57
-
- The standard becomes immediately available for use in your `phpcs.xml` configuration.
- Automatically register the standard with PHP_CodeSniffer upon Composer install.
62
+
- Eliminate the need for manual path configuration.
63
+
- Make the standard immediately available for use in your `phpcs.xml` configuration.
58
64
59
-
If you're using a custom PHP_CodeSniffer installation, ensure the `dealerdirect/phpcodesniffer-composer-installer` plugin is enabled. This package's `composer.json` already allows this plugin automatically.
65
+
**Note:** This is optional. If you prefer manual configuration or have a custom PHP_CodeSniffer setup, you can skip this step and configure the path manually in your `phpcs.xml` file.
0 commit comments