]> source.dussan.org Git - vaadin-framework.git/commitdiff
Exclude parsers from checkstyle as they are generated
authorArtur Signell <artur@vaadin.com>
Mon, 27 May 2013 17:35:20 +0000 (20:35 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 29 May 2013 06:53:01 +0000 (06:53 +0000)
Change-Id: I91489d73bec165b5e755b5d76bf220043bee0d66

common.xml

index d673273a538d5d52113def3f888054e1ab3ae9a4..c0c5ca5eb56cb3f5a4214c029375eecaa9c0158c 100644 (file)
@@ -69,7 +69,7 @@
        </target>
 
        <target name="fetch-release-notes-tickets" unless="built.release-notes" if="build.release-notes">
-               <mkdir dir="${vaadin.basedir}/result"/>
+               <mkdir dir="${vaadin.basedir}/result" />
                <subant buildpath="${vaadin.basedir}/buildhelpers" target="fetch-release-notes-tickets" antfile="build.xml" inheritall="true">
                        <property name="output" location="${release-notes-tickets-file}" />
                </subant>
        <target name="checkstyle">
                <fail unless="result.dir" message="No result.dir parameter given" />
                <fail unless="cs.src" message="No cs.src parameter given" />
-               <property name="result.dir.full" location="${result.dir}"/>
+               <property name="result.dir.full" location="${result.dir}" />
                <mkdir dir="${result.dir}" />
                <echo>##teamcity[importData type='checkstyle' path='${result.dir.full}/checkstyle-errors.xml']</echo>
                <cs:checkstyle config="${cs.xml}" failOnViolation="false">
-                       <fileset dir="${cs.src}" includes="**/*.java" />
-                       <formatter type="xml" toFile="${result.dir}/checkstyle-errors.xml"/>
+                       <fileset dir="${cs.src}" includes="**/*.java">
+                               <exclude name="com/vaadin/sass/internal/parser/Parser.java" />
+                               <exclude name="com/vaadin/sass/internal/parser/ParserConstants.java" />
+                               <exclude name="com/vaadin/sass/internal/parser/ParserTokenManager.java" />
+                       </fileset>
+                       <formatter type="xml" toFile="${result.dir}/checkstyle-errors.xml" />
                        <property key="checkstyle.header.file" file="${cs.header-file}" />
                </cs:checkstyle>
        </target>