-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note that this rule is not include in the Sonar way profile so there was no need to demote it.
- Loading branch information
1 parent
9212890
commit 5ef17bb
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1086.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<p>This rule is deprecated, and will eventually be removed.</p> | ||
<h2>Why is this an issue?</h2> | ||
<p>Heading tags are used by search engines and screen reader softwares to construct an outline of the page.</p> | ||
<p>Starting at <code><h1></code> and not skipping any level eases this automatic construction.</p> | ||
<h3>Noncompliant code example</h3> | ||
<pre> | ||
<h2>My Title</h2> <!-- Non-Compliant - h1 is not being used --> | ||
|
||
<h3>My Sub Title</h3> <!-- Compliant --> | ||
</pre> | ||
<h3>Compliant solution</h3> | ||
<pre> | ||
<h1>My Title</h1> <!-- Compliant --> | ||
|
||
<h2>My Sub Title</h2> <!-- Compliant --> | ||
</pre> | ||
|
17 changes: 17 additions & 0 deletions
17
sonar-html-plugin/src/main/resources/org/sonar/l10n/web/rules/Web/S1086.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"title": "Heading tags should be used consecutively from \"H1\" to \"H6\"", | ||
"type": "CODE_SMELL", | ||
"status": "deprecated", | ||
"remediation": { | ||
"func": "Constant\/Issue", | ||
"constantCost": "5min" | ||
}, | ||
"tags": [ | ||
"accessibility" | ||
], | ||
"defaultSeverity": "Minor", | ||
"ruleSpecification": "RSPEC-1086", | ||
"sqKey": "NonConsecutiveHeadingCheck", | ||
"scope": "Main", | ||
"quickfix": "unknown" | ||
} |