bs_domain

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCalledClasses

func GetCalledClasses(class BSDataStruct, maps map[string]bool) []string

fixme java lambda & recursive

func SortSmellByType

func SortSmellByType(models []BadSmellModel, filterFunc func(key string) bool) map[string][]BadSmellModel

func WithoutGetterSetterClass

func WithoutGetterSetterClass(fullMethods []BSFunction) int

Types

type BSDataStruct

type BSDataStruct struct {
	core_domain.CodeDataStruct

	Functions    []BSFunction
	DataStructBS ClassBadSmellInfo
}

func NewJFullClassNode

func NewJFullClassNode() BSDataStruct

func (*BSDataStruct) HasCallSuper

func (b *BSDataStruct) HasCallSuper() bool

type BSFunction

type BSFunction struct {
	core_domain.CodeFunction

	FunctionBody string
	FunctionBS   FunctionBSInfo
}

type BadSmellModel

type BadSmellModel struct {
	File        string `json:"EntityName,omitempty"`
	Line        string `json:"Line,omitempty"`
	Bs          string `json:"BS,omitempty"`
	Description string `json:"Description,omitempty"`
	Size        int    `size:"Description,omitempty"`
}

func FilterBadSmellList

func FilterBadSmellList(models []BadSmellModel, ignoreRules map[string]bool) []BadSmellModel

type ClassBadSmellInfo

type ClassBadSmellInfo struct {
	OverrideSize  int
	PublicVarSize int
}

type FunctionBSInfo

type FunctionBSInfo struct {
	IfSize     int
	SwitchSize int
	IfInfo     []IfParInfo
}

func NewMethodBadSmellInfo

func NewMethodBadSmellInfo() FunctionBSInfo

type IfParInfo

type IfParInfo struct {
	StartLine int
	EndLine   int
}

func NewIfPairInfo

func NewIfPairInfo() IfParInfo

Jump to

Keyboard shortcuts

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