I'm not sure but I find this MW Codesniffer warnings/errors a little misleading to me;
14:17:28 ---------------------------------------------------------------------- 14:17:28 FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES 14:17:28 ---------------------------------------------------------------------- 14:17:28 6 | WARNING | The phpunit annotation @group should only be used 14:17:28 | | inside classes or traits. 14:17:28 | | (MediaWiki.Commenting.PhpunitAnnotations.NotClassTrait) 14:17:28 7 | WARNING | The phpunit annotation @coversDefaultClass should only 14:17:28 | | be used inside classes or traits. 14:17:28 | | (MediaWiki.Commenting.PhpunitAnnotations.NotClassTrait) 14:17:28 ----------------------------------------------------------------------
So it's saying that the @group annotation should be inside a class or trait declaration but it's not the case, it should instead say "One new line expected after the /** @group */ comment block but two given" as this annotation should be immediately above the class declaration.
See https://integration.wikimedia.org/ci/job/wmf-quibble-vendor-mysql-hhvm-docker/10134/console for more info.
MediaWiki Codesniffer accepts the below;
/** * @group Foo */ class Bar { }
but error out, see below;
/** * @group Foo */ class Bar { }
If there are 2 new lines after the group annotation, php codesniffer produces that message. Maybe I'm wrong!