Skip to content

Commit

Permalink
docs: add TrailingSemicolon sniff documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shvlv committed Jan 26, 2024
1 parent 441f7ce commit 847824a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,24 @@ For **notes and configuration** see [`/inpsyde-custom-sniffs.md`](/inpsyde-custo

-------------

## Templates Rules

InpsydeTemplates ruleset contains custom rules targeted to the PHP templates and views.
To enable the ruleset only for templates the following configuration could be used:

```xml
<rule ref="InpsydeTemplates">
<include-pattern>*/templates/*</include-pattern>
<include-pattern>*/views/*</include-pattern>
</rule>
```

The following templates-specific rules are available:

| Sniff name | Description | Has Config | Auto-Fixable |
|:--------------------|:------------------------------------------------|:----------:|:------------:|
| `TrailingSemicolon` | Remove trailing semicolon before close PHP tag. | ||

# Removing or Disabling Rules

## Rules Tree
Expand Down

0 comments on commit 847824a

Please sign in to comment.