(f FileAnnotation)
| 306 | } |
| 307 | |
| 308 | func newExternalFileAnnotation(f FileAnnotation) externalFileAnnotation { |
| 309 | path := "" |
| 310 | if f.FileInfo() != nil { |
| 311 | path = f.FileInfo().ExternalPath() |
| 312 | } |
| 313 | return externalFileAnnotation{ |
| 314 | Path: path, |
| 315 | StartLine: atLeast1(f.StartLine()), |
| 316 | StartColumn: atLeast1(f.StartColumn()), |
| 317 | EndLine: atLeast1(f.EndLine()), |
| 318 | EndColumn: atLeast1(f.EndColumn()), |
| 319 | Type: f.Type(), |
| 320 | Message: f.Message(), |
| 321 | Plugin: f.PluginName(), |
| 322 | Policy: f.PolicyName(), |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | // externalGitLabCodeQualityIssue represents the GitLab Code Quality Report Issue structure |
| 327 | // expected for the GitLab Code Quality Report output. |
no test coverage detected
searching dependent graphs…