Добавлено формирование детальной ошибки
This commit is contained in:
@@ -41,7 +41,7 @@ public class Reporter : IReporter
|
||||
Report(violation.ToString());
|
||||
}
|
||||
|
||||
public void ReportViolation(string fileName, int line, int column, RuleViolationSeverity severity, string ruleName, string template, params string[] param)
|
||||
public void ReportViolation(string fileName, int line, int column, RuleViolationSeverity severity, string ruleName, string template, BaseRuleVisitor.ExtractedBlock? snippet, params string[] param)
|
||||
{
|
||||
ReportViolation(new RuleTemplateViolation()
|
||||
{
|
||||
@@ -52,6 +52,7 @@ public class Reporter : IReporter
|
||||
Column = column,
|
||||
Severity = severity,
|
||||
Params = param.ToList(),
|
||||
Snippet = snippet,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user