aboutsummaryrefslogtreecommitdiffstats
path: root/its/plugin/projects/metrics-project
diff options
context:
space:
mode:
authorAmaury Levé2018-06-21 14:55:09 +0200
committerGitHub2018-06-21 14:55:09 +0200
commit9bcc46b342cfb888f16c180cb0b3103335def5f1 (patch)
tree6b85805bbedef51c974b6984cb42b53052f9b375 /its/plugin/projects/metrics-project
parent913028fc4c913fec3bbc1800c00e526413040e01 (diff)
downloadsonar-css-9bcc46b342cfb888f16c180cb0b3103335def5f1.tar.bz2
Rule S4653: Units should be valid (#50)
Diffstat (limited to 'its/plugin/projects/metrics-project')
-rw-r--r--its/plugin/projects/metrics-project/src/file1.css9
-rw-r--r--its/plugin/projects/metrics-project/src/file2.less11
-rw-r--r--its/plugin/projects/metrics-project/src/file3.scss12
-rw-r--r--its/plugin/projects/metrics-project/src/file4.html10
4 files changed, 42 insertions, 0 deletions
diff --git a/its/plugin/projects/metrics-project/src/file1.css b/its/plugin/projects/metrics-project/src/file1.css
new file mode 100644
index 0000000..fc4bf73
--- /dev/null
+++ b/its/plugin/projects/metrics-project/src/file1.css
@@ -0,0 +1,9 @@
+.class1 {
+ background-color: #2d5e8b;
+}
+.class1 .class2 {
+ color: #2d5e8b;
+ foo: "some text";
+}
+
+/* some comment */ \ No newline at end of file
diff --git a/its/plugin/projects/metrics-project/src/file2.less b/its/plugin/projects/metrics-project/src/file2.less
new file mode 100644
index 0000000..691fd11
--- /dev/null
+++ b/its/plugin/projects/metrics-project/src/file2.less
@@ -0,0 +1,11 @@
+@color-base: #2d5e8b;
+.class1 {
+ background-color: @color-base;
+ .class2 {
+ background-color: #fff;
+ color: @color-base;
+ foo: "some text";
+ }
+}
+
+/* some comment */ \ No newline at end of file
diff --git a/its/plugin/projects/metrics-project/src/file3.scss b/its/plugin/projects/metrics-project/src/file3.scss
new file mode 100644
index 0000000..fd62422
--- /dev/null
+++ b/its/plugin/projects/metrics-project/src/file3.scss
@@ -0,0 +1,12 @@
+$firstValue: 62.5%;
+
+$firstValue: 24px !default;
+
+body {
+ font-size: $firstValue;
+ foo: "some text";
+}
+
+// body font size = 62.5%
+
+/* some comment */ \ No newline at end of file
diff --git a/its/plugin/projects/metrics-project/src/file4.html b/its/plugin/projects/metrics-project/src/file4.html
new file mode 100644
index 0000000..499a20b
--- /dev/null
+++ b/its/plugin/projects/metrics-project/src/file4.html
@@ -0,0 +1,10 @@
+<!doctype html>
+<title>Example</title>
+<style>
+p {
+ font-size: 5vw;
+ padding: 0 5vw;
+ line-height: 1.8em;
+ }
+</style>
+<p>Hello World!</p>