analyzers

package
v0.7.26 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package analyzers defines analyzers for various package types.

Index

Constants

This section is empty.

Variables

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

Errors that occur when loading analyzers.

Functions

func Discover

func Discover(dir string, options map[string]interface{}) ([]module.Module, error)

Types

type Analyzer

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

	Analyze() (graph.Deps, error) // Runs an analysis of a module.
}

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

func New

func New(m module.Module) (Analyzer, error)

New returns the analyzer for any given package type.

Directories

Path Synopsis
Package bower implements analyzers for the Bower package manager.
Package bower implements analyzers for the Bower package manager.
Package buck implements the analyzer for Buck.
Package buck implements the analyzer for Buck.
A `BuildTarget` for Carthage is the path to the directory with the Cartfile.
A `BuildTarget` for Carthage is the path to the directory with the Cartfile.
Package cocoapods implements Cocoapods analysis.
Package cocoapods implements Cocoapods analysis.
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 gradle implements analyzers for Gradle.
Package gradle implements analyzers for Gradle.
Package maven implements Maven analysis.
Package maven implements Maven analysis.
Package nodejs provides analyzers for Node.js projects.
Package nodejs provides analyzers for Node.js projects.
Package nuget implements NuGet analysis.
Package nuget implements NuGet analysis.
Package okbuck implements the analyzer for OkBuck.
Package okbuck implements the analyzer for OkBuck.
Package php implements analyzers for PHP.
Package php implements analyzers for PHP.
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.
Package scala implements Scala analysis.
Package scala implements Scala analysis.

Jump to

Keyboard shortcuts

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