Skip to content

Commit

Permalink
Fix diagnostic title
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou committed Oct 18, 2024
1 parent d2be721 commit 61fa4a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ If you are already using other analyzers, you can check [which rules are duplica
|[MA0161](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0161.md)|Usage|UseShellExecute must be explicitly set|ℹ️|||
|[MA0162](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0162.md)|Usage|Use Process.Start overload with ProcessStartInfo|ℹ️|||
|[MA0163](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0163.md)|Usage|UseShellExecute must be false when redirecting standard input or output|⚠️|✔️||
|[MA0164](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0164.md)|Style|Use parentheses to not pattern clearer|⚠️|✔️|✔️|
|[MA0164](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0164.md)|Style|Use parentheses to make not pattern clearer|⚠️|✔️|✔️|

<!-- rules -->

Expand Down
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
|[MA0161](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0161.md)|Usage|UseShellExecute must be explicitly set|<span title='Info'>ℹ️</span>|||
|[MA0162](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0162.md)|Usage|Use Process.Start overload with ProcessStartInfo|<span title='Info'>ℹ️</span>|||
|[MA0163](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0163.md)|Usage|UseShellExecute must be false when redirecting standard input or output|<span title='Warning'>⚠️</span>|✔️||
|[MA0164](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0164.md)|Style|Use parentheses to not pattern clearer|<span title='Warning'>⚠️</span>|✔️|✔️|
|[MA0164](https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0164.md)|Style|Use parentheses to make not pattern clearer|<span title='Warning'>⚠️</span>|✔️|✔️|

|Id|Suppressed rule|Justification|
|--|---------------|-------------|
Expand Down Expand Up @@ -661,7 +661,7 @@ dotnet_diagnostic.MA0162.severity = none
# MA0163: UseShellExecute must be false when redirecting standard input or output
dotnet_diagnostic.MA0163.severity = warning
# MA0164: Use parentheses to not pattern clearer
# MA0164: Use parentheses to make not pattern clearer
dotnet_diagnostic.MA0164.severity = warning
```

Expand Down Expand Up @@ -1154,6 +1154,6 @@ dotnet_diagnostic.MA0162.severity = none
# MA0163: UseShellExecute must be false when redirecting standard input or output
dotnet_diagnostic.MA0163.severity = none
# MA0164: Use parentheses to not pattern clearer
# MA0164: Use parentheses to make not pattern clearer
dotnet_diagnostic.MA0164.severity = none
```
2 changes: 1 addition & 1 deletion docs/Rules/MA0164.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MA0164 - Use parentheses to not pattern clearer
# MA0164 - Use parentheses to make not pattern clearer

`not` patterns are often wrongly used in combination with the `or` operator. This rule suggests using parentheses to make evaluation order clearer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public sealed class NotPatternShouldBeParenthesizedAnalyzer : DiagnosticAnalyzer
{
private static readonly DiagnosticDescriptor Rule = new(
RuleIdentifiers.NotPatternShouldBeParenthesized,
title: "Use parentheses to not pattern clearer",
messageFormat: "Use parentheses to make it clearer",
title: "Use parentheses to make not pattern clearer",
messageFormat: "Use parentheses to make not pattern clearer",
RuleCategories.Style,
DiagnosticSeverity.Warning,
isEnabledByDefault: true,
Expand Down

0 comments on commit 61fa4a3

Please sign in to comment.