From 847824ab199449837e442a6560acf95b5795e151 Mon Sep 17 00:00:00 2001 From: shvlv Date: Fri, 26 Jan 2024 23:30:57 +0200 Subject: [PATCH] docs: add TrailingSemicolon sniff documentation --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 7cc6a65..e914e55 100644 --- a/README.md +++ b/README.md @@ -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 + + */templates/* + */views/* + +``` + +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