Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 24 additions & 22 deletions pkg/enums/tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,29 @@ import "github.com/iancoleman/strcase"
type Tool string

const (
HorusecEngine Tool = "HorusecEngine"
GoSec Tool = "GoSec"
SecurityCodeScan Tool = "SecurityCodeScan"
Brakeman Tool = "Brakeman"
Safety Tool = "Safety"
Bandit Tool = "Bandit"
NpmAudit Tool = "NpmAudit"
YarnAudit Tool = "YarnAudit"
GitLeaks Tool = "GitLeaks"
TfSec Tool = "TfSec"
Checkov Tool = "Checkov"
Semgrep Tool = "Semgrep"
Flawfinder Tool = "Flawfinder"
PhpCS Tool = "PhpCS"
MixAudit Tool = "MixAudit"
Sobelow Tool = "Sobelow"
ShellCheck Tool = "ShellCheck"
BundlerAudit Tool = "BundlerAudit"
OwaspDependencyCheck Tool = "OwaspDependencyCheck"
DotnetCli Tool = "DotnetCli"
Nancy Tool = "Nancy"
Trivy Tool = "Trivy"
HorusecEngine Tool = "HorusecEngine"
GoSec Tool = "GoSec"
SecurityCodeScan Tool = "SecurityCodeScan"
Brakeman Tool = "Brakeman"
Safety Tool = "Safety"
Bandit Tool = "Bandit"
NpmAudit Tool = "NpmAudit"
YarnAudit Tool = "YarnAudit"
GitLeaks Tool = "GitLeaks"
TfSec Tool = "TfSec"
Checkov Tool = "Checkov"
Semgrep Tool = "Semgrep"
Flawfinder Tool = "Flawfinder"
PhpCS Tool = "PhpCS"
MixAudit Tool = "MixAudit"
Sobelow Tool = "Sobelow"
ShellCheck Tool = "ShellCheck"
BundlerAudit Tool = "BundlerAudit"
OwaspDependencyCheck Tool = "OwaspDependencyCheck"
DotnetCli Tool = "DotnetCli"
Nancy Tool = "Nancy"
Trivy Tool = "Trivy"
HorusecSemanticEngine Tool = "HorusecSemanticEngine"
)

func (t Tool) ToString() string {
Expand Down Expand Up @@ -76,5 +77,6 @@ func Values() []Tool {
DotnetCli,
Nancy,
Trivy,
HorusecSemanticEngine,
}
}
6 changes: 4 additions & 2 deletions pkg/enums/tools/tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func TestToString(t *testing.T) {
assert.Equal(t, "DotnetCli", DotnetCli.ToString())
assert.Equal(t, "Nancy", Nancy.ToString())
assert.Equal(t, "Trivy", Trivy.ToString())
assert.Equal(t, "HorusecSemanticEngine", HorusecSemanticEngine.ToString())
})
}

Expand Down Expand Up @@ -71,11 +72,12 @@ func TestToLowerCase(t *testing.T) {
assert.Equal(t, "dotnetCli", DotnetCli.ToLowerCamel())
assert.Equal(t, "nancy", Nancy.ToLowerCamel())
assert.Equal(t, "trivy", Trivy.ToLowerCamel())
assert.Equal(t, "horusecSemanticEngine", HorusecSemanticEngine.ToLowerCamel())
})
}

func TestValues(t *testing.T) {
t.Run("should return 21 valid values", func(t *testing.T) {
assert.Len(t, Values(), 22)
t.Run("should return 23 valid values", func(t *testing.T) {
assert.Len(t, Values(), 23)
})
}