When we try to send emails from AJO we get this alert. Saying that the opt-out link is missing in the body.

But his is not entirely true. The link is there, but is placed inside a fragment. To us it seems like AJO is not able to see this link when it is inside a fragment, and then returns a alert. We have placed the link inside a footer fragment, that is not broken before sending the email. We are also using if/or logic controlled by variables to show the right language for that link. This also might be a reason for AJO is not able to recognize the link. But it is there, and it is working.
Could the code checker that looks for this opt-out link also try to look for this code inside fragments?