Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatOutput ¶
func NewStatOutput ¶
func NewStatOutput(stats gocyclo.Stats, formatFlag string, fileLocation *string, sortOutput *bool, printTop *int) *StatOutput
NewOutput creates a new Output object. DEFAULT: If sortOutput is nil, it will be set to true. DEFAULT: If printTop is nil, it will be set to 1000.
func (*StatOutput) PrintAverageJSON ¶
func (o *StatOutput) PrintAverageJSON()
PrintAverageJSON prints the average complexity of the given stats in JSON format.
func (*StatOutput) PrintStats ¶
func (o *StatOutput) PrintStats() error
PrintStats prints the given stats in the given format. by default it prints in JSON format.
Click to show internal directories.
Click to hide internal directories.