Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show raw phpcs errors when executable could not run #7

Open
olivertappin opened this issue Dec 17, 2019 · 0 comments
Open

Show raw phpcs errors when executable could not run #7

olivertappin opened this issue Dec 17, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@olivertappin
Copy link
Owner

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.

@olivertappin olivertappin self-assigned this Dec 17, 2019
@olivertappin olivertappin added the enhancement New feature or request label Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant