representator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetShortClassRepr

func GetShortClassRepr(c *symbols.Class) string

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

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"`
	// contains filtered or unexported fields
}

type FileData

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

	CountRequiredRoot  int64
	CountRequiredBlock int64
	CountRequiredBy    int64
	// 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:"cc"`
	CountMagicNumbers    int64 `json:"cmn"`
}

type NamespaceData

type NamespaceData struct {
	Name     string `json:"name"`
	FullName string `json:"fullName"`

	Files   int64 `json:"files"`
	Classes int64 `json:"classes"`

	Aff    float64 `json:"aff"`
	Eff    float64 `json:"eff"`
	Instab float64 `json:"instab"`

	Childs int64 `json:"childs"`
}

Jump to

Keyboard shortcuts

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