Rule Definition
Without message for the Obsolete attributes, the maintainer waste time to understand the purpose of using the obsolete attribute.
Remediation
Ensure to explain for each Obsolete Attribute, it will save time for the maintenance.
Violation Code Sample
public class A
{
[Obsolete] // Noncompliant
public void Print()
{ ... }
}
Fixed Code Sample
public class A
{
[Obsolete("Print content")]
public void print()
{ ... }
}
Reference
https://docs.microsoft.com/en-us/dotnet/api/system.obsoleteattribute?view=netcore-3.1
Related Technologies
Technical Criterion
Documentation - Style Conformity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.