Skip to content

Commit

Permalink
ci: Ignore assets for PHP-CS-Fixer
Browse files Browse the repository at this point in the history
The “assets/node_modules” directory now contains some project with PHP files (https://www.npmjs.com/package/flatted), which PHP-CS-Fixer tried to lint.

Let’s ignore the whole “assets” directory since it only includes the client-side files and no PHP should be there.

We can remove the “libs” directory from ignores – we do not use it since we fully switched to Composer.
  • Loading branch information
jtojnar committed Jan 8, 2021
1 parent 8dd514d commit fd8c826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .php_cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude('libs')
->exclude('assets')
->exclude('utils')
->in(__DIR__)
->name('*.phtml');
Expand Down

0 comments on commit fd8c826

Please sign in to comment.