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

PHP linting problem #233

Open
gudmdharalds opened this issue Jan 21, 2022 · 0 comments
Open

PHP linting problem #233

gudmdharalds opened this issue Jan 21, 2022 · 0 comments

Comments

@gudmdharalds
Copy link
Contributor

gudmdharalds commented Jan 21, 2022

In some cases the PHP linting performed by vip-go-ci may return no results even though there is a syntax error in a file. This can happen if PHP outputs extra data at the beginning of output, for example warnings like this:

PHP Warning:  Missing arginfo for svn_checkout() in Unknown on line 0
PHP Warning:  Missing arginfo for svn_cat() in Unknown on line 0
PHP Warning:  Missing arginfo for svn_ls() in Unknown on line 0

This is because the PHP linting process will search for Parse error at the very beginning, at position 0. See code here. We should be looking for Parse error anywhere in the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant