Fix dead links
This commit is contained in:
@ -198,5 +198,5 @@ Example:
|
||||
## Available Report Formats
|
||||
|
||||
PMD comes with many different renderers.
|
||||
All formats are described at [PMD Report formats](pmd_userdos_report_formats.html)
|
||||
All formats are described at [PMD Report formats](pmd_userdocs_report_formats.html)
|
||||
|
||||
|
@ -177,6 +177,12 @@ public class DeadLinksChecker {
|
||||
} else {
|
||||
linkOk = linkTarget.isEmpty() || htmlPages.contains(linkTarget);
|
||||
}
|
||||
|
||||
// maybe a local file
|
||||
if (!linkOk) {
|
||||
Path localResource = docsDirectory.resolve(linkTarget);
|
||||
linkOk = Files.exists(localResource);
|
||||
}
|
||||
}
|
||||
|
||||
if (!linkOk) {
|
||||
|
Reference in New Issue
Block a user