Compare commits
2 Commits
master
...
Zsolt/RSPE
Author | SHA1 | Date | |
---|---|---|---|
![]() |
87d0363a4d | ||
![]() |
07a6a39e92 |
@ -13,7 +13,7 @@
|
||||
"constantCost": "5min"
|
||||
},
|
||||
"tags": [
|
||||
"confusing",
|
||||
"confusing",
|
||||
"clumsy",
|
||||
"logging"
|
||||
],
|
||||
|
@ -4,7 +4,7 @@ The https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.trace.writel
|
||||
|
||||
https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.traceswitch[`TraceSwitch`] allows trace control via `bool` properties for each relevant https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.tracelevel[`TraceLevel`], such as https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.traceswitch.traceerror[`TraceSwitch.TraceError`].
|
||||
|
||||
Using `Trace.WriteLineIf` with such properties should be avoided since it can lead to misinterpretation and produce confusion.
|
||||
Using `Trace.WriteLineIf` with such properties should be avoided since it can lead to misinterpretation and produce confusion.
|
||||
|
||||
In particular, `Trace.WriteLineIf` may appear as equivalent to the level-specific tracing methods provided by `Trace`, such as https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.trace.traceerror[`Trace.Error`], but it is not.
|
||||
|
||||
|
2
rules/S6675/vbnet/metadata.json
Normal file
2
rules/S6675/vbnet/metadata.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
1
rules/S6675/vbnet/rule.adoc
Normal file
1
rules/S6675/vbnet/rule.adoc
Normal file
@ -0,0 +1 @@
|
||||
include::../rule.adoc[]
|
Loading…
x
Reference in New Issue
Block a user