codealert

package
v0.0.0-...-2435b8f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeAlert

type CodeAlert struct {
	Name        string
	File        string
	Description string
	Regexp      *regexp.Regexp
}

A CodeAlert represents a regexp being matched on files included for the alert.

type CodeAlertAnalyzer

type CodeAlertAnalyzer struct {
}

func (CodeAlertAnalyzer) Analyze

func (a CodeAlertAnalyzer) Analyze(ctx *ctxpb.ShipshapeContext) ([]*notepb.Note, error)

TODO(emso): Use file filter in code alert

func (CodeAlertAnalyzer) Category

func (CodeAlertAnalyzer) Category() string

func (CodeAlertAnalyzer) FindMatches

func (a CodeAlertAnalyzer) FindMatches(content string) []*notepb.Note

FindMatches returns an array of notes for each match in content.

Jump to

Keyboard shortcuts

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