From 0b272f35bdb1057ff73fc1836b22c2402586897d Mon Sep 17 00:00:00 2001 From: Steve Kelly Date: Mon, 19 Feb 2024 14:12:58 -0500 Subject: [PATCH] rework folder structure in recent versions of semgrep, it is best practice to keep all rules under their own folder to allow stacking of rules via multiple `--config` arguments. --- {lang => rules/lang}/best-practice/invalid-module-name.jl | 0 {lang => rules/lang}/best-practice/invalid-module-name.yaml | 0 {lang => rules/lang}/best-practice/open-tmp-path.jl | 0 {lang => rules/lang}/best-practice/open-tmp-path.yaml | 0 {lang => rules/lang}/best-practice/overload-not-equals.jl | 0 {lang => rules/lang}/best-practice/overload-not-equals.yaml | 0 {lang => rules/lang}/best-practice/unused-function-parameter.jl | 0 {lang => rules/lang}/best-practice/unused-function-parameter.yaml | 0 {lang => rules/lang}/best-practice/useless-booleans.jl | 0 {lang => rules/lang}/best-practice/useless-booleans.yaml | 0 {lang => rules/lang}/best-practice/useless-equals.jl | 0 {lang => rules/lang}/best-practice/useless-equals.yaml | 0 {lang => rules/lang}/correctness/chained-const-assignment.jl | 0 {lang => rules/lang}/correctness/chained-const-assignment.yaml | 0 {lang => rules/lang}/correctness/compare-nothing.jl | 0 {lang => rules/lang}/correctness/compare-nothing.yaml | 0 {lang => rules/lang}/correctness/index_by_threadid.jl | 0 {lang => rules/lang}/correctness/index_by_threadid.yaml | 0 {mbedtls => rules/mbedtls}/mbedtls-secrets-log.jl | 0 {mbedtls => rules/mbedtls}/mbedtls-secrets-log.yaml | 0 20 files changed, 0 insertions(+), 0 deletions(-) rename {lang => rules/lang}/best-practice/invalid-module-name.jl (100%) rename {lang => rules/lang}/best-practice/invalid-module-name.yaml (100%) rename {lang => rules/lang}/best-practice/open-tmp-path.jl (100%) rename {lang => rules/lang}/best-practice/open-tmp-path.yaml (100%) rename {lang => rules/lang}/best-practice/overload-not-equals.jl (100%) rename {lang => rules/lang}/best-practice/overload-not-equals.yaml (100%) rename {lang => rules/lang}/best-practice/unused-function-parameter.jl (100%) rename {lang => rules/lang}/best-practice/unused-function-parameter.yaml (100%) rename {lang => rules/lang}/best-practice/useless-booleans.jl (100%) rename {lang => rules/lang}/best-practice/useless-booleans.yaml (100%) rename {lang => rules/lang}/best-practice/useless-equals.jl (100%) rename {lang => rules/lang}/best-practice/useless-equals.yaml (100%) rename {lang => rules/lang}/correctness/chained-const-assignment.jl (100%) rename {lang => rules/lang}/correctness/chained-const-assignment.yaml (100%) rename {lang => rules/lang}/correctness/compare-nothing.jl (100%) rename {lang => rules/lang}/correctness/compare-nothing.yaml (100%) rename {lang => rules/lang}/correctness/index_by_threadid.jl (100%) rename {lang => rules/lang}/correctness/index_by_threadid.yaml (100%) rename {mbedtls => rules/mbedtls}/mbedtls-secrets-log.jl (100%) rename {mbedtls => rules/mbedtls}/mbedtls-secrets-log.yaml (100%) diff --git a/lang/best-practice/invalid-module-name.jl b/rules/lang/best-practice/invalid-module-name.jl similarity index 100% rename from lang/best-practice/invalid-module-name.jl rename to rules/lang/best-practice/invalid-module-name.jl diff --git a/lang/best-practice/invalid-module-name.yaml b/rules/lang/best-practice/invalid-module-name.yaml similarity index 100% rename from lang/best-practice/invalid-module-name.yaml rename to rules/lang/best-practice/invalid-module-name.yaml diff --git a/lang/best-practice/open-tmp-path.jl b/rules/lang/best-practice/open-tmp-path.jl similarity index 100% rename from lang/best-practice/open-tmp-path.jl rename to rules/lang/best-practice/open-tmp-path.jl diff --git a/lang/best-practice/open-tmp-path.yaml b/rules/lang/best-practice/open-tmp-path.yaml similarity index 100% rename from lang/best-practice/open-tmp-path.yaml rename to rules/lang/best-practice/open-tmp-path.yaml diff --git a/lang/best-practice/overload-not-equals.jl b/rules/lang/best-practice/overload-not-equals.jl similarity index 100% rename from lang/best-practice/overload-not-equals.jl rename to rules/lang/best-practice/overload-not-equals.jl diff --git a/lang/best-practice/overload-not-equals.yaml b/rules/lang/best-practice/overload-not-equals.yaml similarity index 100% rename from lang/best-practice/overload-not-equals.yaml rename to rules/lang/best-practice/overload-not-equals.yaml diff --git a/lang/best-practice/unused-function-parameter.jl b/rules/lang/best-practice/unused-function-parameter.jl similarity index 100% rename from lang/best-practice/unused-function-parameter.jl rename to rules/lang/best-practice/unused-function-parameter.jl diff --git a/lang/best-practice/unused-function-parameter.yaml b/rules/lang/best-practice/unused-function-parameter.yaml similarity index 100% rename from lang/best-practice/unused-function-parameter.yaml rename to rules/lang/best-practice/unused-function-parameter.yaml diff --git a/lang/best-practice/useless-booleans.jl b/rules/lang/best-practice/useless-booleans.jl similarity index 100% rename from lang/best-practice/useless-booleans.jl rename to rules/lang/best-practice/useless-booleans.jl diff --git a/lang/best-practice/useless-booleans.yaml b/rules/lang/best-practice/useless-booleans.yaml similarity index 100% rename from lang/best-practice/useless-booleans.yaml rename to rules/lang/best-practice/useless-booleans.yaml diff --git a/lang/best-practice/useless-equals.jl b/rules/lang/best-practice/useless-equals.jl similarity index 100% rename from lang/best-practice/useless-equals.jl rename to rules/lang/best-practice/useless-equals.jl diff --git a/lang/best-practice/useless-equals.yaml b/rules/lang/best-practice/useless-equals.yaml similarity index 100% rename from lang/best-practice/useless-equals.yaml rename to rules/lang/best-practice/useless-equals.yaml diff --git a/lang/correctness/chained-const-assignment.jl b/rules/lang/correctness/chained-const-assignment.jl similarity index 100% rename from lang/correctness/chained-const-assignment.jl rename to rules/lang/correctness/chained-const-assignment.jl diff --git a/lang/correctness/chained-const-assignment.yaml b/rules/lang/correctness/chained-const-assignment.yaml similarity index 100% rename from lang/correctness/chained-const-assignment.yaml rename to rules/lang/correctness/chained-const-assignment.yaml diff --git a/lang/correctness/compare-nothing.jl b/rules/lang/correctness/compare-nothing.jl similarity index 100% rename from lang/correctness/compare-nothing.jl rename to rules/lang/correctness/compare-nothing.jl diff --git a/lang/correctness/compare-nothing.yaml b/rules/lang/correctness/compare-nothing.yaml similarity index 100% rename from lang/correctness/compare-nothing.yaml rename to rules/lang/correctness/compare-nothing.yaml diff --git a/lang/correctness/index_by_threadid.jl b/rules/lang/correctness/index_by_threadid.jl similarity index 100% rename from lang/correctness/index_by_threadid.jl rename to rules/lang/correctness/index_by_threadid.jl diff --git a/lang/correctness/index_by_threadid.yaml b/rules/lang/correctness/index_by_threadid.yaml similarity index 100% rename from lang/correctness/index_by_threadid.yaml rename to rules/lang/correctness/index_by_threadid.yaml diff --git a/mbedtls/mbedtls-secrets-log.jl b/rules/mbedtls/mbedtls-secrets-log.jl similarity index 100% rename from mbedtls/mbedtls-secrets-log.jl rename to rules/mbedtls/mbedtls-secrets-log.jl diff --git a/mbedtls/mbedtls-secrets-log.yaml b/rules/mbedtls/mbedtls-secrets-log.yaml similarity index 100% rename from mbedtls/mbedtls-secrets-log.yaml rename to rules/mbedtls/mbedtls-secrets-log.yaml