Update generate (#892)

* maintain parity with recent changes... need to create rule contributing guidelines

* missed on, ensure uniqueness in rule-id
This commit is contained in:
Zachary Rice authored and GitHub committed 2022-06-20 14:57:48 -05:00
1 parent c14af5ffdf
commit 70028079b4
3 files changed
+17 -8

No files matched your search

+3 -3
View File
@@ -26,7 +26,7 @@ func FlutterwavePublicKey() *config.Rule {
func FlutterwaveSecretKey() *config.Rule {
// define rule
r := config.Rule{
Description: "Finicity Secret Key",
Description: "Flutterwave Secret Key",
RuleID: "flutterwave-secret-key",
Regex: regexp.MustCompile(`FLWSECK_TEST-(?i)[a-h0-9]{32}-X`),
Keywords: []string{"FLWSECK_TEST"},
@@ -42,8 +42,8 @@ func FlutterwaveSecretKey() *config.Rule {
func FlutterwaveEncKey() *config.Rule {
// define rule
r := config.Rule{
Description: "Finicity Secret Key",
RuleID: "flutterwave-public-key",
Description: "Flutterwave Encryption Key",
RuleID: "flutterwave-encryption-key",
Regex: regexp.MustCompile(`FLWSECK_TEST-(?i)[a-h0-9]{12}`),
Keywords: []string{"FLWSECK_TEST"},
}