Manual:validateRegistrationFile.php
MediaWiki version: | ≥ 1.25 |
MediaWiki file: validateRegistrationFile.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | ValidateRegistrationFile |
Details
editThis maintenance script validates the extension.json and skin.json files used to register extensions and skins.
Arguments
editThis script accepts only the path or glob pattern of extension.json/skin.json as an argument.
Usage
editphp maintenance/run.php validateRegistrationFile filepath/pattern
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.Validating extension.json of MobileFrontend extension
editTerminal
$ php maintenance/run.php validateRegistrationFile extensions/MobileFrontend/extension.json extensions/MobileFrontend/extension.json validates against the schema!
Validating all extension.json under extensions dir
editTerminal
$ php maintenance/run.php validateRegistrationFile "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/>