convert

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(reader io.Reader, prependPath string) (*issue.Report, error)

Convert reads a native report from the tool (TSLint) and transforms it into issues, as defined in the common module

Types

type TSLintPosition

type TSLintPosition struct {
	Line int `json:"line"`
}

TSLintPosition is used to represent the line start and end position in a vulnerability.

type TSLintVulnerability

type TSLintVulnerability struct {
	FilePath string         `json:"name"`
	RuleName string         `json:"ruleName"`
	Failure  string         `json:"failure"`
	StartPos TSLintPosition `json:"startPosition"`
	EndPos   TSLintPosition `json:"endPosition"`
}

TSLintVulnerability is loaded with the output of tslint.

Jump to

Keyboard shortcuts

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