Преглед изворни кода

chore(rules): include fps in reference (#1471)

Richard Gomez пре 1 година
родитељ
комит
973c794cf0
2 измењених фајлова са 8 додато и 2 уклоњено
  1. 4 1
      CONTRIBUTING.md
  2. 4 1
      cmd/generate/config/rules/beamer.go

+ 4 - 1
CONTRIBUTING.md

@@ -49,7 +49,10 @@ If you want to add a new rule to the [default Gitleaks configuration](https://gi
        tps := []string{
            generateSampleSecret("beamer", "b_"+secrets.NewSecret(alphaNumericExtended("44"))),
        }
-       return validate(r, tps, nil)
+       fps := []string{
+           `R21A-A-V010SP13RC181024R16900-CN-B_250K-Release-OTA-97B6C6C59241976086FABDC41472150C.bfu`,
+       }
+       return validate(r, tps, fps)
    }
    ```
 

+ 4 - 1
cmd/generate/config/rules/beamer.go

@@ -18,5 +18,8 @@ func Beamer() *config.Rule {
 
 	// validate
 	tps := utils.GenerateSampleSecrets("beamer", "b_"+secrets.NewSecret(utils.AlphaNumericExtended("44")))
-	return utils.Validate(r, tps, nil)
+	fps := []string{
+		`│   ├── R21A-A-V010SP13RC181024R16900-CN-B_250K-Release-OTA-97B6C6C59241976086FABDC41472150C.bfu`,
+	}
+	return utils.Validate(r, tps, fps)
 }