10up / wpcs-action

GitHub Action to help you lint your PHP without additional dependencies within your codebase
MIT License
54 stars 13 forks source link

Add new flag: `EXTRA_ARGS` to support custom arguments #12

Closed dinhtungdu closed 2 years ago

dinhtungdu commented 2 years ago

Description of the Change

This PR adds a new flag to support custom arguments. Originally, I hard-coded to generate a JSON file for job summary, but I think an extra argument is better because it lets users enable the JSON report generation only if they want to display the summary.

Closes #

Alternate Designs

Possible Drawbacks

Verification Process

See https://github.com/10up/maps-block-apple/pull/128 and https://github.com/10up/maps-block-apple/actions/runs/2326290393

Checklist:

Changelog Entry

Added EXTRA_ARGS allows users to add custom arguments to the phpcs command.

Credits

Props @dinhtungdu