Versions in this module Expand all Collapse all v0 v0.14.0 Jul 27, 2021 Changes in this version + func RunFromResult(ctx context.Context, c CommentService, results []*rdf.Diagnostic, ...) error + type BulkCommentService interface + Flush func(context.Context) error + type Comment struct + Result *filter.FilteredDiagnostic + ToolName string + type CommentService interface + Post func(context.Context, *Comment) error + func MultiCommentService(services ...CommentService) CommentService + type DiffCmd struct + func NewDiffCmd(cmd *exec.Cmd, strip int) *DiffCmd + func (d *DiffCmd) Diff(_ context.Context) ([]byte, error) + func (d *DiffCmd) Strip() int + type DiffService interface + Diff func(context.Context) ([]byte, error) + Strip func() int + func NewDiffString(diff string, strip int) DiffService + type DiffString struct + func (d *DiffString) Diff(_ context.Context) ([]byte, error) + func (d *DiffString) Strip() int + type EmptyDiff struct + func (*EmptyDiff) Diff(context.Context) ([]byte, error) + func (*EmptyDiff) Strip() int + type FilteredResult struct + FilteredDiagnostic []*filter.FilteredDiagnostic + Level string + type FilteredResultMap struct + func (rm *FilteredResultMap) Len() int + func (rm *FilteredResultMap) Load(key string) (*FilteredResult, error) + func (rm *FilteredResultMap) Range(f func(key string, val *FilteredResult)) + func (rm *FilteredResultMap) Store(key string, r *FilteredResult) + type RawCommentWriter struct + func NewRawCommentWriter(w io.Writer) *RawCommentWriter + func (s *RawCommentWriter) Post(_ context.Context, c *Comment) error + type Result struct + CmdErr error + Diagnostics []*rdf.Diagnostic + Level string + Name string + func (r *Result) CheckUnexpectedFailure() error + type ResultMap struct + func (rm *ResultMap) Len() int + func (rm *ResultMap) Load(key string) (*Result, error) + func (rm *ResultMap) Range(f func(key string, val *Result)) + func (rm *ResultMap) Store(key string, r *Result) + type Reviewdog struct + func NewReviewdog(toolname string, p parser.Parser, c CommentService, d DiffService, ...) *Reviewdog + func (w *Reviewdog) Run(ctx context.Context, r io.Reader) error + type UnifiedCommentWriter struct + func NewUnifiedCommentWriter(w io.Writer) *UnifiedCommentWriter + func (mc *UnifiedCommentWriter) Post(_ context.Context, c *Comment) error