Versions in this module Expand all Collapse all v0 v0.0.7 Mar 15, 2021 v0.0.6 Mar 14, 2021 v0.0.4 Mar 14, 2021 Changes in this version + func PythonMethodDocumentation(node *sitter.Node) int + func PythonNumMethods(node *sitter.Node) int + type JavaFile struct + Metrics *JavaFileMetrics + Path string + Root *sitter.Node + Source []byte + func NewJavaFile(path string) *JavaFile + func NewJavaFileFromContents(path string, contents []byte) *JavaFile + func (jf *JavaFile) Parse() + type JavaFileMetrics struct + AvgComplexity float64 + AvgNesting float64 + Cloc int + Dloc int + DocumentationLines int + Lloc int + Loc int + SumComplexity int + SumNesting int + type Language struct + Language *sitter.Language + Name string + type Metrics struct + CLOC int + LLOC int + LOC int + Language string + McCC int + NL int + Name string + NumMethods int + type PythonFile struct + Metrics *PythonFileMetrics + Path string + Root *sitter.Node + Source []byte + func NewPythonFile(path string) *PythonFile + func NewPythonFileFromContents(path string, contents []byte) *PythonFile + func (pf *PythonFile) Parse() + type PythonFileMetrics struct + AvgComplexity float64 + AvgNesting float64 + Cloc int + Dloc int + DocumentationLines int + Lloc int + Loc int + SumComplexity int + SumNesting int v0.0.3 Mar 14, 2021