issue

package
v0.0.0-...-27f9dfe Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package issue provides models/helpers to the internal representation of issues

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinterIssue

type LinterIssue struct {
	*api.Issue
	Linter string
	Path   Path
}

LinterIssue is an Issue bound to the linter which created it and some additional info

func ToLinterIssue

func ToLinterIssue(issue *api.Issue, linter string) *LinterIssue

ToLinterIssue converts an api.Issue to a LinterIssue

func (*LinterIssue) Col

func (t *LinterIssue) Col() int

Col is a shorthand for Position.Column

func (*LinterIssue) Line

func (t *LinterIssue) Line() int

Line is a shorthand for Position.Line

type Path

type Path struct {
	Abs string
	Rel string
}

Path wraps rel/abs paths

func (Path) String

func (p Path) String() string

Jump to

Keyboard shortcuts

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