Skip to content

Commit 2879e29

Browse files
committed
4.0 | Wiki/Customisable Properties: update for removed properties
1 parent 93f71d1 commit 2879e29

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
@@ -248,13 +248,13 @@ The difference in alignment between two adjacent assignments is occasionally qui
248248

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

251-
```xml
252-
<rule ref="Generic.Formatting.MultipleStatementAlignment">
253-
<properties>
254-
<property name="error" value="true" />
255-
</properties>
256-
</rule>
257-
```
251+
> [!WARNING]
252+
> The `error` property should no longer be used. Set `<type>` instead.
253+
> ```xml
254+
> <rule ref="Generic.Formatting.MultipleStatementAlignment">
255+
> <type>error</type>
256+
> </rule>
257+
> ```
258258
259259
<p align="right"><a href="#table-of-contents">back to top</a></p>
260260
@@ -542,13 +542,13 @@ This sniff checks that two strings using the same quoting style are not concaten
542542

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

545-
```xml
546-
<rule ref="Generic.Strings.UnnecessaryStringConcat">
547-
<properties>
548-
<property name="error" value="false" />
549-
</properties>
550-
</rule>
551-
```
545+
> [!WARNING]
546+
> The `error` property should no longer be used. Set `<type>` instead.
547+
> ```xml
548+
> <rule ref="Generic.Strings.UnnecessaryStringConcat">
549+
> <type>warning</type>
550+
> </rule>
551+
> ```
552552
553553
<p align="right"><a href="#table-of-contents">back to top</a></p>
554554

0 commit comments

Comments
 (0)