Manual:ValidateRegistrationFile.php
Appearance
MediaWiki version: | ≥ 1.25 |
MediaWiki file: validateRegistrationFile.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | ValidateRegistrationFile |
Details
This maintenance script validates the extension.json and skin.json files used to register extensions and skins.
Arguments
This script accepts only the path or glob pattern of extension.json/skin.json as an argument.
Usage
php maintenance/validateRegistrationFile.php filepath/pattern
Validating extension.json of MobileFrontend extension
Terminal
$ php maintenance/validateRegistrationFile.php extensions/MobileFrontend/extension.json extensions/MobileFrontend/extension.json validates against the schema!
Validating all extension.json under extensions dir
Terminal
$ php maintenance/validateRegistrationFile.php "extensions/*/extension.json" extensions/CategoryTree/extension.json validates against the schema! extensions/Cite/extension.json validates against the schema! extensions/CiteThisPage/extension.json validates against the schema! extensions/CodeEditor/extension.json validates against the schema! extensions/ConfirmEdit/extension.json validates against the schema! extensions/DiscussionTools/extension.json validates against the schema! extensions/Gadgets/extension.json validates against the schema! extensions/ImageMap/extension.json validates against the schema! extensions/InputBox/extension.json validates against the schema! extensions/Interwiki/extension.json validates against the schema! extensions/Linter/extension.json validates against the schema! extensions/LocalisationUpdate/extension.json validates against the schema! extensions/MultimediaViewer/extension.json validates against the schema! extensions/Nuke/extension.json validates against the schema! extensions/OATHAuth/extension.json validates against the schema! extensions/PageImages/extension.json validates against the schema! extensions/ParserFunctions/extension.json validates against the schema! extensions/PdfHandler/extension.json validates against the schema! extensions/Poem/extension.json validates against the schema! extensions/Renameuser/extension.json validates against the schema! extensions/ReplaceText/extension.json validates against the schema! extensions/Scribunto/extension.json validates against the schema! extensions/SecureLinkFixer/extension.json validates against the schema! extensions/SpamBlacklist/extension.json validates against the schema! extensions/SyntaxHighlight_GeSHi/extension.json validates against the schema! extensions/TemplateData/extension.json validates against the schema! extensions/TextExtracts/extension.json validates against the schema! extensions/TitleBlacklist/extension.json validates against the schema! extensions/VisualEditor/extension.json validates against the schema! extensions/WikiEditor/extension.json validates against the schema! extensions/MyTest/extension.json did not pass validation. [license-name] Invalid SPDX license identifier, see <https://spdx.org/licenses/>