Skip to content

Show raw phpcs errors when executable could not run #7

@olivertappin

Description

@olivertappin

When encountering an error via the phpcs executable, currently the tool returns:

Unable to run phpcs executable.

Which is executed here: https://github.com/olivertappin/phpcs-diff/blob/master/src/PhpcsDiff.php#L144

Whereas the real error could be something like:

ERROR: the "ruleset.xml" coding standard is not installed. The installed coding standards are PEAR, MySource, Squiz, PSR2, Zend, PSR12 and PSR1

Which can be difficult to find.

The suggestion here would be to change this functionality and have the raw error returned to the user, so they're able to see what's going on.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions