|mediawiki/tools/codesniffer : master||Expand ExtendClassUsageSniff to check for config globals|
This could be tricky, because the sniff has to decide between config globals and objects/non-config globals. That means the sniff needs the way to set globals in .phpcs.xml as input for use in extensions. The core list can be found on T159283 and should be hard coded.
ExtendClassUsageSniff is only acting on classes extends ContextSource, because there it is better to call getConfig to get modern code.