Skip to content

Commit

Permalink
Handle empty lint xml config properly for unified rule (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentruongtho authored Jun 6, 2019
1 parent b69b2df commit f71d19d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,13 @@ public static Rule compose(
.filter(t -> (t instanceof JvmTarget))
.map(BuckRuleComposer::binTargets)
.collect(Collectors.toSet());

if (lintConfigPath != null) {
unifiedAndroid
.lintConfigXml(fileRule(lintConfigPath));
}

unifiedAndroid
.lintConfigXml(fileRule(lintConfigPath))
.customLints(customLintTargets)
.lintOptions(target.getLintOptions());
} else {
Expand Down

0 comments on commit f71d19d

Please sign in to comment.