Skip to content

PHP CS Fixer ignores "excludes" which defined in .php_cs file #75

Description

@StudioMaX

At this time PHP CS Fixer executes via command like this
[...]/vendor/bin/php-cs-fixer fix . --some_param
Defining a dot in this command means that this directory (dot in our case) will overwrite the directories defined in .php_cs file (Details here: PHP-CS-Fixer/PHP-CS-Fixer#2094)

I think we have two solutions to fix this:

  1. Just remove path to directory from CLI arguments ([...]/vendor/bin/php-cs-fixer fix --some_param).
  2. Check that .php_cs or .php_cs.dist exists at the build directory, and remove path from CLI arguments if this file exists.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions