fzipp / gocyclo

Calculate cyclomatic complexities of functions in Go source code.
BSD 3-Clause "New" or "Revised" License
1.33k stars 81 forks source link

Ignore the vendor folder by default #42

Closed Jacalz closed 2 years ago

Jacalz commented 2 years ago

We are using this project for Fyne, but we need to remove the vendor folder (https://github.com/fyne-io/fyne/blob/7229e889d49c81a83b0b7e09400837f67f6ddad5/.github/workflows/static_analysis.yml#L21) to ignore picking up things in packages that we do not maintain. It would be great if gocyclo could do like many other Go tools and simple ignore looking in the vendor folder.

Jacalz commented 2 years ago

Thanks :)