conflict

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package conflict detects quality regressions between a current file and a candidate release. It is a pure, stateless package with no service dependencies.

Index

Constants

View Source
const (
	SeverityWarning = "warning" // significant regression (HDR lost, lossless audio lost)
	SeverityCaution = "caution" // minor regression (codec change, small channel drop)
)

Severity indicates how significant a regression is.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conflict

type Conflict struct {
	Dimension string `json:"dimension"` // "audio_codec", "audio_channels", "hdr", "edition", "resolution", "codec"
	Severity  string `json:"severity"`  // "warning" or "caution"
	Current   string `json:"current"`   // human-readable current value
	Candidate string `json:"candidate"` // human-readable candidate value
	Summary   string `json:"summary"`   // "Audio downgrade: TrueHD Atmos → AC3 5.1"
}

Conflict describes a single dimension regression.

func Compare

func Compare(current, candidate plugin.Quality, currentEdition, candidateEdition string) []Conflict

Compare checks each quality dimension for regressions. If the candidate ranks lower than current in any dimension, a Conflict is returned for it. Dimensions where either side is unknown/empty are skipped.

Jump to

Keyboard shortcuts

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