From b4b9eb58b027d33f263fcdbf066f3440cdd44283 Mon Sep 17 00:00:00 2001 From: Elena Vilchik Date: Fri, 14 Jun 2019 14:25:18 +0200 Subject: Revert "Add rule S5362: Expressions within "calc" should be valid (#180)" (#185) This reverts commit 479b21eb67bd2f5f7170cb4e14b19561ed59ddcf.--- .../org/sonar/l10n/css/rules/css/S5362.html | 24 ---------------------- .../org/sonar/l10n/css/rules/css/S5362.json | 16 --------------- .../l10n/css/rules/css/Sonar_way_profile.json | 4 ++-- 3 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S5362.html delete mode 100644 sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S5362.json (limited to 'sonar-css-plugin/src/main/resources') diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S5362.html b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S5362.html deleted file mode 100644 index 66fa5cd..0000000 --- a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S5362.html +++ /dev/null @@ -1,24 +0,0 @@ -
To perform calculations when specifying a CSS property calc() function can be used. This function takes single expression as
-parameter. When writing this expression some rules must be respected:
calc() Otherwise calc() function will be invalid and the entire rule using it will be ignored.
-.btn {
- border: solid black 1px;
- width: calc(100% 80px); /* Noncompliant */
-}
-
-
-.btn {
- border: solid black 1px;
- width: calc(100% - 80px);
-}
-
-
diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S5362.json b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S5362.json
deleted file mode 100644
index bde6f63..0000000
--- a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S5362.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "title": "Expressions within \"calc\" should be valid",
- "type": "BUG",
- "status": "ready",
- "remediation": {
- "func": "Constant\/Issue",
- "constantCost": "5min"
- },
- "tags": [
-
- ],
- "defaultSeverity": "Critical",
- "ruleSpecification": "RSPEC-5362",
- "sqKey": "S5362",
- "scope": "All"
-}
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 7834cba..9b98de0 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
@@ -6,6 +6,7 @@
"S4647",
"S4648",
"S4649",
+ "S4650",
"S4651",
"S4652",
"S4653",
@@ -22,7 +23,6 @@
"S4666",
"S4667",
"S4668",
- "S4670",
- "S5362"
+ "S4670"
]
}
--
cgit v1.2.3