From 62982108a6634dbb8ebd6537fff01f3e0748753b Mon Sep 17 00:00:00 2001 From: Thomas Merz Date: Sun, 20 Feb 2022 23:43:22 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=91=B7=20Ensure=20that=20no=20version/date?= =?utf8?q?=20might=20confuse=20users=20that=20read=20the=20raw=20text-file?= =?utf8?q?(s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scripts/lint.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 ".`); -- 2.47.2