SonarQube rule - "title" should be present in all pages

1.2k views Asked by At

The rule "title" should be present in all pages is present on the Web Profile of SonarQube. I understand the reason why it exists but I am facing a situation where nothing can be done - so far - to avoid its violation. Let me explain...

When developing using primefaces if the header in xhtml is declared as just "head" tag it does not include some artificats that belongs to the primefaces framework. So, a xhtml like is required

<h:head>
<title>something</title>
....
<h:/head>

But this violates the rule I mentioned in bold. Maybe because it checks html and xhtml files... not sure.

My thought about that was:

  • to edit this rule so it would recognize as a complaint code a h:head, or;
  • change the extension files this rule scans, or;
  • as last case disable it;

Any ideas about what to do and how to do it?

0

There are 0 answers