Skip to content

Files

Latest commit

 

History

History
34 lines (25 loc) · 753 Bytes

SpaceAfterCommentStart.md

File metadata and controls

34 lines (25 loc) · 753 Bytes

Pattern: Missing space after comment start

Issue: -

Description

To bring consistency with how comments should be formatted, leave a space right after the beginning of the comment.

package foobar

object Foobar {
/**WRONG
*
*/
/** Correct*/
val d = 2 /*Wrong*/ //Wrong
/**
*Correct
*/
val e = 3/** Correct*/ // Correct
}

Example configuration

<check enabled="true" class="org.scalastyle.scalariform.SpaceAfterCommentStartChecker" level="warning"/>