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
Click to show internal directories.
Click to hide internal directories.