PHPCodeSniffer helps us stick to same coding standards across MediaWiki and it's extensions. Currently RelatedArticles phpcs config differs from the MediaWiki one - the following sniffs are disabled:
MediaWiki.Commenting.FunctionComment.MissingParamComment MediaWiki.Commenting.FunctionComment.MissingParamTag MediaWiki.Commenting.FunctionComment.ParamNameNoMatch MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic
Runing phpcs without those sniffs gives 30 errors and 1 warning in 4 files.
Plan (YMMV)
- Enable sniffs one by one and send patches fixing the problems
AC
- As many of the sniffs are made to pass as is possible.
- If a sniff can't be made to pass for some reason, then document it as close as possible to the line disabling the sniff.