From: Thomas Merz Date: Sun, 20 Feb 2022 22:43:22 +0000 (+0100) Subject: 👷 Ensure that no version/date might confuse users that read the raw text-file(s) X-Git-Tag: aggregated-20250518~279^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F647%2Fhead;p=thirdparty%2Fblocklistproject%2Flists.git 👷 Ensure that no version/date might confuse users that read the raw text-file(s) --- diff --git a/scripts/lint.js b/scripts/lint.js index 89cb7cb..f7e9f87 100644 --- a/scripts/lint.js +++ b/scripts/lint.js @@ -22,6 +22,12 @@ const path = require("path"); isHeaderComplete = true; } + // Ensuring that no version/date might confuse users that read the raw text-file(s) + if (line.length > 0 && !line.indexOf("Version")) { + console.error(`Line ${index + 1} in ${file} must not contain a Version/Date.`); + hasError = true; + } + // Ensuring that all lines start with "#" or "0.0.0.0 " if (line.length > 0 && !line.startsWith("#") && !line.startsWith("0.0.0.0 ")) { console.error(`Line ${index + 1} in ${file} must start with "#" or "0.0.0.0 ".`);