Skip to content

Defect template well-formedness check as a command #556

Closed

Description

@dan-petty

Templates were verified by hand for #503, #504 and #537 with scratch scripts: every site of every template applied to the pinned samples one at a time, and the mutated file checked with tree-sitter, gcc, g++, node, bash -n, python-hcl2 and PyYAML, and against a block-comment tracker. That found real bugs:

  • nginx's control-flow checksum check;
  • Hugo code shortcodes;
  • injections in JSDoc.

The sweep should run again whenever a template or sample changes.

Deliverables

  • A command that sweeps the templates over the fetched samples: sites per template and category, mutations that no longer parse with each language's checker when it is installed, and sites inside comments.
  • Checkers that are missing are reported as not run, never as passed.
  • Each sweep saved in the run store and comparable with the last.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/reviewtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions