no_empty_comment.rst 569 B

12345678910111213141516171819202122232425262728293031323334
  1. =========================
  2. Rule ``no_empty_comment``
  3. =========================
  4. There should not be any empty comments.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. -//
  14. -#
  15. -/* */
  16. +
  17. +
  18. +
  19. Rule sets
  20. ---------
  21. The rule is part of the following rule sets:
  22. @PhpCsFixer
  23. Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``no_empty_comment`` rule.
  24. @Symfony
  25. Using the `@Symfony <./../../ruleSets/Symfony.rst>`_ rule set will enable the ``no_empty_comment`` rule.