Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitBucketAnnotation ¶
type BitBucketAnnotations ¶
type BitBucketAnnotations struct {
Annotations []BitBucketAnnotation `json:"annotations"`
}
type BitBucketReport ¶
type BitBucketReporter ¶
type BitBucketReporter struct {
// contains filtered or unexported fields
}
BitBucketReporter send linter results to BitBucket using https://docs.atlassian.com/bitbucket-server/rest/7.8.0/bitbucket-code-insights-rest.html
func NewBitBucketReporter ¶
func NewBitBucketReporter(uri string, timeout time.Duration, token, project, repo string, gitCmd git.CommandRunner) BitBucketReporter
func (BitBucketReporter) Submit ¶
func (r BitBucketReporter) Submit(summary Summary) (err error)
type ConsoleReporter ¶
type ConsoleReporter struct {
// contains filtered or unexported fields
}
func NewConsoleReporter ¶
func NewConsoleReporter(output io.Writer) ConsoleReporter
func (ConsoleReporter) Submit ¶
func (cr ConsoleReporter) Submit(summary Summary) error
type GithubReporter ¶
type GithubReporter struct {
// contains filtered or unexported fields
}
func NewGithubReporter ¶
func NewGithubReporter(baseURL, uploadURL string, timeout time.Duration, token, owner, repo string, prNum int, gitCmd git.CommandRunner) GithubReporter
NewGithubReporter creates a new GitHub reporter that reports problems via comments on a given pull request number (integer).
func (GithubReporter) Submit ¶
func (gr GithubReporter) Submit(summary Summary) error
Submit submits the summary to GitHub.
type Summary ¶
type Summary struct { Reports []Report FileChanges discovery.FileFindResults }
func (Summary) HasFatalProblems ¶
Click to show internal directories.
Click to hide internal directories.