demeter

package
v0.0.0-...-112ca66 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Violation

type Violation struct {
	Filename string
	Line     int
	Col      int
	Expr     string
}

Violation represents a violation of the Law of Demeter.

func AnalyzeFile

func AnalyzeFile(filename string) ([]*Violation, error)

AnalyzeFile analyzes a single file and returns the violations. filename should be an absolute path.

func AnalyzePackage

func AnalyzePackage(dirname string) ([]*Violation, error)

AnalyzePackage analyzes a package and returns the violations. dirname should be an absolute path.

func (*Violation) String

func (v *Violation) String() string

Jump to

Keyboard shortcuts

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