diff options
| author | Amaury Levé | 2018-06-26 10:16:36 +0200 |
|---|---|---|
| committer | Elena Vilchik | 2018-06-26 12:28:30 +0200 |
| commit | ce2d1faa94e608b5548bed628cf5294c516258c4 (patch) | |
| tree | 253f0335f4f6570128f5617e411322ed4324f91a /sonar-css-plugin/src/main/resources | |
| parent | 8db7b98e916e6c5707c338bdd6dd607de15469f3 (diff) | |
| download | sonar-css-ce2d1faa94e608b5548bed628cf5294c516258c4.tar.bz2 | |
Rule S4660: Pseudo-element selectors should be valid
Diffstat (limited to 'sonar-css-plugin/src/main/resources')
3 files changed, 32 insertions, 0 deletions
diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4660.html b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4660.html new file mode 100644 index 0000000..8c03492 --- /dev/null +++ b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4660.html @@ -0,0 +1,15 @@ +<p>The W3C specifications define the valid pseudo-element selectors. Only the official and browser-specific pseudo-element selectors should be used to +get the expected impact in the final rendering.</p> +<h2>Noncompliant Code Example</h2> +<pre> +a::beforre { +... +} +</pre> +<h2>Compliant Solution</h2> +<pre> +a::before { +... +} +</pre> + diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4660.json b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4660.json new file mode 100644 index 0000000..ab98e82 --- /dev/null +++ b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4660.json @@ -0,0 +1,16 @@ +{ + "title": "Pseudo-element selectors should be valid", + "type": "BUG", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "1min" + }, + "tags": [ + + ], + "defaultSeverity": "Major", + "ruleSpecification": "RSPEC-4660", + "sqKey": "S4660", + "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 04a30dc..7e9fe85 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 @@ -14,6 +14,7 @@ "S4657", "S4658", "S4659", + "S4660", "S4663", "S4666", "S4667", |
