linters

package
v0.0.0-...-993d511 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linter

type Linter interface {
	Run(ctx context.Context, exec executors.Executor) (*result.Result, error)
	Name() string
}

type MockLinter

type MockLinter struct {
	// contains filtered or unexported fields
}

MockLinter is a mock of Linter interface

func NewMockLinter

func NewMockLinter(ctrl *gomock.Controller) *MockLinter

NewMockLinter creates a new mock instance

func (*MockLinter) EXPECT

func (_m *MockLinter) EXPECT() *MockLinterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockLinter) Name

func (_m *MockLinter) Name() string

Name mocks base method

func (*MockLinter) Run

func (_m *MockLinter) Run(ctx context.Context, exec executors.Executor) (*result.Result, error)

Run mocks base method

type MockLinterMockRecorder

type MockLinterMockRecorder struct {
	// contains filtered or unexported fields
}

MockLinterMockRecorder is the mock recorder for MockLinter

func (*MockLinterMockRecorder) Name

func (_mr *MockLinterMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

func (*MockLinterMockRecorder) Run

func (_mr *MockLinterMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call

Run indicates an expected call of Run

type Runner

type Runner interface {
	Run(ctx context.Context, linters []Linter, exec executors.Executor) (*result.Result, error)
}

type SimpleRunner

type SimpleRunner struct {
}

func (SimpleRunner) Run

func (r SimpleRunner) Run(ctx context.Context, linters []Linter, exec executors.Executor) (*result.Result, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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