bs

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BS_LONG_PARAS_LENGTH = 5
	BS_IF_SWITCH_LENGTH  = 8
	BS_LARGE_LENGTH      = 20
	BS_METHOD_LENGTH     = 30
	BS_IF_LINES_LENGTH   = 3

	SMELL_GARPH_CONNECTED_CALL = "graphConnectedCall"
	SMELL_LAZY_ELEMENT         = "lazyElement"
	SMELL_LONG_METHOD          = "longMethod"
	SMELL_DATA_CLASS           = "dataClass"
	SMELL_REFUSED_BEQUEST      = "refusedBequest"
	SMELL_LARGE_CLASS          = "largeClass"
	SMELL_COMPLEX_CONDITION    = "complexCondition"
	SMELL_REPEATED_SWITCHES    = "repeatedSwitches"
	SMELL_LONG_PARAMETER_LIST  = "longParameterList"
)

Functions

func AnalysisBadSmell

func AnalysisBadSmell(nodes []bs_domain.BSDataStruct) []bs_domain.BadSmellModel

Types

type BadSmellApp

type BadSmellApp struct {
}

func NewBadSmellApp

func NewBadSmellApp() *BadSmellApp

func (*BadSmellApp) AnalysisPath

func (j *BadSmellApp) AnalysisPath(codeDir string) *[]bs_domain.BSDataStruct

func (*BadSmellApp) IdentifyBadSmell

func (j *BadSmellApp) IdentifyBadSmell(nodeInfos *[]bs_domain.BSDataStruct, ignoreRules []string) []bs_domain.BadSmellModel

Jump to

Keyboard shortcuts

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