ScanModuleTids (open)
Returns the list of tids in a module
Syntax
LOADLIB "mod::system/lib/validation.whlib";
RECORD FUNCTION ScanModuleTids(RECORD validationconfig, STRING module)Parameters
RECORD validationconfigValidation 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 moduleModule to scan
Return value
RECORDList of tids and warnings
RECORD ARRAY tidsList of tids
STRING tids.attrnameAttribute where this tid was defined
INTEGER tids.colColumn number for this message
INTEGER tids.lineLine number for this message
STRING tids.resourcenameResource where this tid was defined
STRING tids.tidTid
RECORD ARRAY warningsList of warnings
INTEGER warnings.colColumn number for this message
INTEGER warnings.lineLine number for this message
STRING warnings.messageMessage
RECORD warnings.metadatametadata (only when source != "unknown")
STRING warnings.resourcenameResource name for this message
STRING warnings.sourceSource for this message