diff --git a/buildSrc/src/main/java/com/uber/okbuck/composer/android/AndroidModuleRuleComposer.java b/buildSrc/src/main/java/com/uber/okbuck/composer/android/AndroidModuleRuleComposer.java index 4fc9a53fc..6e6e10969 100644 --- a/buildSrc/src/main/java/com/uber/okbuck/composer/android/AndroidModuleRuleComposer.java +++ b/buildSrc/src/main/java/com/uber/okbuck/composer/android/AndroidModuleRuleComposer.java @@ -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 {