Skip to content

withSkip() doesn't properly ignore pattern #2

@gjm

Description

@gjm

In my config I have (just a snippet of course):

->withSkip([
    __DIR__ . '/modules/*/tests.old',
])

but I run ECS I get errors on a file that should be ignored:

49) modules/core/tests.old/Unit/Notifications/NotificationCommandsTest.php

    ---------- begin diff ----------
@@ -54,7 +54,6 @@

Replacing modules/*/tests.old with modules/core/tests.old effectively ignores the files.

Version info:

/vendor/bin/ecs -V                 
EasyCodingStandard 12.5.16
+ PHP_CodeSniffer 3.12.2
+ PHP-CS-Fixer 3.75.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions