Php-cs-fixer: phpdoc_no_* fixers should be replaced by configurable fixer

Created on 14 Aug 2019  Â·  3Comments  Â·  Source: FriendsOfPHP/PHP-CS-Fixer

The fixers, phpdoc_no_package and phpdoc_no_access could be deprecated in favour of a fixer that removes phpDoc tags according to a configurable list. In this way it would be easy to enforce omission of arbitrary annotations, such as @author and @copyright instead of relying on predefined fixers to suffice.

kincleanup

All 3 comments

yes please :)

afaik, this is the purpose of general_phpdoc_annotation_remove rule.

Yeah both fixers are proxied to the generic, I'm in favor of deprecating the rules and remove these on 3.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

carusogabriel picture carusogabriel  Â·  3Comments

OskarStark picture OskarStark  Â·  3Comments

kcloze picture kcloze  Â·  3Comments

Bilge picture Bilge  Â·  3Comments

EvgenyOrekhov picture EvgenyOrekhov  Â·  3Comments