Discover Packages
github.com/yasushi-saito/gometalinter
regressiontests
package
Version:
v2.0.10+incompatible
Opens a new window with list of versions in this module.
Published: Sep 6, 2018
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README Documentation Source Files Regression tests for gometalinter Index Constants Variables Functions Types ExpectIssues(t, linter, source, expected, extraFlags) type Issue type Issues (i) String() RunLinter(t, linter, path, extraFlags)
README
¶
These tests run specific linters through gometalinter and verify that they
output what we expect from a particular piece of source code.
Expand ▾
Collapse ▴
Documentation
¶
ExpectIssues runs gometalinter and expects it to generate exactly the
issues provided.
type Issue struct {
Linter string `json:"linter"`
Severity string `json:"severity"`
Path string `json:"path"`
Line int `json:"line"`
Col int `json:"col"`
Message string `json:"message"`
}
RunLinter runs the gometalinter as a binary against the files at path and
returns the issues it encountered
Source Files
¶
Click to show internal directories.
Click to hide internal directories.