Skip to content
On this page

FileComment

Parses and verifies the file doc comment.

Scope

Squiz.Commenting.FileComment

Usage

xml
<rule ref="Squiz.Commenting.FileComment"></rule>

Examples

Example 1

Valid: Asterisks are aligned.

php
/**
 * @see foo()
 */

Invalid: Asterisks are not aligned.

php
/**
  * @see foo()
*/

Example 2

Valid: One space between asterisk and tag.

php
/**
 * @see foo()
 */

Invalid: Incorrect spacing used.

php
/**
 *  @see foo()
 */

Released under the MIT License.