{{define "rulesindex.html"}} {{template "head" .}} {{template "topbar" .}}

AUR report card

Rule
Reference

Every check pkglint runs, grouped by what it protects. Each rule has a page with a flagged and a preferred example.

Grading

A package is graded by its worst finding, so one critical outweighs any number of smaller notes. The severity beside each rule below is what it reports; a rule that weighs what it found — an eval of a downloaded script is worse than an eval — shows the range it spans.

Fany critical finding
Dany error
C3 or more warnings
B1 or 2 warnings
Ano warnings, only info

Rules tagged {{template "fixpill" .FixSafe}} are rewritten in place by pkglint --fix, which never changes what the build does. Rules tagged {{template "fixpill" .FixUnsafe}} are mechanical too, but they do change it, so read the diff. Adding # pkglint: ignore=PB123 above a line suppresses a case you have already reviewed.

{{range .Groups}}
{{.Code}}n = {{len .Rules}}

{{.Title}}

{{/* The sizer spans hold each column's widest possible content — the longest rule name anywhere, the widest severity range, and the wider fix pill — so every category's table computes the same column widths, whether or not this category has long names, escalating rules, or fixable rules. */}} {{range .Rules}} {{end}}
RuleName{{$.WidestName}}Severity{{template "sevpills" $.WidestSeverity}}Fix{{template "fixpill" $.FixUnsafe}}Description
{{.ID}} {{.Name}} {{template "sevpills" .Severities}} {{template "fixpill" .FixLevel}} {{doc .Doc}}
{{end}}
{{end}}