cyclocomplex

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScanMode_Cc = iota
	ScanMode_ALL
	ScanMode_File
)

Variables

This section is empty.

Functions

func InjectCyclomaticComplex

func InjectCyclomaticComplex(s *CycloComplex)

func LoadCyclomaticComplex

func LoadCyclomaticComplex() baseiface.ISingleton

Types

type CycloComplex

type CycloComplex struct {
	basedto.BaseEntitySingle
	Dirs             []string
	Report           []string
	Rootdir, DestDir string
	Cmd              string
	Cmds             []string

	ScanMode int
	// contains filtered or unexported fields
}

func FindBeanCycloComplex

func FindBeanCycloComplex() *CycloComplex

func NewCycloComplex

func NewCycloComplex() *CycloComplex

func (*CycloComplex) CcCheckAllScan

func (cc *CycloComplex) CcCheckAllScan(topNums ...int)

func (*CycloComplex) CcCheckFileScan

func (cc *CycloComplex) CcCheckFileScan(file string, topNums ...int) error

func (*CycloComplex) CcCheckScan

func (cc *CycloComplex) CcCheckScan(topNums ...int)

func (*CycloComplex) CcMkdir

func (cc *CycloComplex) CcMkdir()

func (*CycloComplex) Ccrmdir

func (cc *CycloComplex) Ccrmdir()

func (*CycloComplex) ExecScanCmd

func (cc *CycloComplex) ExecScanCmd()

func (*CycloComplex) ExistGoFiles

func (cc *CycloComplex) ExistGoFiles(dirPath string) (bool, error)

func (*CycloComplex) FindDirs

func (cc *CycloComplex) FindDirs(rootdir string) error

func (*CycloComplex) Scan

func (cc *CycloComplex) Scan() ([]string, error)

func (*CycloComplex) ScanAll

func (cc *CycloComplex) ScanAll() ([]string, error)

func (*CycloComplex) ScanFile

func (cc *CycloComplex) ScanFile(file string) ([]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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