Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 00:37
· 8 commits to main since this release
v0.4.0
154a398

Add two JSON-LD rules, make wrapped suppression comments work, and give SARIF
rules the help text GitHub code scanning requires. Both packages move to 0.4.0
together; the catalogue grows from 203 to 205 rules.

New rules

  • script/json-ld-author-without-name: an author, creator or publisher given as
    a bare @id credits nobody, because Google reads one page and finds no name
    there (#539).
  • script/json-ld-required-properties: a ProfilePage or BreadcrumbList without a
    property Google requires is not eligible for its rich result (#540).

Suppression comments

  • A deadhead-disable-next-line comment wrapped over several lines, as
    formatters do with long ones, covers the line after its -->. It used to
    target a line inside the comment and suppress nothing (#548).

SARIF

  • Every rule carries help.text: the rule's description, its advice and the
    link to its page. GitHub's SARIF reference requires it and code scanning
    shows it beside each result (#549).

Rule text

  • Nine rules about an HTML attribute that no one element owns are titled as
    attribute selectors, such as [dropzone] and [fetchpriority] other than high, low or auto. Ids and URLs are unchanged (#547).
  • Rules carry an optional updatedDate, set when their guidance changes; rule
    pages, the sitemap and structured data use it instead of git history
    (#545).

Bookmarklet and site

  • The bookmarklet's rule payload is base85 and leaves out rules a live page
    cannot trigger, which frees 1.3 kB of the 64 kB URL cap for new rules
    (#550).
  • Rule pages lead with severity, fix and the exact suppression comment, and
    show when the guidance last changed. /install gains a CI recipe (#544).
  • Seventy-seven rule explanations are rewritten in depth
    (#526–#534),
    and every topic and impact page opens with an introduction (#522), (#524),
    (#527).
  • The playground keeps pasted HTML when Lint is pressed early, says whether it
    checked a page or a fragment and marks a stale report (#543), (#544).