diff options
| author | Amaury Levé | 2018-06-25 14:34:12 +0200 |
|---|---|---|
| committer | Elena Vilchik | 2018-06-26 11:49:59 +0200 |
| commit | 260881d116176050141705295ce871bf23a790c2 (patch) | |
| tree | d3aca93598630be01974d1a7aee238510561add1 /sonar-css-plugin/src/main/resources/org | |
| parent | ad92bb6746b5b29ce41f91f7aa6dc2bb8195fa07 (diff) | |
| download | sonar-css-260881d116176050141705295ce871bf23a790c2.tar.bz2 | |
Rule S4670: Selectors should be known
Diffstat (limited to 'sonar-css-plugin/src/main/resources/org')
3 files changed, 33 insertions, 1 deletions
diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4670.html b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4670.html new file mode 100644 index 0000000..98fc58c --- /dev/null +++ b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4670.html @@ -0,0 +1,15 @@ +<p>HTML, SVG, and MathML define the selectors which can be used in a CSS. A selector that is not part of them is likely to be a typo or a +misunderstanding of the CSS syntax.</p> +<h2>Noncompliant Code Example</h2> +<pre> +field {} + +ul list {} +</pre> +<h2>Compliant Solution</h2> +<pre> +input {} + +ul li {} +</pre> + diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4670.json b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4670.json new file mode 100644 index 0000000..3d3f3ea --- /dev/null +++ b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4670.json @@ -0,0 +1,16 @@ +{ + "title": "Selectors should be known", + "type": "BUG", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "5min" + }, + "tags": [ + + ], + "defaultSeverity": "Critical", + "ruleSpecification": "RSPEC-4670", + "sqKey": "S4670", + "scope": "Main" +} diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/Sonar_way_profile.json b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/Sonar_way_profile.json index 079c18c..23dc9cf 100644 --- a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/Sonar_way_profile.json +++ b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/Sonar_way_profile.json @@ -15,6 +15,7 @@ "S4658", "S4663", "S4666", - "S4667" + "S4667", + "S4670" ] }
|
