Php-cs-fixer: Directive `single_blank_line_at_eof` doesn't work as expected.

Created on 6 Feb 2019  路  4Comments  路  Source: FriendsOfPHP/PHP-CS-Fixer

Hi,

I was trying to make sure that all the files in my project were ending with a blank line at the end (single_blank_line_at_eof directive) and I noticed that this tool doesn't detect and fix the directive properly.

Apparently it does it properly for .php files, but not for .yml files.

See this repository that highlight the issue: https://github.com/drupol/issue-4297-php-cs-fixer

Most helpful comment

Make sense anyway. Thanks for the support guys, keep up the good work.

All 4 comments

PHP CS Fixer was never intended to process any files but PHP ones. The behavior you are describing is expected.

So sad, I was looking for a solution to completely replace phpcs with php-cs-fixer.

well, we are not YML CS Fixer or Anything CS Fixer.
one tool to do one thing, but good.

Make sense anyway. Thanks for the support guys, keep up the good work.

Was this page helpful?
0 / 5 - 0 ratings