cyclop

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 12 Imported by: 0

README

cyclop

Coverage Status

Cyclop calculates cyclomatic complexities of functions in Go source code.

Usage

go get github.com/bkielbasa/cyclop

Options

  -fail-from int
        returns the program with non-zero result if find at least one function with complexity higher than N (default 10)
  -no-tests
        should ignore test files (default true)
  -short-avg
        displays only average complexity in short format
  -top int
        displays top N functions with the biggest complexity
  -total
        displays total coverage

Examples

cyclop .
cyclop -no-tests=true .
cyclop -top=10 .

Documentation

Overview

Cyclop calculates cyclomatic complexities of functions in Go source code. Simple usage:

cyclop .

Read more about usage in https://github.com/bkielbasa/cyclop/blob/master/README.md

Directories

Path Synopsis
sub

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL