use crate::LintIssue;
#[must_use]
pub const fn help(issue: &LintIssue) -> &'static str {
use LintIssue as L;
match issue {
L::UnreachedKeyframe { .. } => {
"clip keyframes are in timeline time, composition keyframes in composition time and \
generator and layout keyframes in picture time; a keyframe no shown time reaches is \
usually written in another of these"
}
L::HiddenClip { .. } => {
"a clip on a later track is drawn over the earlier tracks; move, shrink or fade the \
covering clip, or remove the hidden one"
}
L::ShortTransition { .. } => {
"a transition shows as a mix only over at least about one frame; times are integer \
ticks, 120000 per second"
}
L::OffFrameBoundary { .. } => {
"times are integer ticks, 120000 per second; frame n starts at n * 120000 * den / num \
ticks of the frame rate, rounded down"
}
L::UnusedSource { .. } => "show the source with a clip or a `media` node, or remove it",
L::HdrSource { .. } => {
"set `settings.color.hdr` to `tone_map` to render it, or use a standard dynamic range \
source"
}
L::EmptySubpath { .. } => {
"a subpath draws only once it has vertices; give it some or remove it"
}
L::PaintWithoutGeometry { .. } => {
"a fill or stroke paints the geometry items before it in its own group; move it after \
them"
}
L::UnusedCaptionStyle { .. } => {
"a cue takes a style by naming it in `style`, or by a `speaker` equal to the style's \
name"
}
L::StaleData { .. } => "make the data set again from the source as it is now",
L::ManyShiftedReads { .. } => {
"each read of a video at another time keeps a decoder of its own; fewer time offset \
nodes over it use less memory"
}
L::EmptyTextAnimator { .. } => {
"an animator changes only the properties it sets; give it one or remove it"
}
L::MotionBlurWithoutMotion { .. } => {
"motion blur averages movement within a frame; animate position, scale, rotation or \
opacity, or remove `motion_blur`"
}
L::SubFrameClip { .. } => {
"times are integer ticks, 120000 per second; a clip whose times were written in \
seconds ends within the first frame"
}
L::HighlightWithoutTimedRuns { .. } => {
"a highlight follows timed runs, the runs that carry a time; give the text timed runs \
or remove the highlight"
}
}
}