android – lintOptions的默认值是什么?
作者:互联网
可以在哪里找到lintOptions的默认值?
我找到了文档here,但默认情况下我找不到这些值
解决方法:
我不知道所有默认值的文档.
但是,您可以查看1.5 here中使用的源代码:
/**
* DSL object for configuring lint options.
*/
public class LintOptions implements com.android.builder.model.LintOptions, Serializable {
public static final String STDOUT = "stdout";
public static final String STDERR = "stderr";
private static final long serialVersionUID = 1L;
@NonNull
private Set<String> disable = Sets.newHashSet();
@NonNull
private Set<String> enable = Sets.newHashSet();
@Nullable
private Set<String> check = Sets.newHashSet();
private boolean abortOnError = true;
private boolean absolutePaths = true;
private boolean noLines;
private boolean quiet;
private boolean checkAllWarnings;
private boolean ignoreWarnings;
private boolean warningsAsErrors;
private boolean showAll;
private boolean checkReleaseBuilds = true;
private boolean explainIssues = true;
@Nullable
private File lintConfig;
private boolean textReport;
@Nullable
private File textOutput;
private boolean htmlReport = true;
@Nullable
private File htmlOutput;
private boolean xmlReport = true;
@Nullable
private File xmlOutput;
//..
}
标签:android,build-gradle,android-lint 来源: https://codeday.me/bug/20190706/1396624.html