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 validateconfigValidation configuration for the specified module
STRING ARRAY eslintmasksList of masks for files to validate with eslint
RECORD ARRAY excludemasksList of masks for files to exclude from validation
BOOLEAN futuremoduleContains TRUE when this module isn't allowed to run on this webhare installation
STRING futuremodulewhyExplains why the module isn't allowed to run on this webhare installation
BOOLEAN nomissingtidsWhether to fail validation when any tids are missing
BOOLEAN nowarningsWhether to fail validation when any warnings are found (does not necessarily include warnings added since 2024)
BOOLEAN perfectcompileWhether to fail validation when any harescript file has a warning
STRING modulenameName of the module to scan
RECORD optionsOptions
MACRO PTR onskippedfileCalled for all skipped files. Signature: MACRO onskippedfile(STRING resourcename, STRING reason)
Return value
STRING ARRAYList of validatable files