Skip to content

Commit ce475b6

Browse files
committed
4.0 | Wiki/Customisable Properties: update for removed properties
1 parent 4ba824f commit ce475b6

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

wiki/Customisable-Sniff-Properties.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ The difference in alignment between two adjacent assignments is occasionally qui
193193

194194
If the `error` property is set to `true`, an error will be thrown for violations instead of a warning.
195195

196-
```xml
197-
<rule ref="Generic.Formatting.MultipleStatementAlignment">
198-
<properties>
199-
<property name="error" value="true" />
200-
</properties>
201-
</rule>
202-
```
196+
> [!WARNING]
197+
> The `error` property should no longer be used. Set `<type>` instead.
198+
> ```xml
199+
> <rule ref="Generic.Formatting.MultipleStatementAlignment">
200+
> <type>error</type>
201+
> </rule>
202+
> ```
203203
204204
<p align="right"><a href="#table-of-contents">back to top</a></p>
205205
@@ -487,13 +487,13 @@ This sniff checks that two strings using the same quoting style are not concaten
487487

488488
If the `error` property is set to `false`, a warning will be thrown for violations instead of an error.
489489

490-
```xml
491-
<rule ref="Generic.Strings.UnnecessaryStringConcat">
492-
<properties>
493-
<property name="error" value="false" />
494-
</properties>
495-
</rule>
496-
```
490+
> [!WARNING]
491+
> The `error` property should no longer be used. Set `<type>` instead.
492+
> ```xml
493+
> <rule ref="Generic.Strings.UnnecessaryStringConcat">
494+
> <type>warning</type>
495+
> </rule>
496+
> ```
497497
498498
<p align="right"><a href="#table-of-contents">back to top</a></p>
499499

0 commit comments

Comments
 (0)