From ae86479c98c376ba4254fb5fc3d4357dfdfb7230 Mon Sep 17 00:00:00 2001
From: gotbadger
Date: Tue, 12 Mar 2024 16:48:36 +0000
Subject: [PATCH] docs(rules): update export
---
docs/.eleventy.js | 2 +-
docs/rules.csv.njk | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/docs/.eleventy.js b/docs/.eleventy.js
index edbd2172b..9f9e6da9a 100644
--- a/docs/.eleventy.js
+++ b/docs/.eleventy.js
@@ -118,7 +118,7 @@ module.exports = function (eleventyConfig) {
})
eleventyConfig.addFilter("removeGitleaks", (arr) => {
return arr.filter((value) => {
- value.metadata.id == "gitleaks"
+ return value.metadata.id != "gitleaks"
})
})
eleventyConfig.addFilter("setAttribute", (obj, key, value) => {
diff --git a/docs/rules.csv.njk b/docs/rules.csv.njk
index f286b8053..70d2c6a20 100644
--- a/docs/rules.csv.njk
+++ b/docs/rules.csv.njk
@@ -3,7 +3,6 @@ permalink: '/rules.csv'
eleventyExcludeFromCollections: true
layout: false
---
-
-Language; Rule Title; Rule ID; Framework; CWE; Doc
-{% for rule in rules.rules | sortById | removeGitleaks %}{{ rule.languages | join(", ")}}; {{ rule.metadata.description | safe }}; {{ rule.metadata.id }} ;{{ rule.framework }}; {{ rule.metadata.cwe_id | join(", ")}}; {{ rule.metadata.documentation_url }}
+Language,Rule Title,Rule ID,Framework,CWE,Doc,Severity
+{% for rule in rules.rules | sortById | removeGitleaks %}{{ rule.languages[0] }},{{ rule.metadata.description | safe }},{{ rule.metadata.id }},{{ rule.framework }},{{ rule.metadata.cwe_id[0] }},{{ rule.metadata.documentation_url }},{{rule.severity}}
{% endfor %}
\ No newline at end of file