Skip to content

DemoVaultCoverageChecker.findTryItSectionsWithoutCodeButton method

DemoVaultCoverageChecker › findTryItSectionsWithoutCodeButton

Finds Try it sections with no code-button in them. A Try it section is a heading of any level starting Try it, up to the next heading of the same or a higher level; the setup it asks for is what a button is for, so a section that leaves the reader to do it by hand is the shape this check rejects. A section whose heading a demo-vault-validation/try-it-code-button directive covers has stated why it cannot be scripted, and is skipped — see the file overview.

Signature:

findTryItSectionsWithoutCodeButton(): string[]

Returns: string[] — One <note>: line <n> entry per offending section, naming the line of its heading.