overtrue / phplint

:bug: A tool that can speed up linting of php files by running several lint processes at once.
MIT License
984 stars 118 forks source link

Enhance display #164

Closed llaville closed 1 year ago

llaville commented 1 year ago

Hello @overtrue

I've in mind to propose soon (probably tomorrow) a new version that will :

v60-help

v60-dev

Are you agree ?

overtrue commented 1 year ago

Wow it's a great idea! Thank you for the contribution.

llaville commented 1 year ago

@overtrue All branches are now up-to-date and implement this feature.

Before to release new versions v3, v4, v5 and v6, I want to fix also issue #163. I'll try to fix it today, but no guarranty

llaville commented 1 year ago

@overtrue As I've worked on issue #163, I've re-worked again display improvement especially for options. For example, it will give now

enhance_display

overtrue commented 1 year ago

It's beautiful!

llaville commented 1 year ago

Very few line of code

        if ($verbosity >= OutputInterface::VERBOSITY_DEBUG) {
            $output->writeln('Options       :');
            foreach ($options as $name => $value) {
                $output->writeln(\sprintf("<comment>%13s</comment> > <info>%s</info>", $name, \json_encode($value, \JSON_UNESCAPED_SLASHES)));
            }
        }
llaville commented 1 year ago

Available in latest releases 3.3.1, 4.4.0, 5.4.1 and 6.0.3