metrieke

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PythonMethodDocumentation

func PythonMethodDocumentation(node *sitter.Node) int

func PythonNumMethods

func PythonNumMethods(node *sitter.Node) int

Types

type JavaFile

type JavaFile struct {
	Source  []byte
	Path    string
	Root    *sitter.Node
	Metrics *JavaFileMetrics
}

func NewJavaFile

func NewJavaFile(path string) *JavaFile

func NewJavaFileFromContents

func NewJavaFileFromContents(path string, contents []byte) *JavaFile

func (*JavaFile) Parse

func (jf *JavaFile) Parse()

type JavaFileMetrics

type JavaFileMetrics struct {
	Loc                int
	Lloc               int
	Dloc               int
	Cloc               int
	DocumentationLines int
	AvgComplexity      float64
	SumComplexity      int
	AvgNesting         float64
	SumNesting         int
}

type Language

type Language struct {
	Name     string
	Language *sitter.Language
}

type Metrics

type Metrics struct {
	Name       string
	Language   string
	NumMethods int
	LOC        int
	LLOC       int
	CLOC       int
	McCC       int
	NL         int
}

type PythonFile

type PythonFile struct {
	Source  []byte
	Path    string
	Root    *sitter.Node
	Metrics *PythonFileMetrics
}

func NewPythonFile

func NewPythonFile(path string) *PythonFile

func NewPythonFileFromContents

func NewPythonFileFromContents(path string, contents []byte) *PythonFile

func (*PythonFile) Parse

func (pf *PythonFile) Parse()

type PythonFileMetrics

type PythonFileMetrics struct {
	Loc                int
	Lloc               int
	Dloc               int
	Cloc               int
	DocumentationLines int
	AvgComplexity      float64
	SumComplexity      int
	AvgNesting         float64
	SumNesting         int
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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