« get me outta code hell

upd8: --skip-sorting-validation - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-03-07 20:16:08 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-03-07 20:16:51 -0400
commit142ff084c99ef1ce6f94d843b81fdd7824f7290a (patch)
tree576326965e1e876405373a22f018283af8429418 /src
parenta7eda7e5840a4ddf568bbab8cfa8073a0f495ebf (diff)
upd8: --skip-sorting-validation
Diffstat (limited to 'src')
-rwxr-xr-xsrc/upd8.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 9b347e61..ebcb5da5 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -449,6 +449,11 @@ async function main() {
       type: 'flag',
     },
 
+    'skip-sorting-validation': {
+      help: `Skips checking the if custom sorting rules for this wiki are satisfied`,
+      type: 'flag',
+    },
+
     'skip-media-validation': {
       help: `Skips checking and reporting missing and misplaced media files, which isn't necessary if you aren't adding or removing data or updating directories`,
       type: 'flag',
@@ -983,6 +988,17 @@ async function main() {
       paragraph = false;
     }
 
+    fallbackStep('checkWikiDataSourceFileSorting', {
+      default: 'perform',
+      cli: {
+        flag: 'skip-sorting-validation',
+        negate: true,
+        warning:
+          `Skipping sorting validation. If any of this wiki's sorting rules are not\n` +
+          `satisfied, those errors will be silently passed along to the build.`,
+      },
+    });
+
     fallbackStep('verifyImagePaths', {
       default: 'perform',
       buildConfig: 'mediaValidation',