]> git.ipfire.org Git - thirdparty/blocklistproject/lists.git/commitdiff
Fixing lint errors 499/head
authorCharlie Fish <fishcharlie@me.com>
Sat, 27 Nov 2021 23:30:34 +0000 (16:30 -0700)
committerCharlie Fish <fishcharlie@me.com>
Sat, 27 Nov 2021 23:30:34 +0000 (16:30 -0700)
scripts/lint.js
twitter.txt

index 91b18556d59865901a795983b8690850f0f63e2e..89cb7cbd2959073c3a49ce16b8ec6a00d6aa7191 100644 (file)
@@ -44,9 +44,9 @@ const path = require("path");
                                hasError = true;
                        }
 
-                       // Ensure that after header is complete that all lines that start with `#` start with `# 0.0.0.0`
-                       if (isHeaderComplete && line.startsWith("#") && !line.startsWith("# 0.0.0.0")) {
-                               console.error(`Line ${index + 1} in ${file} should start with "# 0.0.0.0".`);
+                       // Ensure that after header is complete that all lines that start with `#` start with `# 0.0.0.0` or `# NOTE:`
+                       if (isHeaderComplete && line.startsWith("#") && !line.startsWith("# 0.0.0.0") && !line.startsWith("# NOTE:")) {
+                               console.error(`Line ${index + 1} in ${file} should start with "# 0.0.0.0" or "# NOTE:".`);
                                hasError = true;
                        }
 
index 31b4a4b52d0c2f53880b3826e3d3868f107c5d92..bdaee9ab92f674e4908a96be671ee957a08b3a85 100644 (file)
@@ -25,7 +25,7 @@
 0.0.0.0 twitter.meezaan.org
 0.0.0.0 www.twt.si
 0.0.0.0 www.twitter.fr
-# https://securitytrails.com/list/ip/104.244.42.129
+# NOTE: https://securitytrails.com/list/ip/104.244.42.129
 0.0.0.0 twitter.eus
 0.0.0.0 twitter.com.7.1.adiosnof.roksit.net
 0.0.0.0 twitter.bldna48.com
@@ -47,7 +47,7 @@
 0.0.0.0 www.osiyuk.com
 0.0.0.0 www.twitter.uz
 0.0.0.0 twitter.ae
-# https://securitytrails.com/list/apex_domain/twitter.com
+# NOTE: https://securitytrails.com/list/apex_domain/twitter.com
 0.0.0.0 twitter.com
 0.0.0.0 platform.twitter.com
 0.0.0.0 mobile.twitter.com