Manual:validateRegistrationFile.php
From Linux Web Expert
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.25
<translate> MediaWiki version:</translate> |
MediaWiki file: validateRegistrationFile.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
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/>