Determine required files from custom HTML
This commit is contained in:
@@ -156,15 +156,18 @@ struct HtmlCommand: CommandProcessor {
|
||||
return
|
||||
}
|
||||
if findFile(withAbsolutePath: path) {
|
||||
// File marked as required
|
||||
return
|
||||
}
|
||||
|
||||
let fileId = path.dropBeforeLast("/")
|
||||
if content.isValidIdForFile(fileId) {
|
||||
results.missing(file: fileId, source: "HTML: \(source)")
|
||||
} else {
|
||||
results.warning("Could not find file '\(path)' for \(source)")
|
||||
}
|
||||
results.requiredOutput(path.withLeadingSlashRemoved, source: "HTML: \(source)")
|
||||
|
||||
// let fileId = path.dropBeforeLast("/")
|
||||
// if content.isValidIdForFile(fileId) {
|
||||
// results.missing(file: fileId, source: "HTML: \(source)")
|
||||
// } else {
|
||||
// results.warning("Could not find file '\(path)' for \(source)")
|
||||
// }
|
||||
}
|
||||
|
||||
private func findFile(withAbsolutePath absolutePath: String) -> Bool {
|
||||
|
||||
Reference in New Issue
Block a user