android - 如何在 Eclipse 中管理 Lint 忽略/排除列表?

标签 android xml eclipse android-lint

在 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/

相关文章:

java - 在添加之前检查 Firebase 数据库中是否存在 URL

android - Aquery vs ButterKnife 和 picasso

java - android.view.InflateException : Binary XML file line #9: Error inflating class com. jjoe64.graphview.helper.GraphViewXML

xml - 如何比较 XML 文件

java - Eclipse Java 语法着色并不完全适用于 SVN 的 check out 代码

java - 使 Android 应用程序在一个 session 中连接

javascript - 使用 Javascript 检测 websocket 支持的最佳方法是什么?

android - 检索使用push()保存的Firebase数据

c++ - 配置应用程序架构

java - 无法访问 R 类元素