creativedotdesign / tofino

WordPress boilerplate theme on a modern stack. NPM and Composer.
Other
29 stars 6 forks source link

Fix PHP Linter to exclude template files #246

Closed danimalweb closed 7 years ago

danimalweb commented 7 years ago

Let it run in src/* and against functions.php only.

PHP files with a mix of HTML and PHP are a mess to deal with. The Linter is usually wrong. This will be better once we move to Twig.

danimalweb commented 7 years ago
<!-- Exclude Indent Rule in Templates -->
  <rule ref="Generic.WhiteSpace.ScopeIndent">
    <exclude-pattern>templates/*</exclude-pattern>
  </rule>