The Compliant (or non-compliant) code example seems irrelevant, why is that?
In the vast majority of instances, the code examples provided in AMP will be relevant to the Best Practice and violations generated in the reports. There may be instances where it appears that the code examples provided are not directly relevant to the violation which appears in your report. It is important to keep in mind, however, that the code examples exist to provide a glimpse into the nature of the issue (and how to fix it), but that the rest of the Best Practice entry – such as the description and recommended changes – are equally important in understanding what the problem is and how to resolve it.