Lint: run inspections only for Kotlin

This commit is contained in:
Yan Zhulanow
2016-04-22 15:45:04 +03:00
parent 04ed20c574
commit 9ea7a4f112
2 changed files with 80 additions and 79 deletions
@@ -1503,7 +1503,8 @@ public class LintDriver {
}
String filename = file.getName();
if (!filename.endsWith(DOT_JAVA) && !UastConverterUtils.isFileSupported(plugins, filename)) {
// Ignore Java files for now (check only Kotlin files)
if (filename.endsWith(DOT_JAVA) || !UastConverterUtils.isFileSupported(plugins, filename)) {
continue;
}