-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Cake.Issues.Reporting.Console shows an error when the issue is at the end of the line
┌─Errata Error─────────────────────────────────────────────────────────────────┐
│ An error occured when rendering a diagnostic. │
│ Message: label column cannot start at the end of the line │
│ │
│ Diagnostic: │
│ Message: SA1629 │
│ Category: Warning │
│ Note: Project: │
│ src/MyProject/MyProject.csproj │
│ See │
│ https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentati │
│ on/SA1629.md for more information │
│ Sources: src/MyProject/MyFile.cs │
│ , │
│ src/MyProject/MyFile.c │
│ s │
│ │
│ Context: │
│ Row: 20 │
│ Column: 119 │
│ Current line length: 119 │
│ Line count: 84 │
│ │
│ Stack trace: │
│ at Errata.Source.GetSourceSpan(Location location, Int32 length) in │
│ /_/src/Errata/Source.cs:line 112 │
│ at Errata.Label.GetSourceSpan(Source source) in │
│ /_/src/Errata/Label.cs:line 122 │
│ at Errata.SourceGroupCollection.CreateFromLabels(ISourceRepository │
│ repository, List`1 labels) in │
│ /_/src/Errata/Rendering/SourceGroupCollection.cs:line 41 │
│ at Errata.ReportContext.CreateDiagnosticContext(Diagnostic diagnostic) in │
│ /_/src/Errata/Rendering/ReportContext.cs:line 37 │
│ at Errata.DiagnosticRenderer.Render(Diagnostic diagnostic) in │
│ /_/src/Errata/Rendering/DiagnosticRenderer.cs:line 24 │
│ at Errata.ReportRenderer.Render(Report report, ReportSettings settings) │
│ in /_/src/Errata/Rendering/ReportRenderer.cs:line 43 │
│ │
│ If you believe this is a bug in Errata, please submit an issue at │
│ https://github.com/spectreconsole/errata/issues/new│
└──────────────────────────────────────────────────────────────────────────────┘
Copilot
Metadata
Metadata
Assignees
Labels
Area:Reporting:ConsoleReporting to consoleReporting to console