no_empty_comment.rst 525 B

1234567891011121314151617181920212223242526272829303132333435
  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. @@ -1,4 +1,4 @@
  13. <?php
  14. -//
  15. -#
  16. -/* */
  17. +
  18. +
  19. +
  20. Rule sets
  21. ---------
  22. The rule is part of the following rule sets:
  23. @Symfony
  24. Using the ``@Symfony`` rule set will enable the ``no_empty_comment`` rule.
  25. @PhpCsFixer
  26. Using the ``@PhpCsFixer`` rule set will enable the ``no_empty_comment`` rule.