Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add additional fuzzing probes #3473

Merged
merged 18 commits into from
Oct 9, 2023
Merged
Prev Previous commit
Next Next commit
nit: fix constant
Signed-off-by: David Korczynski <david@adalogics.com>
  • Loading branch information
DavidKorczynski committed Oct 5, 2023
commit b04351e99e74d88d48a65d4bc038d25868327645
3 changes: 2 additions & 1 deletion checks/raw/fuzzing.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const (
fuzzerRustCargoFuzz = "RustCargoFuzzer"
fuzzerJavaJazzerFuzzer = "JavaJazzerFuzzer"
// TODO: add more fuzzing check supports.
fourPointZero = 4.0
)

type filesWithPatternStr struct {
Expand Down Expand Up @@ -374,7 +375,7 @@ func getProminentLanguages(langs []clients.Language) []clients.LanguageName {
// Languages that have lines of code above average will be considered prominent.
ret := []clients.LanguageName{}
for lName, loC := range langMap {
if loC >= avgLoC/4.0 {
if loC >= avgLoC/fourPointZero {
lang := clients.LanguageName(strings.ToLower(string(lName)))
ret = append(ret, lang)
}
Expand Down