Use this rule to control the position and formatting of comments.
require-starting-space to require a space character right after the #. Set to true
to enable, false to disable.Examples
With require-starting-space = true
the following code snippet would PASS:
# This sentence
# is a block comment
the following code snippet would PASS:
##############################
## This is some documentation
the following code snippet would FAIL:
#This sentence
#is a block comment
With min-spaces-from-content = 2
the following code snippet would PASS:
x = 2 ^ 127 - 1 # Mersenne prime number
the following code snippet would FAIL:
x = 2 ^ 127 - 1 # Mersenne prime number