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

Merge pull request #135 from csaf-poc/link-checker

Link checker
This commit is contained in:
Sascha L. Teichmann 2022-05-17 17:26:35 +02:00 committed by GitHub
commit d779a3fd7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 256 additions and 34 deletions

View file

@ -186,10 +186,17 @@ func (r *changesReporter) report(p *processor, domain *Domain) {
req.Messages = p.badChanges
}
func (r *directoryListingsReporter) report(_ *processor, domain *Domain) {
// TODO: Implement me!
func (r *directoryListingsReporter) report(p *processor, domain *Domain) {
req := r.requirement(domain)
_ = req
if !p.badDirListings.used() {
req.message("No directory listings checked.")
return
}
if len(p.badDirListings) == 0 {
req.message("All directory listings are valid.")
return
}
req.Messages = p.badDirListings
}
func (r *integrityReporter) report(p *processor, domain *Domain) {