From ee79edb58bf2d2961c9a52d03b9e95f3e14f7801 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 14 Nov 2024 16:44:59 +0000 Subject: [PATCH] Move edit checks to /editchecks folder Change-Id: I27eee69c4086d44fd7d60bacde9a76c170af63fe --- editcheck/modules/{ => editchecks}/AddReferenceEditCheck.js | 0 .../modules/{ => editchecks}/ConvertReferenceEditCheck.js | 0 editcheck/modules/{ => editchecks}/TextMatchEditCheck.js | 0 editcheck/modules/init.js | 6 +++--- extension.json | 6 +++--- 5 files changed, 6 insertions(+), 6 deletions(-) rename editcheck/modules/{ => editchecks}/AddReferenceEditCheck.js (100%) rename editcheck/modules/{ => editchecks}/ConvertReferenceEditCheck.js (100%) rename editcheck/modules/{ => editchecks}/TextMatchEditCheck.js (100%) diff --git a/editcheck/modules/AddReferenceEditCheck.js b/editcheck/modules/editchecks/AddReferenceEditCheck.js similarity index 100% rename from editcheck/modules/AddReferenceEditCheck.js rename to editcheck/modules/editchecks/AddReferenceEditCheck.js diff --git a/editcheck/modules/ConvertReferenceEditCheck.js b/editcheck/modules/editchecks/ConvertReferenceEditCheck.js similarity index 100% rename from editcheck/modules/ConvertReferenceEditCheck.js rename to editcheck/modules/editchecks/ConvertReferenceEditCheck.js diff --git a/editcheck/modules/TextMatchEditCheck.js b/editcheck/modules/editchecks/TextMatchEditCheck.js similarity index 100% rename from editcheck/modules/TextMatchEditCheck.js rename to editcheck/modules/editchecks/TextMatchEditCheck.js diff --git a/editcheck/modules/init.js b/editcheck/modules/init.js index c9d426cf34..ecab91c8b0 100644 --- a/editcheck/modules/init.js +++ b/editcheck/modules/init.js @@ -11,9 +11,9 @@ require( './EditCheckAction.js' ); require( './BaseEditCheck.js' ); // TODO: Load these checks behind feature flags -// require( './ConvertReferenceEditCheck.js' ); -// require( './TextMatchEditCheck.js' ); -require( './AddReferenceEditCheck.js' ); +// require( './editchecks/ConvertReferenceEditCheck.js' ); +// require( './editchecks/TextMatchEditCheck.js' ); +require( './editchecks/AddReferenceEditCheck.js' ); /** * Return the content ranges (content branch node interiors) contained within a range diff --git a/extension.json b/extension.json index a87db6d9a9..7a2e5db03e 100644 --- a/extension.json +++ b/extension.json @@ -618,9 +618,9 @@ "editcheck/modules/EditCheckFactory.js", "editcheck/modules/EditCheckAction.js", "editcheck/modules/BaseEditCheck.js", - "editcheck/modules/AddReferenceEditCheck.js", - "editcheck/modules/ConvertReferenceEditCheck.js", - "editcheck/modules/TextMatchEditCheck.js", + "editcheck/modules/editchecks/AddReferenceEditCheck.js", + "editcheck/modules/editchecks/ConvertReferenceEditCheck.js", + "editcheck/modules/editchecks/TextMatchEditCheck.js", { "name": "editcheck/modules/config.json", "callback": "\\MediaWiki\\Extension\\VisualEditor\\EditCheck\\ResourceLoaderData::getConfig"