Skip to content

Commit

Permalink
docs(rules): update export (#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger authored Mar 13, 2024
1 parent d23fa86 commit 5f962ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
5 changes: 2 additions & 3 deletions docs/rules.csv.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 5f962ea

Please sign in to comment.