Documentation
¶
Index ¶
- func ColorOutputBoolZeroableValue(data bool) string
- func ColorOutputFloatZeroablePercentValue(data float64) string
- func ColorOutputFloatZeroableValue(data float64) string
- func ColorOutputIntZeroableValue(data int64) string
- func ColorWidthOutputFloatZeroablePercentValue(data float64, width int64) string
- func ColorWidthOutputFloatZeroableValue(data float64, width int64) string
- func ColorWidthOutputIntZeroableValue(data int64, width int64) string
- func GetJsonClassRepr(c *symbols.Class) (string, error)
- func GetJsonClassReprWithFlag(c *symbols.Class) (string, error)
- func GetJsonFileRepr(f *symbols.File) (string, error)
- func GetJsonFileReprWithFlag(f *symbols.File) (string, error)
- func GetJsonFunctionRepr(f *symbols.Function) (string, error)
- func GetJsonFunctionReprWithFlag(f *symbols.Function) (string, error)
- func GetJsonNamespaceRepr(f *symbols.Namespace) (string, error)
- func GetJsonNamespaceReprWithFlag(f *symbols.Namespace) (string, error)
- func GetPrettifyJsonClassesRepr(c []*symbols.Class) (string, error)
- func GetPrettifyJsonFilesRepr(f []*symbols.File) (string, error)
- func GetPrettifyJsonFunctionsRepr(f []*symbols.Function) (string, error)
- func GetPrettifyJsonNamespacesRepr(n []*symbols.Namespace) (string, error)
- func GetShortStringFileRepr(f *symbols.File) string
- func GetShortStringFunctionRepr(f *symbols.Function) string
- func GetShortStringNamespaceRepr(f *symbols.Namespace) string
- func GetStringClassRepr(c *symbols.Class) string
- func GetStringFileRepr(f *symbols.File) string
- func GetStringFunctionRepr(f *symbols.Function) string
- func GetStringNamespaceRepr(n *symbols.Namespace) string
- func GetTableClassesRepr(c []*symbols.Class, offset int64) string
- func GetTableFilesRepr(f []*symbols.File, offset int64) string
- func GetTableFunctionsRepr(f []*symbols.Function, offset int64) string
- func GetTableNamespacesRepr(n []*symbols.Namespace, offset int64) string
- type ClassData
- type FileData
- type FunctionData
- type NamespaceData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorOutputBoolZeroableValue ¶ added in v1.0.0
func ColorOutputFloatZeroablePercentValue ¶ added in v0.4.0
func ColorOutputFloatZeroableValue ¶ added in v0.4.0
func ColorOutputIntZeroableValue ¶ added in v0.4.0
func ColorWidthOutputFloatZeroablePercentValue ¶ added in v0.4.0
func ColorWidthOutputFloatZeroableValue ¶ added in v0.4.0
func ColorWidthOutputIntZeroableValue ¶ added in v0.4.0
func GetShortStringFileRepr ¶
func GetStringClassRepr ¶
func GetStringFileRepr ¶
func GetStringFunctionRepr ¶
func GetStringNamespaceRepr ¶
func GetTableClassesRepr ¶ added in v0.4.0
func GetTableFilesRepr ¶ added in v0.4.0
func GetTableFunctionsRepr ¶ added in v0.4.0
Types ¶
type ClassData ¶
type ClassData struct {
Name string `json:"name"`
File string `json:"file"`
Type string `json:"type"`
Afferent float64 `json:"aff"`
Efferent float64 `json:"eff"`
Instability float64 `json:"instab"`
Lcom float64 `json:"lcom"`
Lcom4 int64 `json:"lcom4"`
CountDeps int64 `json:"countDeps"`
CountDepsBy int64 `json:"countDepsBy"`
CountFullyTypedMethods int64 `json:"countFullyTypedMethods"`
// contains filtered or unexported fields
}
func ClassToData ¶ added in v0.4.0
type FunctionData ¶
type FunctionData struct {
Name string `json:"name"`
Type string `json:"type"`
Class string `json:"className"`
UsesCount int64 `json:"usesCount"`
CountCalled int64 `json:"countCalled"`
CountCalledBy int64 `json:"countCalledBy"`
CountDeps int64 `json:"countDeps"`
CountDepsBy int64 `json:"countDepsBy"`
CyclomaticComplexity int64 `json:"cyclomaticComplexity"`
CountMagicNumbers int64 `json:"countMagicNumbers"`
FullyTyped bool `json:"fullyTyped"`
}
type NamespaceData ¶
type NamespaceData struct {
Name string `json:"name"`
FullName string `json:"fullName"`
Files int64 `json:"files"`
Classes int64 `json:"classes"`
AbstractClasses int64 `json:"abstractClasses"`
OwnClasses int64 `json:"ownClasses"`
Afferent float64 `json:"afferentCouplings"`
Efferent float64 `json:"efferentCouplings"`
Instability float64 `json:"instability"`
Abstractness float64 `json:"abstractness"`
Childs int64 `json:"childs"`
}
func NamespaceToData ¶ added in v0.4.0
func NamespaceToData(n *symbols.Namespace) *NamespaceData
Click to show internal directories.
Click to hide internal directories.