summaryrefslogtreecommitdiff
path: root/android/testData/lint
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2014-01-17 11:33:05 -0800
committerTor Norbye <tnorbye@google.com>2014-01-17 16:32:26 -0800
commit058757f6f2cbe91db10097e4ca8aa124587727a2 (patch)
treef7b5ae6d13984f1640bce4cb873bf9f2b263dc13 /android/testData/lint
parent4628023c1d665cd00c7f1342f18d601bba1fce8b (diff)
downloadidea-058757f6f2cbe91db10097e4ca8aa124587727a2.tar.gz
64948: Improve lint.xml support in Studio
Change-Id: I3aab4c6fe90c8ddef14c2ffd12250e0a34701725
Diffstat (limited to 'android/testData/lint')
-rw-r--r--android/testData/lint/global/missingPrefix2/lint.xml5
-rw-r--r--android/testData/lint/global/missingPrefix3/lint.xml4
-rw-r--r--android/testData/lint/global/missingPrefix4/lint.xml6
-rw-r--r--android/testData/lint/global/typographyQuotes/lint.xml4
-rw-r--r--android/testData/lint/missingPrefix2.xml27
-rw-r--r--android/testData/lint/missingPrefix3.xml27
-rw-r--r--android/testData/lint/missingPrefix4.xml27
7 files changed, 100 insertions, 0 deletions
diff --git a/android/testData/lint/global/missingPrefix2/lint.xml b/android/testData/lint/global/missingPrefix2/lint.xml
new file mode 100644
index 00000000000..6de3bb22479
--- /dev/null
+++ b/android/testData/lint/global/missingPrefix2/lint.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lint>
+ <issue id="MissingPrefix" severity="ignore" />
+ <issue id="DuplicateIds" severity="error" />
+</lint>
diff --git a/android/testData/lint/global/missingPrefix3/lint.xml b/android/testData/lint/global/missingPrefix3/lint.xml
new file mode 100644
index 00000000000..62e9823d398
--- /dev/null
+++ b/android/testData/lint/global/missingPrefix3/lint.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lint>
+ <issue id="MissingPrefix" severity="warning" />
+</lint>
diff --git a/android/testData/lint/global/missingPrefix4/lint.xml b/android/testData/lint/global/missingPrefix4/lint.xml
new file mode 100644
index 00000000000..b2226c73f6c
--- /dev/null
+++ b/android/testData/lint/global/missingPrefix4/lint.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lint>
+ <issue id="MissingPrefix">
+ <ignore path="res/layout/layout.xml" />
+ </issue>
+</lint>
diff --git a/android/testData/lint/global/typographyQuotes/lint.xml b/android/testData/lint/global/typographyQuotes/lint.xml
new file mode 100644
index 00000000000..520990e12a7
--- /dev/null
+++ b/android/testData/lint/global/typographyQuotes/lint.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lint>
+ <issue id="TypographyQuotes" severity="warning" />
+</lint>
diff --git a/android/testData/lint/missingPrefix2.xml b/android/testData/lint/missingPrefix2.xml
new file mode 100644
index 00000000000..655b4c43ef4
--- /dev/null
+++ b/android/testData/lint/missingPrefix2.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2014 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<LinearLayout xmlns:an="http://schemas.android.com/apk/res/android"
+ an:layout_width="fill_parent"
+ an:layout_height="fill_parent"
+ >
+ <TextView
+ an:layout_width="fill_parent"
+ an:layout_height="wrap_content"
+ id="@+id/id1<caret>23"
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/missingPrefix3.xml b/android/testData/lint/missingPrefix3.xml
new file mode 100644
index 00000000000..8f4f81546e4
--- /dev/null
+++ b/android/testData/lint/missingPrefix3.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2014 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<LinearLayout xmlns:an="http://schemas.android.com/apk/res/android"
+ an:layout_width="fill_parent"
+ an:layout_height="fill_parent"
+ >
+ <TextView
+ an:layout_width="fill_parent"
+ an:layout_height="wrap_content"
+ <warning>id="@+id/id1<caret>23"</warning>
+ />
+</LinearLayout>
+
diff --git a/android/testData/lint/missingPrefix4.xml b/android/testData/lint/missingPrefix4.xml
new file mode 100644
index 00000000000..655b4c43ef4
--- /dev/null
+++ b/android/testData/lint/missingPrefix4.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2014 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<LinearLayout xmlns:an="http://schemas.android.com/apk/res/android"
+ an:layout_width="fill_parent"
+ an:layout_height="fill_parent"
+ >
+ <TextView
+ an:layout_width="fill_parent"
+ an:layout_height="wrap_content"
+ id="@+id/id1<caret>23"
+ />
+</LinearLayout>
+