BugHunter.AnalyzersVersions.SystemIO.Helpers.AnalyzerHelper.GetRule C# (CSharp) Method

GetRule() public static method

Constructs a Diagnostic Descriptor for SystemIOAnalyzer
public static GetRule ( string diagnosticId ) : DiagnosticDescriptor
diagnosticId string Id of the diagnostic
return DiagnosticDescriptor
        public static DiagnosticDescriptor GetRule(string diagnosticId) => new DiagnosticDescriptor(
            "BH1014",
            title: "Do not use System.IO",
            messageFormat: "'{0}' should not use 'System.IO' directly. Use equivalent method from namespace 'CMS.IO'.",
            category: nameof(AnalyzerCategories.CmsApiReplacements),
            defaultSeverity: DiagnosticSeverity.Warning,
            isEnabledByDefault: true,
            description: "'System.IO' namespace should not be used directly. Use equivalent method from namespace 'CMS.IO'.");
    }
AnalyzerHelper