[英]How can I manage Lint ignore/exclusion list in Eclipse?
In Eclipse for an Android project I had some warnings in xml files and added some of them in Lint ignore/exclusion list via the quick fix window using "Disable Check In This File Only". 在一个Android项目的Eclipse中,我在xml文件中有一些警告,并使用“禁用仅签入此文件”通过快速修复窗口在Lint忽略/排除列表中添加了一些警告。
Now I would like to remove a file from the list to be checked again. 现在,我想从列表中删除文件以再次检查。
How it is possible to manage Lint file check exclusion in Eclipse? 如何在Eclipse中管理Lint文件检查排除?
I couldn't find any solution anywhere in stackoverflow or googling. 我在stackoverflow或谷歌搜索的任何地方都找不到任何解决方案。
I found a solution even if it's not trough Eclipse IDE. 即使不是通过Eclipse IDE,我也找到了解决方案。
I just remove manually the line in lint.xml. 我只是手动删除lint.xml中的行。
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="SelectableText">
<ignore path="res\layout\my_activity.xml" />
</issue>
<issue id="TooManyViews">
<ignore path="res\layout\my_other_activity.xml" />
</issue>
</lint>
For example remove 例如删除
<ignore path="res\layout\my_activity.xml" />
in order to re enable selectabeText warning in my_activity.xml. 为了在my_activity.xml中重新启用selectabeText警告。
I let the question open in case someone finds a solution trough the Eclipse IDE. 如果有人通过Eclipse IDE找到解决方案,我就开一个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.