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:
parent
98525ab758
commit
3b4163a299
2 changed files with 56 additions and 56 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue