The hard-coded links audit of one package (a library of libs/, an application, one of its modules): the links and filenames written as they are on one machine, where the framework resolves them from where the package runs -- \MMO\url('{alias}/...') and \MMO\filename('{alias}/...') in php, MMO.url('{alias}/...') and MMO.filename('{alias}/...') in javascript. What the root hub's php tools/mmo.php links reports.
class MMO\admin\helpers\LinkAudit
use MMO\admin\helpers\tIgnoreFile
The rules ([`RULES`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/LinkAudit.md#linkaudit-rules)), each on the kinds of file it says:
- **machine-path**: an absolute path of a machine (`/home/...`, `~/dev/...`, `/var/www/...`, `C:\Users\...`);
- **local-url**: a url of this machine (`http://localhost/...`, `http://127.0.0.1/...`);
- **root-link**, **root-fetch**, **root-redirect**, **root-css**: a link from the root of the domain (`href="/x"`,
`fetch('/api')`, `Location: /x`, `url(/font.woff2)`): wrong as soon as the site is not at the domain's root;
- **host-concat**: a url glued from the request's host or the browser's location;
- **dir-climb**: `__DIR__ . '/../../..'`, `dirname(__DIR__, 3)` climbing out of the package: another package's file.
A climb that stays in the package (`__DIR__ . '/../templates'` from `src/`) is its own file: not reported.
The boards and checklists are scanned too: a ticket, a check, a command name their pages relative to the site
(`home/hse`), and their folders with aliases (`cd {root} && phpunit`) -- but a board's `*.sync.json`, GitHub's state.
Not scanned: the folders [`SKIP_FOLDERS`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/LinkAudit.md#linkaudit-skip-folders) anywhere, a `bin` folder (bundles built from the sources), a folder that is a package of its own (an `mmo.json`)
or a symbolic link, the files [`SKIP_FILES`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/LinkAudit.md#linkaudit-skip-files), a line that is a comment, the `require` of mmo.core's bootstrap (it
runs before the application, and its aliases, exist), and what the package's `links.ignore` lists ([`tIgnoreFile`](https://mmoframework.fr/documentation/mmo.admin/php/helpers/tIgnoreFile.md#tignorefile)):
a remote server's path, an external tool's configuration...
It is regex and line based: pragmatic, made to have few false positives rather than to miss nothing.