issues

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package issues contains Project code-quality issue projection use cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirOf

func DirOf(file string) string

DirOf returns the directory portion of an issue file path (for the file/dir facet).

func Project

func Project(ctx context.Context, findings []finding.Finding, catalog RuleCatalog) ([]issue.Candidate, error)

Project turns the publishable, non-hotspot findings of one analysis into stable, deduplicated issue candidates. The catalog rule (when present) is the authority for the issue Type and Language; findings with unknown rule metadata fall back to a deterministic Type derived from the finding Kind and are never dropped. A catalog infrastructure failure (other than not-found) is returned so an incomplete projection can never make a Project analysis look complete.

Types

type RuleCatalog

type RuleCatalog interface {
	Get(ctx context.Context, key rule.Key) (rule.Rule, error)
}

RuleCatalog is the subset of the rule catalog the projector needs.

Jump to

Keyboard shortcuts

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