Hi, we are using SonarCloud and SonarLint for our Django/Jinja2 framework. Jinja2 uses lots of imports to build web pages, so often a page on its own will not have compliant HTML. For example, we might import the header to a table from a different file if it is repeated a lot.
We therefore get hundreds of errors because SonarCloud and SonarLint only read the file in isolation. Is there any way for it to parse the HTML as if the imports were made?
What’s the usual best practice in this case?