在 Android 项目的 Eclipse 中,我在 xml 文件中有一些警告,并使用“禁用仅检查此文件”通过快速修复窗口将其中一些添加到 Lint 忽略/排除列表中。
现在我想从列表中删除一个文件以再次检查。
如何在 Eclipse 中管理 Lint 文件检查排除?
我在 stackoverflow 或谷歌搜索中找不到任何解决方案。
最佳答案
即使不是通过 Eclipse IDE,我也找到了解决方案。
我只是手动删除了 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>
例如删除
<ignore path="res\layout\my_activity.xml" />
为了在 my_activity.xml 中重新启用 selectabeText 警告。
我让问题开放,以防有人通过 Eclipse IDE 找到解决方案。
关于android - 如何在 Eclipse 中管理 Lint 忽略/排除列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15806691/