Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

only run phpcs if the file has no syntax errors. #155

Merged
merged 1 commit into from
Jan 25, 2012
Merged

only run phpcs if the file has no syntax errors. #155

merged 1 commit into from
Jan 25, 2012

Conversation

AD7six
Copy link
Contributor

@AD7six AD7six commented Jan 25, 2012

running phpcs on a file which contains a parse error may generate a huge
number of warnings from the phpcs library.

You can see an example of what phpcs outputs in such cases here: https://gist.github.com/6c6535c3fc22c754ca6b

Therefore - don't run phpcs on files which have parse errors; don't freeze vim for minutes at a time when syntastic is already aware that the file is fundamentally borked

running phpcs on a file which contains a parse error generates a huge
number of warnings from the phpcs library. This can freeze vim for
minutes at a time while it attempts to parse these
notices/warnings/errors.

Therefore - don't run phpcs on files which have parse errors.
scrooloose added a commit that referenced this pull request Jan 25, 2012
only run phpcs if the file has no syntax errors.
@scrooloose scrooloose merged commit 31970a8 into vim-syntastic:master Jan 25, 2012
@scrooloose
Copy link
Collaborator

Pulled - good idea :-)

@AD7six
Copy link
Contributor Author

AD7six commented Jan 25, 2012

U iz fast :)

@scrooloose scrooloose mentioned this pull request Feb 6, 2012
technosophos added a commit to technosophos/syntastic that referenced this pull request Feb 7, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants