示例#1
0
        static NoCommentAnalyzer()
        {
            NoCommentRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoCommentRuleId,
                                                                    nameof(Resources.NoCommentRuleTitle), nameof(Resources.NoCommentRuleMessageFormat),
                                                                    nameof(Resources.NoCommentRuleDescription), Category);

            NoCommentMethodRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoCommentMethodRuleId,
                                                                          nameof(Resources.NoCommentRuleTitle), nameof(Resources.NoCommentRuleMessageFormat),
                                                                          nameof(Resources.NoCommentRuleDescription), Category);

            NoCommentPropertyRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoCommentPropertyRuleId,
                                                                            nameof(Resources.NoCommentRuleTitle), nameof(Resources.NoCommentRuleMessageFormat),
                                                                            nameof(Resources.NoCommentRuleDescription), Category);

            NoSummaryRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoSummaryRuleId,
                                                                    nameof(Resources.NoSummaryRuleTitle), nameof(Resources.NoSummaryRuleMessageFormat),
                                                                    nameof(Resources.NoSummaryRuleDescription), Category);

            NoCodeRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoCodeRuleId,
                                                                 nameof(Resources.NoCodeRuleTitle), nameof(Resources.NoCodeRuleMessageFormat),
                                                                 nameof(Resources.NoCodeRuleDescription), Category);

            NoReturnsRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoReturnsRuleId,
                                                                    nameof(Resources.NoReturnsRuleTitle), nameof(Resources.NoReturnsRuleMessageFormat),
                                                                    nameof(Resources.NoReturnsRuleDescription), Category);

            NoParamRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoParamRuleId,
                                                                  nameof(Resources.NoParamRuleTitle), nameof(Resources.NoParamRuleMessageFormat),
                                                                  nameof(Resources.NoParamRuleDescription), Category);

            NoExceptionRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoExceptionRuleId,
                                                                      nameof(Resources.NoExceptionRuleTitle), nameof(Resources.NoExceptionRuleMessageFormat),
                                                                      nameof(Resources.NoExceptionRuleDescription), Category);
        }
示例#2
0
 static XmlElementAnalyzer()
 {
     NoXmlTextRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoXmlTextRuleId, nameof(Resources.NoXmlTextRulerTitle),
                                                             nameof(Resources.NoXmlTextRuleMessageFormat), nameof(Resources.NoXmlTextRuleDescription), Category);
     NoEndTagRule = AnalyzerUtil.CreateDiagnosticDescriptor(NoEndTagRuleId, nameof(Resources.NoEndTagRuleTitle),
                                                            nameof(Resources.NoEndTagRuleMessageFormat), nameof(Resources.NoEndTagRuleDescription), Category);
 }