WordPress-Coding-Standards: Faulty core fixes: ScopeIndentSniff doesn't align a multiline comment correctly

Given the following example:

<?php

function a() {
/*
 * A comment.
 */
}

The comment will be indented, but the 2nd and 3rd line are missing the space to align their * correctly.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

@DrewAPicture @JDGrimes Thanks for your responses. I’m in favour of it being a hard-rule as well - even when it’s for commented out code, which is where I most often see non-star /* */ comments -. Will implement like that. We can always fine-tune once the sniffs are ready & merged.