WPTT / WPThemeReview

PHP_CodeSniffer rules (sniffs) to enforce WordPress theme review coding conventions
MIT License
208 stars 38 forks source link

Dealing with rules that shouldn't apply to templates #205

Closed justintadlock closed 5 years ago

justintadlock commented 5 years ago

Some of the sniffs that we have should not apply to theme templates. This is simply because the nature of the template system is different than other PHP in a theme.

Below are a couple of existing tickets where it's been noted that sniffs are either not necessary or provide a false-positive in the context of a template.

This is a general, catchall ticket to discuss ideas about dealing with this issue.

dingo-d commented 5 years ago

I think we can close this one as wee, as we've merged the updated prefix check sniff, and the reserved template names should be merged in 0.2.0.