representator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorOutputBoolZeroableValue added in v1.0.0

func ColorOutputBoolZeroableValue(data bool) string

func ColorOutputFloatZeroablePercentValue added in v0.4.0

func ColorOutputFloatZeroablePercentValue(data float64) string

func ColorOutputFloatZeroableValue added in v0.4.0

func ColorOutputFloatZeroableValue(data float64) string

func ColorOutputIntZeroableValue added in v0.4.0

func ColorOutputIntZeroableValue(data int64) string

func ColorWidthOutputFloatZeroablePercentValue added in v0.4.0

func ColorWidthOutputFloatZeroablePercentValue(data float64, width int64) string

func ColorWidthOutputFloatZeroableValue added in v0.4.0

func ColorWidthOutputFloatZeroableValue(data float64, width int64) string

func ColorWidthOutputIntZeroableValue added in v0.4.0

func ColorWidthOutputIntZeroableValue(data int64, width int64) string

func GetJsonClassRepr

func GetJsonClassRepr(c *symbols.Class) (string, error)

func GetJsonClassReprWithFlag

func GetJsonClassReprWithFlag(c *symbols.Class) (string, error)

func GetJsonFileRepr

func GetJsonFileRepr(f *symbols.File) (string, error)

func GetJsonFileReprWithFlag

func GetJsonFileReprWithFlag(f *symbols.File) (string, error)

func GetJsonFunctionRepr

func GetJsonFunctionRepr(f *symbols.Function) (string, error)

func GetJsonFunctionReprWithFlag

func GetJsonFunctionReprWithFlag(f *symbols.Function) (string, error)

func GetJsonNamespaceRepr

func GetJsonNamespaceRepr(f *symbols.Namespace) (string, error)

func GetJsonNamespaceReprWithFlag

func GetJsonNamespaceReprWithFlag(f *symbols.Namespace) (string, error)

func GetPrettifyJsonClassesRepr

func GetPrettifyJsonClassesRepr(c []*symbols.Class) (string, error)

func GetPrettifyJsonFilesRepr

func GetPrettifyJsonFilesRepr(f []*symbols.File) (string, error)

func GetPrettifyJsonFunctionsRepr

func GetPrettifyJsonFunctionsRepr(f []*symbols.Function) (string, error)

func GetPrettifyJsonNamespacesRepr

func GetPrettifyJsonNamespacesRepr(n []*symbols.Namespace) (string, error)

func GetShortStringFileRepr

func GetShortStringFileRepr(f *symbols.File) string

func GetShortStringFunctionRepr

func GetShortStringFunctionRepr(f *symbols.Function) string

func GetShortStringNamespaceRepr

func GetShortStringNamespaceRepr(f *symbols.Namespace) string

func GetStringClassRepr

func GetStringClassRepr(c *symbols.Class) string

func GetStringFileRepr

func GetStringFileRepr(f *symbols.File) string

func GetStringFunctionRepr

func GetStringFunctionRepr(f *symbols.Function) string

func GetStringNamespaceRepr

func GetStringNamespaceRepr(n *symbols.Namespace) string

func GetTableClassesRepr added in v0.4.0

func GetTableClassesRepr(c []*symbols.Class, offset int64) string

func GetTableFilesRepr added in v0.4.0

func GetTableFilesRepr(f []*symbols.File, offset int64) string

func GetTableFunctionsRepr added in v0.4.0

func GetTableFunctionsRepr(f []*symbols.Function, offset int64) string

func GetTableNamespacesRepr added in v0.4.0

func GetTableNamespacesRepr(n []*symbols.Namespace, offset int64) string

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

func ClassToData(c *symbols.Class) *ClassData

type FileData

type FileData struct {
	Name string `json:"name"`
	Path string `json:"path"`

	CountRequiredRoot  int64 `json:"countRequiredInRoot"`
	CountRequiredBlock int64 `json:"countRequiredInBlock"`
	CountRequiredBy    int64 `json:"countRequiredBy"`
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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