diff --git a/pkg/result/processors/nolint.go b/pkg/result/processors/nolint.go index 5a249bb20203..ec3e4e2e9506 100644 --- a/pkg/result/processors/nolint.go +++ b/pkg/result/processors/nolint.go @@ -98,6 +98,10 @@ func (p *Nolint) getOrCreateFileData(i *result.Issue) (*fileData, error) { } func (p *Nolint) shouldPassIssue(i *result.Issue) (bool, error) { + if i.FilePath() == "C" { + return false, nil + } + fd, err := p.getOrCreateFileData(i) if err != nil { return false, err