1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Restrucure object graph.

This commit is contained in:
Sascha L. Teichmann 2021-12-12 23:25:55 +01:00
parent 98525ab758
commit 3b4163a299
2 changed files with 56 additions and 56 deletions

View file

@ -98,8 +98,8 @@ func writeReport(report *Report, opts *options) error {
return writer(report, w)
}
func buildChecks() checks {
return checks{
func buildChecks() []check {
return []check{
&tlsCheck{baseCheck{3, "TLS"}},
&redirectsCheck{baseCheck{6, "Redirects"}},
&providerMetadataCheck{baseCheck{7, "provider-metadata.json"}},
@ -127,7 +127,9 @@ func main() {
return
}
report, err := buildChecks().run(domains)
p := newProcessor(opts)
report, err := p.run(buildChecks(), domains)
errCheck(err)
errCheck(writeReport(report, opts))