diff options
author | Tor Norbye <tnorbye@google.com> | 2013-01-17 20:45:56 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2013-02-20 18:50:22 -0800 |
commit | fbd8d739df20e820a8fa5134b6df2b60ca7854f8 (patch) | |
tree | 247aedf3e55d63a6aa3a519220342825ad851e00 /android/testData/lint | |
parent | 68209823966d11fac08ebe125f49489e225e93ed (diff) | |
download | idea-fbd8d739df20e820a8fa5134b6df2b60ca7854f8.tar.gz |
Add PSI bridge for XML documents
This avoids using the slower lint command line XML parser
(which is there because lint needs character offsets for
elements and attributes, which normal XML parsers don't provide).
Also some other cleanup; hook up the lint log messages to
the IntelliJ log, remove some API workarounds, etc.
Change-Id: I906b81d21fbf880eccb4d5fee9ebeb6a6bf90a15
Diffstat (limited to 'android/testData/lint')
-rw-r--r-- | android/testData/lint/adapterViewChildren.xml | 4 | ||||
-rw-r--r-- | android/testData/lint/baselineWeights.xml | 4 | ||||
-rw-r--r-- | android/testData/lint/contentDescription.xml | 4 | ||||
-rw-r--r-- | android/testData/lint/editText.xml | 2 | ||||
-rw-r--r-- | android/testData/lint/exportedService.xml | 2 | ||||
-rw-r--r-- | android/testData/lint/scrollViewChildren.xml | 4 | ||||
-rw-r--r-- | android/testData/lint/uselessLeaf.xml | 2 | ||||
-rw-r--r-- | android/testData/lint/uselessParent.xml | 4 |
8 files changed, 13 insertions, 13 deletions
diff --git a/android/testData/lint/adapterViewChildren.xml b/android/testData/lint/adapterViewChildren.xml index 9f92c86e6ec..7a1a5dbcd8a 100644 --- a/android/testData/lint/adapterViewChildren.xml +++ b/android/testData/lint/adapterViewChildren.xml @@ -3,7 +3,7 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" > - <warning><ListView android:layout_width="wrap_content" android:layout_height="wrap_content"> + <<warning>List<caret>View</warning> android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"/> - </ListView></warning> + </ListView> </LinearLayout>
\ No newline at end of file diff --git a/android/testData/lint/baselineWeights.xml b/android/testData/lint/baselineWeights.xml index a9bb155680e..b95a454bd69 100644 --- a/android/testData/lint/baselineWeights.xml +++ b/android/testData/lint/baselineWeights.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<warning><LinearLayout<caret> xmlns:android="http://schemas.android.com/apk/res/android" +<<warning>Linear<caret>Layout</warning> xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <AbsoluteLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="10"/> -</LinearLayout></warning> +</LinearLayout> diff --git a/android/testData/lint/contentDescription.xml b/android/testData/lint/contentDescription.xml index f99ee50e626..278b28bedc6 100644 --- a/android/testData/lint/contentDescription.xml +++ b/android/testData/lint/contentDescription.xml @@ -3,9 +3,9 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" > -<warning><Ima<caret>geView +<<warning>Image<caret>View</warning> android:layout_width="fill_parent" android:layout_height="wrap_content" - /></warning> +/> </LinearLayout> diff --git a/android/testData/lint/editText.xml b/android/testData/lint/editText.xml index afd1ab54fc0..b582dd72b6d 100644 --- a/android/testData/lint/editText.xml +++ b/android/testData/lint/editText.xml @@ -2,5 +2,5 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> - <warning><EditText android:layout_width="wrap_content" android:l<caret>ayout_height="wrap_content"/></warning> + <<warning>Edit<caret>Text</warning> android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout>
\ No newline at end of file diff --git a/android/testData/lint/exportedService.xml b/android/testData/lint/exportedService.xml index b62fd1fc5b0..b983860ef9f 100644 --- a/android/testData/lint/exportedService.xml +++ b/android/testData/lint/exportedService.xml @@ -4,6 +4,6 @@ android:versionCode="1" android:versionName="1.0"> <application android:label="Hello, world!" > - <warning><service android:name=".MyExportedService" <caret>android:exported="true"/></warning> + <<warning>serv<caret>ice</warning> android:name=".MyExportedService" android:exported="true"/> </application> </manifest> diff --git a/android/testData/lint/scrollViewChildren.xml b/android/testData/lint/scrollViewChildren.xml index 55660b7e40b..12ae38c3075 100644 --- a/android/testData/lint/scrollViewChildren.xml +++ b/android/testData/lint/scrollViewChildren.xml @@ -3,8 +3,8 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" > - <warning><ScrollView android:layout_height="wrap_content" android:layout_width="fill_parent"> + <<warning>Scroll<caret>View</warning> android:layout_height="wrap_content" android:layout_width="fill_parent"> <TextView android:layout_height="fill_parent" android:layout_width="wrap_content"/> <TextView android:layout_height="fill_parent" android:layout_width="wrap_content"/> - </ScrollView></warning> + </ScrollView> </LinearLayout>
\ No newline at end of file diff --git a/android/testData/lint/uselessLeaf.xml b/android/testData/lint/uselessLeaf.xml index ae483929b35..95a3996e7b7 100644 --- a/android/testData/lint/uselessLeaf.xml +++ b/android/testData/lint/uselessLeaf.xml @@ -2,5 +2,5 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> - <warning><ImageSwitcher android:layout_widt<caret>h="wrap_content" android:layout_height="wrap_content"/></warning> + <<warning descr="This ImageSwitcher view is useless (no children, no background, no id, no style)">Image<caret>Switcher</warning> android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout>
\ No newline at end of file diff --git a/android/testData/lint/uselessParent.xml b/android/testData/lint/uselessParent.xml index 54a49cc510f..705fff5807f 100644 --- a/android/testData/lint/uselessParent.xml +++ b/android/testData/lint/uselessParent.xml @@ -2,7 +2,7 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> - <warning><ImageSwitche<caret>r android:layout_width="wrap_content" android:layout_height="wrap_content"> + <<warning>Image<caret>Switcher</warning> android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content"/> - </ImageSwitcher></warning> + </ImageSwitcher> </LinearLayout>
\ No newline at end of file |