Validate (set of) files over custom rules
Check files and sets of files over custom rules - this time both for metadata and content.
There is a bunch of code with custom JS class system. Each file has some entity defined by custom (global) function.
It's unknown if somebody redefined old class. Neither there is a check if filename corresponds to definition.
Iterate through all the code files, parsing them via set of custom filters. Each filter accepts AST tree for validation and file's metadata.
There is amazing 'eslint' that works with custom rules and AST, but it doesn't support file's metadata by definition.