Manuel:ValidateRegistrationFile.php
Version de MediaWiki : | ≥ 1.25 |
Fichier MediaWiki : validateRegistrationFile.php | |
---|---|
Emplacement : | maintenance/ |
Code source : | master • 1.42.1 • 1.41.2 • 1.39.8 |
Classes : | ValidateRegistrationFile |
Détails
Ce script de maintenance valide les fichiers extension.json et skin.json utilisés pour enregistrer les extensions et les habillages.
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/>