Would like to be able to sniff files with a .phtml (or other abitrary) extension, but cannot get to the "--extensions=php,inc,lib, phtml" switch.
This might be more of a feature request.
Great work!
All files associated with the "PHP Content Type" will be checked. To add a new file extension follow these steps:
1. From the menu bar select Window -> Preferences
2. From the tree view of Preferences page select General -> Content Types
3. Expand the "Text" node and select "PHP Content Type"
4. Click "Add..." to add a new file extension
With the next release I add a feature similar to the extension parameter from PHP_CodeSniffer. But not that this is implemented in Eclipse and will not use this parameter.
I hope this helps.
Sven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi meriial,
sorry for the late answer.
All files associated with the "PHP Content Type" will be checked. To add a new file extension follow these steps:
1. From the menu bar select Window -> Preferences
2. From the tree view of Preferences page select General -> Content Types
3. Expand the "Text" node and select "PHP Content Type"
4. Click "Add..." to add a new file extension
With the next release I add a feature similar to the extension parameter from PHP_CodeSniffer. But not that this is implemented in Eclipse and will not use this parameter.
I hope this helps.
Sven