MMOframework
Why AI Playground Libraries Developers Agency
FR EN
Build a project live
Index

tIgnoreFile

MMO\admin\helpers · 1 symbol · generated 30 Nov 2026

trait

tIgnoreFile

tIgnoreFile.php:16

An audit's *.ignore file (i18n.ignore, links.ignore), in its package's folder: what is so on purpose. One entry a line, path[:line|:from-to|:regex] # reason, the path relative to the package (a glob, or a folder), the regex matched against the line's text (/…/flags or a bare pattern).

trait MMO\admin\helpers\tIgnoreFile
Namespace
MMO\admin\helpers
The class using it has its package's folder in `$this->folder`.
$this->readIgnore('links.ignore'); if ($this->isIgnored('src/Hub.php', 39)) {$this->ignored++;}

Properties2

ignore

protected array $ignore = []
Type
array

lines

protected array $lines = []
Type
array

Methods2

isIgnored($file, $line)

tIgnoreFile.php:38
protected function isIgnored(string $file, int $line): bool
$filestring
$lineint
returnsboolwhether the ignore file leaves out a finding of this file (relative to the package) and line

readIgnore($name)

tIgnoreFile.php:24
protected function readIgnore(string $name): void
$namestringthe ignore file, in the package's folder
returnsvoid