Unexpected empty source on thymeleaf fragment that calls for a css file

right now i keep getting a smell (Unexpected empty source) on this fragment, lookis like sonarqube is not seeing the content in the fragment of the files
<style th:replace="fragments/1000/customerInvoice/styles :: styles" th:remove="tag"></style>
any ideas in how to solve it?

Hi,

Could you explain what’s your code doing? what is “the fragment of the files”?
Does the file containing this code have .html extension?