evaluator

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTechStopWords

func IsTechStopWords(firstWord string) bool

func SplitCamelcase

func SplitCamelcase(src string) (entries []string)

Types

type Controller

type Controller struct {
}

func (Controller) Evaluate

func (Controller) Evaluate(node core_domain.CodeDataStruct)

type Empty

type Empty struct {
}

func (Empty) Evaluate

type EvaluateModel

type EvaluateModel struct {
	Nullable       Nullable
	ServiceSummary ServiceSummary
	UtilsSummary   UtilsSummary
	Summary        Summary
}

func NewEvaluateModel

func NewEvaluateModel() EvaluateModel

type NormalIssues

type NormalIssues struct {
}

type NullPointException

type NullPointException struct {
}

func (NullPointException) Evaluate

func (NullPointException) EvaluateList

func (n NullPointException) EvaluateList(evaluateModel *EvaluateModel, nodes []core_domain.CodeDataStruct, nodeMap map[string]core_domain.CodeDataStruct, identifiers []core_domain.CodeDataStruct)

type Nullable

type Nullable struct {
	Items []string
}

type Service

type Service struct {
}

func (Service) Evaluate

func (s Service) Evaluate(result *EvaluateModel, node core_domain.CodeDataStruct)

func (Service) EvaluateList

func (s Service) EvaluateList(evaluateModel *EvaluateModel, nodes []core_domain.CodeDataStruct, nodeMap map[string]core_domain.CodeDataStruct, identifiers []core_domain.CodeDataStruct)

type ServiceSummary

type ServiceSummary struct {
	LifecycleMap  map[string][]string
	ReturnTypeMap map[string][]string
	RelatedMethod []string
}

type Summary

type Summary struct {
	UtilsCount               int
	ClassCount               int
	MethodCount              int
	NormalMethodCount        int
	TotalMethodLength        int
	StaticMethodCount        int
	MethodLengthStdDeviation float64
	MethodNumStdDeviation    float64
}

type Util

type Util struct {
}

func (Util) Evaluate

func (Util) Evaluate(result *EvaluateModel, node core_domain.CodeDataStruct)

func (Util) EvaluateList

func (s Util) EvaluateList(evaluateModel *EvaluateModel, nodes []core_domain.CodeDataStruct, nodeMap map[string]core_domain.CodeDataStruct, identifiers []core_domain.CodeDataStruct)

type UtilsSummary

type UtilsSummary struct {
}

Jump to

Keyboard shortcuts

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