Hello,
I'm trying to use OpenPublic in Jenkins.
Some tests are done on JS files and CSS.
The CSS tests are failing on themes/openomega/css/global.css because of the:
@charset "UTF-8"
According to W3C, it must not be preceded by any characters, not even comments.
Comments
Comment #1
DSheffler commentedWe do not support Jenkins at this time. However, I am leaving this open to see if someone from the community is able to help answer your question.
Comment #2
polHi @DSheffler,
It's not a matter of supporting Jenkins, it's a matter of coding standard.
To reproduce the problem, copy-paste the content of that file (http://drupalcode.org/project/openpublic.git/blob_plain/refs/heads/7.x-1...) into CSSlint.
CSSlint will report one error, it's because
@charset "UTF-8"must be at the first line.You can fix it just by doing:
Instead of:
Thanks for fixing it...
Comment #3
polForgot to change the category...
Comment #4
hefox commentedComment #6
hefox commentedhuh, brings up a code style conflict -- drupal standards is to have a @file at top https://www.drupal.org/node/1887862
Moved, but should be likely should be testing your site with css aggegration on. Not sure if that'd make it worse though (e.g. if it'd manage to be the top in the aggegrated css it's in)