All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.web.rules.Web.ChildElementRequiredCheck.html Maven / Gradle / Ivy

Go to download

Analyze HTML (also within PHP/Ruby/etc. templates) and JSP/JSF code.

The newest version!

This rule checks that the specified child elements are present inside the specified parent elements.

Given a parent/child combination of <head>/<title>:

Noncompliant Code Example

<html>
  <head>
  </head>  <!-- Noncompliant; no title element -->
  <body>
    ...

Compliant Solution

<html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    ...




© 2015 - 2024 Weber Informatics LLC | Privacy Policy