Skip to content

Commit 847824a

Browse files
committed
docs: add TrailingSemicolon sniff documentation
1 parent 441f7ce commit 847824a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,24 @@ For **notes and configuration** see [`/inpsyde-custom-sniffs.md`](/inpsyde-custo
182182

183183
-------------
184184

185+
## Templates Rules
186+
187+
InpsydeTemplates ruleset contains custom rules targeted to the PHP templates and views.
188+
To enable the ruleset only for templates the following configuration could be used:
189+
190+
```xml
191+
<rule ref="InpsydeTemplates">
192+
<include-pattern>*/templates/*</include-pattern>
193+
<include-pattern>*/views/*</include-pattern>
194+
</rule>
195+
```
196+
197+
The following templates-specific rules are available:
198+
199+
| Sniff name | Description | Has Config | Auto-Fixable |
200+
|:--------------------|:------------------------------------------------|:----------:|:------------:|
201+
| `TrailingSemicolon` | Remove trailing semicolon before close PHP tag. | ||
202+
185203
# Removing or Disabling Rules
186204

187205
## Rules Tree

0 commit comments

Comments
 (0)