private function validateExcludeRegex(string $path): bool
    {
        $excludeRegex = $this->config->getExcludeRegex();
        return $excludeRegex === null || Validator::regex($excludeRegex)->validate($path) !== true;
    }
private function validateExcludeRegex(string $path): bool
    {
        $excludeRegex = $this->config->getExcludeRegex();
        return $excludeRegex === null || Validator::regex($excludeRegex)->validate($path) !== true;
    }
private function validateExcludeRegex ( string $ path ) : bool { $ excludeRegex = $ this -> config -> getExcludeRegex ( ) ; return $ excludeRegex === null || Validator :: regex ( $ excludeRegex ) -> validate ( $ path ) !== true ; }
Validate file has not the exclude regex if this regex is set.

@param string $path The file path.

@return bool True if it pass this validation.
Validate file has not the exclude regex if this regex is set .