diff --git a/SQLLinter.CLI/Program.cs b/SQLLinter.CLI/Program.cs index 0e689ae..2737344 100644 --- a/SQLLinter.CLI/Program.cs +++ b/SQLLinter.CLI/Program.cs @@ -62,8 +62,8 @@ namespace SQLLinter.CLI //linter.Run(@"C:\Users\frost\Desktop\DISTR-2599\test.sql"); - var formatter = new HtmlReportFormatter_v1(); - var content = formatter.Format(rep.Violations, bpmn); + var formatter = new HtmlReportFormatter_v2(); + var content = formatter.Format(rep.Violations, null); File.WriteAllText(@"C:\Users\frost\Downloads\Telegram Desktop\test.html", content); } diff --git a/SQLLinter/Infrastructure/Reporters/IReportFormatter.cs b/SQLLinter/Infrastructure/Reporters/IReportFormatter.cs index 3b7e631..fe7969c 100644 --- a/SQLLinter/Infrastructure/Reporters/IReportFormatter.cs +++ b/SQLLinter/Infrastructure/Reporters/IReportFormatter.cs @@ -6,5 +6,5 @@ namespace SQLLinter.Infrastructure.Reporters; public interface IReportFormatter { string Format(List violations); - string Format(List violations, BpmnDiagram diagram); + string Format(List violations, BpmnDiagram? diagram); }