Background
ResourceLoader modules need to have all files that are bundled to the client listed in the packageFiles property in skin.json or extension.json. We want to add a way to automatically check that all required files are properly included to help prevent issues like https://phabricator.wikimedia.org/T301810#7712180.
See related comment/task T283388#7712291.
Developer notes
We could create a test that runs a regular expression on all files for require statements, and checks the appropriate modules in skin.json.