public function getIgnores()
    {
        $configFile = $this->directory.'/.moodle-plugin-ci.yml';

        if (!is_file($configFile)) {
            return [];
        }

        $config = Yaml::parse(file_get_contents($configFile));

        // Search for context (AKA command) specific filter first.
        if (!empty($this->context) && array_key_exists('filter-'.$this->context, $config)) {
            return $config['filter-'.$this->context];
        }

        return array_key_exists('filter', $config) ? $config['filter'] : [];
    }