public function getVersion()
    {
        $current = dirname(__FILE__);
        while($current !== '/') {
            if (file_exists($current . '/composer.lock')) {
                $contents = file_get_contents($current . '/composer.lock');
                if ($contents === false) {
                    continue;
                }

                $data = json_decode($contents);
                $packages = array_values(array_filter($data->packages, function($package) {
                    return $package->name === "helmich/typo3-typoscript-lint";
                }));

                if (count($packages) > 0) {
                    return $packages[0]->version;
                }
            }

            $current = dirname($current);
        }

        return parent::getVersion();
    }