New in Symplify 5: 3 News in EasyCodingStandard to Smoother Your Experience

Let's get lazier and lazier.

You don't have this package installed yet?

composer require symplify/easy-coding-standard --dev

Now enjoy the news ↓

1. Friendlier Skips

See pull-request #948

Little details make more pleasant developer experience UX. You already know you can use fnmatch() for skipping files. The problem is, it requires very specific format people struggle with and often end up using explicit 10 paths to many files.

Before you had to hit the format:

# ecs.yml
parameters:
    skip:
        SomeFixer:
            # this does
            - '*src/*CaseConverter.php'

            # this doesn't work
            - 'src/*CaseConverter.php'

Now you can use your intuition, copy paste the filename from error result and both versions work:

# ecs.yml
parameters:
    skip:
        SomeFixer:
            # both works
            - 'src/*CaseConverter.php'
            - '*src/*CaseConverter.php'

2. In Lazy We Trust

See pull-request #832

Before you had to type the whole config name:

ecs.yml
easy-coding-standard.yaml

Now you can also use short version:

ecs.yml
ecs.yaml

3. Are There Some "array" Checkers?

See pull-request #967

Many people asked for an overview of all checkers there are, if there any related to an array, to strict_types position and so on.

Before you had to go to huge README.md files of PHP CS Fixer and PHP_CodeSniffer on Github to read it all. But why leave the luxury of CLI if these checkers are already downloaded on your machine?

Now you can use "find" command:

Next time you'll wonder what are "Symplify" rules, keep your browser closed and just find them:

vendor/bin/ecs find symplify


Enjoy laziness, intuitive use and faster access to the information you look for.

We'll continue to make it this way!


Typo? Fix it, please  and join 49 people who build this website