Изменено формирование ошибок на темплейты
This commit is contained in:
@@ -76,7 +76,7 @@ public class SqlRuleVisitor : IRuleVisitor
|
||||
}
|
||||
}
|
||||
|
||||
violations.ForEach(t => _reporter.ReportViolation(filePath, t.Line, t.Column, rule.Severity, t.RuleName, t.Message));
|
||||
violations.ForEach(t => _reporter.ReportViolation(filePath, t.Line, t.Column, rule.Severity, t.RuleName, t.Template, t.Params));
|
||||
}
|
||||
|
||||
private static bool VisitorIsBlackListedForDynamicSql(IRule visitor)
|
||||
@@ -109,7 +109,15 @@ public class SqlRuleVisitor : IRuleVisitor
|
||||
|
||||
if (!globalRulesOnLine.Any())
|
||||
{
|
||||
_reporter.ReportViolation(new RuleViolation(sqlPath, "invalid-syntax", error.Message, error.Line, error.Column, RuleViolationSeverity.Critical));
|
||||
_reporter.ReportViolation(new RuleViolation()
|
||||
{
|
||||
FileName = sqlPath,
|
||||
RuleName = "invalid-syntax",
|
||||
Text = error.Message,
|
||||
Line = error.Line,
|
||||
Column = error.Column,
|
||||
Severity = RuleViolationSeverity.Critical
|
||||
});
|
||||
if (updatedExitCode)
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user