org.sonar.l10n.web.rules.Web.ChildElementRequiredCheck.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-web-plugin Show documentation
Show all versions of sonar-web-plugin Show documentation
Enables scanning of HTML, and JSP/JSF files.
This rule checks that the specified child elements are present inside the specified parent elements.
Noncompliant Code Example
Given a parent/child combination of <head>
/<title>
:
<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