diff options
| author | Amaury Levé | 2018-06-22 14:41:52 +0200 |
|---|---|---|
| committer | GitHub | 2018-06-22 14:41:52 +0200 |
| commit | 08d6560282dcd46710d7ad2db4ab8a4bb969e116 (patch) | |
| tree | 23826903e1181a36481993b6c4b6100884a6c630 /its/plugin/projects | |
| parent | 3922c3cd97c13f08bd2ec833e84ac167432d7de8 (diff) | |
| download | sonar-css-08d6560282dcd46710d7ad2db4ab8a4bb969e116.tar.bz2 | |
Rule S4655: '!important' should not be used on 'keyframes' (#61)
Diffstat (limited to 'its/plugin/projects')
| -rw-r--r-- | its/plugin/projects/issues-project/src/file1.css | 17 | ||||
| -rw-r--r-- | its/plugin/projects/issues-project/src/file2.less | 17 | ||||
| -rw-r--r-- | its/plugin/projects/issues-project/src/file3.scss | 17 |
3 files changed, 39 insertions, 12 deletions
diff --git a/its/plugin/projects/issues-project/src/file1.css b/its/plugin/projects/issues-project/src/file1.css index 3d5ac89..4f9b880 100644 --- a/its/plugin/projects/issues-project/src/file1.css +++ b/its/plugin/projects/issues-project/src/file1.css @@ -1,7 +1,16 @@ .class1 { - background-color: #ffw; /* S4647 | color-no-invalid-hex */ - width: 100pixels; /* S4653 | unit-no-unknown */ - /* */ /* S4663 | comment-no-empty */ + background-color: #ffw; /* S4647 | color-no-invalid-hex */ + width: 100pixels; /* S4653 | unit-no-unknown */ + /* */ /* S4663 | comment-no-empty */ content: "first - second"; /* S4652 | string-no-newline */ + second"; /* S4652 | string-no-newline */ +} + +@keyframes important1 { + from { + margin-top: 50px; + } + to { + margin-top: 100px !important; /* S4655 | keyframe-declaration-no-important */ + } }
\ No newline at end of file diff --git a/its/plugin/projects/issues-project/src/file2.less b/its/plugin/projects/issues-project/src/file2.less index 3d5ac89..4f9b880 100644 --- a/its/plugin/projects/issues-project/src/file2.less +++ b/its/plugin/projects/issues-project/src/file2.less @@ -1,7 +1,16 @@ .class1 { - background-color: #ffw; /* S4647 | color-no-invalid-hex */ - width: 100pixels; /* S4653 | unit-no-unknown */ - /* */ /* S4663 | comment-no-empty */ + background-color: #ffw; /* S4647 | color-no-invalid-hex */ + width: 100pixels; /* S4653 | unit-no-unknown */ + /* */ /* S4663 | comment-no-empty */ content: "first - second"; /* S4652 | string-no-newline */ + second"; /* S4652 | string-no-newline */ +} + +@keyframes important1 { + from { + margin-top: 50px; + } + to { + margin-top: 100px !important; /* S4655 | keyframe-declaration-no-important */ + } }
\ No newline at end of file diff --git a/its/plugin/projects/issues-project/src/file3.scss b/its/plugin/projects/issues-project/src/file3.scss index 3d5ac89..4f9b880 100644 --- a/its/plugin/projects/issues-project/src/file3.scss +++ b/its/plugin/projects/issues-project/src/file3.scss @@ -1,7 +1,16 @@ .class1 { - background-color: #ffw; /* S4647 | color-no-invalid-hex */ - width: 100pixels; /* S4653 | unit-no-unknown */ - /* */ /* S4663 | comment-no-empty */ + background-color: #ffw; /* S4647 | color-no-invalid-hex */ + width: 100pixels; /* S4653 | unit-no-unknown */ + /* */ /* S4663 | comment-no-empty */ content: "first - second"; /* S4652 | string-no-newline */ + second"; /* S4652 | string-no-newline */ +} + +@keyframes important1 { + from { + margin-top: 50px; + } + to { + margin-top: 100px !important; /* S4655 | keyframe-declaration-no-important */ + } }
\ No newline at end of file |
