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

Exclude *.xml files. #7

Closed danylevskyi closed 9 years ago

danylevskyi commented 9 years ago

I think we should exclude .xml files. Here is a warning for my Phing build.xml file.

--------------------------------------------------------------------------------
FOUND 0 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not
   |         | allowed by this install of PHP. This file may be using short
   |         | open tags but PHP does not allow them.
--------------------------------------------------------------------------------
danylevskyi commented 9 years ago

Created pull request. Closing...