GetValidatableFiles (open)

Gathers the list of files that must be validated

Syntax

LOADLIB "mod::system/lib/validation.whlib";

STRING ARRAY FUNCTION GetValidatableFiles(RECORD validateconfig, STRING modulename, RECORD options)

Parameters

RECORD validateconfig

Validation configuration for the specified module

BOOLEAN documentation

Whether to validate documentation

STRING ARRAY eslintmasks

List of masks for files to validate with eslint

RECORD ARRAY excludemasks

List of masks for files to exclude from validation

BOOLEAN futuremodule

Contains TRUE when this module isn't allowed to run on this webhare installation

STRING futuremodulewhy

Explains why the module isn't allowed to run on this webhare installation

BOOLEAN nomissingtids

Whether to fail validation when any tids are missing

BOOLEAN nowarnings

Whether to fail validation when any warnings are found

BOOLEAN perfectcompile

Whether to fail validation when any harescript file has a warning

STRING modulename

Name of the module to scan

RECORD options

Options

MACRO PTR onskippedfile

Called for all skipped files. Signature: MACRO onskippedfile(STRING resourcename, STRING reason)

Return value

STRING ARRAY

List of validatable files