in rules.js [36:49]
setup() {
this.on("dom:ready", event => {
const anchors = event.document.getElementsByTagName('a');
if (anchors === null) {
return;
}
anchors.forEach(a => {
const href = a.getAttribute("href");
if (href && href.value.startsWith("https://camel.apache.org")) {
this.report(a, `For links within camel.apache.org use relative links, found: ${href.value}`);
}
});
});
}