Skip to content

Commit

Permalink
Merge pull request #70 from golangci/feature/skip-cgo-issues
Browse files Browse the repository at this point in the history
skip all cgo issues
  • Loading branch information
jirfag authored Jun 6, 2018
2 parents 58b4d28 + f6a7e89 commit af77076
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/result/processors/nolint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af77076

Please sign in to comment.