coding-standard icon indicating copy to clipboard operation
coding-standard copied to clipboard

Feature Request: Add Configuration Support for Custom Rulesets

Open tugascrown204 opened this issue 2 months ago • 1 comments

Feature Request: Support for Custom Configuration of Rules

Currently, the symplify/coding-standard package operates with the built-in SetList::SYMPLIFY, which is great for a standard coding practice. However, it would be beneficial to allow users to define their custom rulesets or configurations within the ecs.php file.

Proposed Changes:

  1. Introduce an API or configuration option to allow users to specify their own set of rules alongside or instead of the default set. This could be done by allowing users to create their custom class extending ECSConfig where they can define their preferences.
  2. Documentation updates reflecting these changes, including examples on how to define custom rulesets and how they can be combined with existing ones.

Benefits:

  • Provides flexibility for teams with specific coding standards without modifying the underlying library.
  • Encourages wider adoption of the package in organizations with unique coding requirements.

This feature enhancement would significantly improve the usability of the symplify/coding-standard package, making it more appealing to a broader audience.

tugascrown204 avatar Nov 02 '25 10:11 tugascrown204

Hi, thanks for proposal. In simple example, how would it look liek in ECS config? How would the registration of such set would look like?

TomasVotruba avatar Nov 02 '25 14:11 TomasVotruba