fzipp / gocyclo

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

Implement -ignore #11

Closed jgautheron closed 3 years ago

jgautheron commented 8 years ago

This PR implements the possibility to ignore files that match the given regular expression. Fixes #9, #4 (generic approach).

Example:

$ gocyclo -ignore "yacc|\.pb\.|Godeps" .
tamird commented 8 years ago

LGTM. @fzipp any chance of merging this?

GregorioDiStefano commented 8 years ago

You can also use something like:

`"~/go/bin/gocyclo -avg `find . -iname '*.go' | grep -v 'Godeps' | grep -v '_test.go'`"`
LasTshaMAN commented 5 years ago

Why this still isn't merged ?

bkielbasa commented 4 years ago

Hi! I'm working on the alternative for this project https://github.com/bkielbasa/cyclop If you want to contribute, just do it :) I'll be happy to hear about ideas and PRs.

fzipp commented 3 years ago

Fixed by 4a36b7d43972d5dd35bc5204f7314dcb8cc848e4