如何配置Lint以忽略Firebase配置文件,特别是拼写检查?google-services.json文件位于“app”模块文件夹中。
build.gradle (app)
lintOptions {
lintConfig file('lint.xml')
}
以下的lint.xml文件已经被Lint正确识别并成功禁用了RtlHardcoded检查,但是Lint仍然对Firebase json文件进行拼写检查,并在Lint报告中的“Typos”标题下列出了几个条目。
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="RtlHardcoded" severity="ignore" />
<issue id="Typos">
<ignore path="/google-services.json" />
<ignore path="/app/google-services.json" />
<ignore path="**/google-services.json" />
</issue>
</lint>
我该如何指定忽略路径,以便 Lint 忽略 Firebase google-services.json 文件?
lint.xml
。 - italankin