analyzers

package
v0.7.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2018 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package analyzers defines analyzers for various package types.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownPackageType     = errors.New("could not find analyzer for package type")
	ErrAnalyzerNotImplemented = errors.New("analyzer is not implemented for package type")
)

Errors that occur when loading analyzers.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	Discover(dir string) ([]module.Module, error) // Finds modules in a given directory.

	// These methods all make best-effort attempts.
	Clean(config module.Module) error           // Cleans build artifacts.
	Build(config module.Module) error           // Builds the module.
	IsBuilt(config module.Module) (bool, error) // Checks whether a module has been built.

	Analyze(config module.Module) (module.Module, error) // Runs an analysis of a module.
}

An Analyzer is an implementation of functionality for different build systems.

func New

func New(key pkg.Type, options map[string]interface{}) (Analyzer, error)

New returns the analyzer for any given package type.

Directories

Path Synopsis
Package golang implements the analyzer for Go.
Package golang implements the analyzer for Go.
resolver
Package resolver provides Go resolvers.
Package resolver provides Go resolvers.
Package nodejs provides analyzers for Node.js projects.
Package nodejs provides analyzers for Node.js projects.
Package python provides analysers for Python projects.
Package python provides analysers for Python projects.
Package ruby provides analysers for Ruby projects.
Package ruby provides analysers for Ruby projects.

Jump to

Keyboard shortcuts

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