628
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : lint.ant.xml
|
|
5 |
Part of : Helium
|
|
6 |
|
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
8 |
All rights reserved.
|
|
9 |
This component and the accompanying materials are made available
|
|
10 |
under the terms of the License "Eclipse Public License v1.0"
|
|
11 |
which accompanies this distribution, and is available
|
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
13 |
|
|
14 |
Initial Contributors:
|
|
15 |
Nokia Corporation - initial contribution.
|
|
16 |
|
|
17 |
Contributors:
|
|
18 |
|
|
19 |
Description:
|
|
20 |
|
|
21 |
============================================================================
|
|
22 |
-->
|
|
23 |
<project name="lint" xmlns:hlm="http://www.nokia.com/helium"
|
645
|
24 |
xmlns:cs="antlib:com.puppycrawl.tools.checkstyle">
|
628
|
25 |
|
|
26 |
<!-- Checks FTL files for lint issues. -->
|
|
27 |
<target name="ftllint">
|
|
28 |
<for param="file">
|
|
29 |
<path>
|
|
30 |
<fileset dir="${helium.dir}">
|
|
31 |
<include name="**/*.ftl"/>
|
|
32 |
<include name="**/*.rst"/>
|
|
33 |
<exclude name="**/*.mk.ftl"/>
|
|
34 |
<exclude name="build/**/*"/>
|
|
35 |
</fileset>
|
|
36 |
</path>
|
|
37 |
<sequential>
|
|
38 |
<loadfile srcfile="@{file}" property="tabs.in.ftl">
|
|
39 |
<filterchain>
|
|
40 |
<linecontainsregexp>
|
|
41 |
<regexp pattern="\t"/>
|
|
42 |
</linecontainsregexp>
|
|
43 |
</filterchain>
|
|
44 |
</loadfile>
|
|
45 |
<fail if="tabs.in.ftl" message="@{file} has tabs" />
|
|
46 |
</sequential>
|
|
47 |
</for>
|
|
48 |
</target>
|
|
49 |
|
|
50 |
|
|
51 |
<target name="hlmlint" depends="antlint,ftllint"/>
|
|
52 |
|
|
53 |
</project>
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|