The current FunctionCommentSniff has code to check if a doc comment is well formatted.
That includes
- Using exact /** or * syntax
- one * per line
- * alligned in the same column
- Checking for whitespace after *
- Closing */ on the same indent as the opening /**
- Multi line comment having */ on own line
All this formatting could also apply to class comments or file comments and should be moved to own sniff