Skip to content

Files

Latest commit

 

History

History
26 lines (18 loc) · 653 Bytes

Layout-LeadingCommentSpace.md

File metadata and controls

26 lines (18 loc) · 653 Bytes

Pattern: Missing space after #

Issue: -

Description

This rule checks whether comments have a leading space after the # denoting the start of the comment. The leading space is not required for some RDoc special syntax, like #++, #--, #:nodoc, =begin- and =end comments, "shebang" directives, or rackup options.

Examples

# bad
#Some comment

# good
# Some comment

Further Reading