diff options
| author | Amaury Levé | 2018-06-26 14:07:47 +0200 |
|---|---|---|
| committer | Amaury Levé | 2018-06-26 14:22:27 +0200 |
| commit | d449cd90192074b06b6a040cb82c66051b2bf1fa (patch) | |
| tree | a5a7b11df8bfeacc33309a64b30bfd9adb387cf7 /sonar-css-plugin/src/main/resources/org | |
| parent | 83a0a343d718c58d432bb218e412527de049070f (diff) | |
| download | sonar-css-d449cd90192074b06b6a040cb82c66051b2bf1fa.tar.bz2 | |
Rule S4661: Media features should be valid
Diffstat (limited to 'sonar-css-plugin/src/main/resources/org')
3 files changed, 32 insertions, 0 deletions
diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4661.html b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4661.html new file mode 100644 index 0000000..1c94ee3 --- /dev/null +++ b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4661.html @@ -0,0 +1,15 @@ +<p>The W3C specifications define the valid media features. Only the official and browser-specific media features should be used to get the expected +impact in the final rendering.</p> +<h2>Noncompliant Code Example</h2> +<pre> +@media screen and (unknown: 1000px) { .. } +</pre> +<h2>Compliant Solution</h2> +<pre> +@media screen and (width: 1000px) { .. } +</pre> +<h2>See</h2> +<ul> + <li> https://www.w3schools.com/cssref/css3_pr_mediaquery.asp </li> +</ul> + diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4661.json b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4661.json new file mode 100644 index 0000000..d850955 --- /dev/null +++ b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4661.json @@ -0,0 +1,16 @@ +{ + "title": "Media features should be valid", + "type": "BUG", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "1min" + }, + "tags": [ + + ], + "defaultSeverity": "Major", + "ruleSpecification": "RSPEC-4661", + "sqKey": "S4661", + "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 73fa72d..bc74edf 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", "S4659", "S4660", + "S4661", "S4662", "S4663", "S4666", |
