Skip to content

4.0 | Wiki/Customisable Properties: update for removed properties #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions wiki/Customisable-Sniff-Properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@ The difference in alignment between two adjacent assignments is occasionally qui

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

```xml
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<properties>
<property name="error" value="true" />
</properties>
</rule>
```
> [!WARNING]
> The `error` property should no longer be used. Set `<type>` instead.
> ```xml
> <rule ref="Generic.Formatting.MultipleStatementAlignment">
> <type>error</type>
> </rule>
> ```

<p align="right"><a href="#table-of-contents">back to top</a></p>

Expand Down Expand Up @@ -542,13 +542,13 @@ This sniff checks that two strings using the same quoting style are not concaten

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

```xml
<rule ref="Generic.Strings.UnnecessaryStringConcat">
<properties>
<property name="error" value="false" />
</properties>
</rule>
```
> [!WARNING]
> The `error` property should no longer be used. Set `<type>` instead.
> ```xml
> <rule ref="Generic.Strings.UnnecessaryStringConcat">
> <type>warning</type>
> </rule>
> ```

<p align="right"><a href="#table-of-contents">back to top</a></p>

Expand Down
Loading