analyzers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2015 License: BSD-3-Clause Imports: 2 Imported by: 4

Documentation

Overview

Package analyzers define how analyzers should act. Analyzers implement `scanner` interface. They must also register their initfunctions so they can be initialized. see https://sevki.org/joker/analyzers/jshint for reference.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(scnr string, scnrFunc InitFunc)

Register registers a scanner to be used.

Types

type InitFunc

type InitFunc func(changeset git.ChangeSet) Scanner

InitFunc type that scanners must implement

type Message

type Message struct {
	Body     string
	Filename string
	Line     int32
	DiffLine int
	Asignee  string
	Issue    bool
	// Github doesn't care about this in commits.
	Col int
}

Message represents a Github comment structure.

type Scanner

type Scanner interface {
	Scan() bool
	Message() Message
}

Scanner interface for the analyzerss

func GetScanner

func GetScanner(scnr string, changeSet git.ChangeSet) (Scanner, error)

GetScanner initializes scanner for a fileset.

Directories

Path Synopsis
Package golint is a go lint analyzer.
Package golint is a go lint analyzer.
Package jshint is a wrapper around `jshint` and `jsxhint` cmdlets, to install them: npm install -g jshint they should be present in `$PATH`.
Package jshint is a wrapper around `jshint` and `jsxhint` cmdlets, to install them: npm install -g jshint they should be present in `$PATH`.
Package todo analyzes changed files for TODO messages.
Package todo analyzes changed files for TODO messages.

Jump to

Keyboard shortcuts

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