D.A.B.Tv0.0.17 Tutorial API DABT Tools ↗ GitHub ↗

tui.validate.files

tui.validate.files PAGE...

Validates pages and their includes, replacing any earlier findings.

Returns: 1 when any error was found, else 0 (warnings don’t count).

Sets: TUI_V_ERRORS, TUI_V_WARNINGS.

Notes

  • Reports unknown tags, unclosed or mismatched tags, missing and invalid attributes, conflicting attributes, duplicate ids, widgets in missing or split panes, grid cells out of bounds, and missing script/theme/include/page files, each with file, line and column.
  • tui.start and tui.start_cached run it automatically before the terminal is taken over.

Example

tui.validate.files config/*.xml || { tui.validate.report >&2; exit 1; }

See also: tui.validate.report