iamstoick / drupal-pre-commit

A Drupal pre-commit hook to filter php, js, and css syntax errors. This script also checks the file(s) to make sure that the Drupal coding standard is being followed.
Other
38 stars 24 forks source link

Pre-commit hook still checks XML files #11

Open danepowell opened 9 years ago

danepowell commented 9 years ago

If you modify an XML file, it seems like the pre-commit hook still tries to validate it as PHP rather than excluding it. In a very unscientific test, I tried simply adding filters_exclude[20]='\.xml$' to the end of the array (so xml is excluded twice) and it worked fine. I suspect that the last exclude pattern on the array is simply being ignored.

berenddeboer commented 4 years ago

I believe this has been fixed since #13, so this issue can be closed.