Permalink
Browse files

added css lint

  • Loading branch information...
peternijssen committed Nov 14, 2014
1 parent 02b2183 commit e9c7ac69c38be9a2d445f3bd8c432ad16eafd52e
Showing with 12 additions and 2 deletions.
  1. +11 −1 build.xml
  2. +1 −1 src/Jumph/Bundle/AppBundle/Resources/public/css/jumph.css
@@ -2,7 +2,7 @@
<project name="Jumph" default="build">
<property name="toolsdir" value="bin/" />
<target name="build"
depends="prepare,copy-parameters,bower,composer,lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci,phpunit,phpdox"
depends="prepare,copy-parameters,bower,composer,csslint,lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci,phpunit,phpdox"
description=""/>

<target name="build-parallel"
@@ -68,6 +68,16 @@
</exec>
</target>

<target name="csslint" description="Run the CSSLint tool on CSS files">
<fileset dir="${basedir}/src" id="cssfiles.raw">
<include name="**/*.css" />
</fileset>
<pathconvert pathsep=" " property="cssfiles.clean" refid="cssfiles.raw" />
<exec executable="csslint" output="${basedir}/build/logs/csslint.xml">
<arg line="--warnings=box-model,floats --errors=ids,important --format=lint-xml ${cssfiles.clean}" />
</exec>
</target>

<target name="lint" description="Perform syntax check of sourcecode files">
<apply executable="php" failonerror="true">
<arg value="-l" />
@@ -1,5 +1,5 @@
.search-form {
padding: 10px 10px 0px 0px;
padding: 10px 10px 0px 0px !important;
}

table th a.sortable {

0 comments on commit e9c7ac6

Please sign in to comment.