css:S2260 - CSS parser failure - Issue with specific css

79 views
Skip to first unread message

gael....@gmail.com

unread,
Mar 2, 2016, 9:15:18 AM3/2/16
to SonarQube
Hi,

I'm not an expert with css: I have an issue from different css files, the css parser failed due to '|' character.
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";

global
{    fontFamily: Arial;
    fontWeight
: normal;
    fontSize
: 11;
    chrome
-color: #EDF1FA;
    color
: #274E9D;
    content
-background-color: #EDF1FA;
    symbol
-color: #274E9D;
    roll
-over-color: #68ADFA;
    selection
-color: #ffffff;
    focus
-color: #8AABD6;
    accent
-color: #8AABD6;
}

s
|Application {
skinClass
: ClassReference("test.skins.BlueApplicationSkin");
}

But if validate this css with https://jigsaw.w3.org/css-validator/#validate_by_input the file is parsable with syntax error...
This css is used by flash interface (swf)

David Racodon

unread,
Mar 2, 2016, 1:36:59 PM3/2/16
to gael....@gmail.com, SonarQube
Hi,

Indeed namespaces are not currently supported by the plugin. See https://github.com/SonarQubeCommunity/sonar-css/issues/48. I'll try to tackle this issue in the upcoming version.

Regards,

David RACODON
Freelance QA Consultant

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/80f1bef4-374a-4c11-b55e-a90ac95d7304%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gael....@gmail.com

unread,
Mar 3, 2016, 3:01:47 AM3/3/16
to SonarQube, gael....@gmail.com
Thanks for the response. I will exclude these files for the moment.

David Racodon

unread,
Mar 4, 2016, 9:47:41 AM3/4/16
to Gaël Tardy, SonarQube
Hi,

I just added support for namespace.
It would be great if you could test it on your code and provide some feedback.

Thank you

Regards,

David RACODON
Freelance QA Consultant

gael....@gmail.com

unread,
Mar 7, 2016, 2:43:32 PM3/7/16
to SonarQube, gael....@gmail.com
Hi David,

I've successfully tested this release of the CSS plugin.

Regards

David Racodon

unread,
Mar 7, 2016, 3:35:57 PM3/7/16
to Gaël Tardy, SonarQube
Cool! Thanks for the feedback!

David RACODON
Freelance QA Consultant

Reply all
Reply to author
Forward
0 new messages