comment-whitespace-inside
要求或禁止注释标记内部有空格。
¥Require or disallow whitespace on the inside of comment markers.
/* comment */
/** ↑ ↑
* The space inside these two markers */
注释的开头或结尾允许使用任意数量的星号。因此 /** comment **/
的处理方式与 /* comment */
相同。
¥Any number of asterisks are allowed at the beginning or end of the comment. So /** comment **/
is treated the same way as /* comment */
.
[!WARNING] 选择器和值列表中的注释当前被忽略。
¥[!WARNING] Comments within selector and value lists are currently ignored.
fix
选项 可以自动修复此规则报告的所有问题。
¥The fix
option can automatically fix all of the problems reported by this rule.
选项
¥Options
string
:"always"|"never"
"always"
标记内必须始终有空格。
¥There must always be whitespace inside the markers.
以下模式被视为问题:
¥The following patterns are considered problems:
/*comment*/
/*comment */
/** comment**/
以下模式不被视为问题:
¥The following patterns are not considered problems:
/* comment */
/** comment **/
/**
* comment
*/
/* comment
*/
"never"
标记内部绝不能有空格。
¥There must never be whitespace on the inside the markers.
以下模式被视为问题:
¥The following patterns are considered problems:
/* comment */
/*comment */
/** comment**/
以下模式不被视为问题:
¥The following patterns are not considered problems:
/*comment*/
/****comment****/