@Override
public Problem validateInput(String inputType) {
File rootProject = new File(inputType);
Problem problemRootBuild = checkFile(rootProject, GradleProjectConstants.BUILD_FILE_NAME);
if (problemRootBuild != null) {
return problemRootBuild;
}
Problem problemRootSettings = checkFile(rootProject, GradleProjectConstants.SETTINGS_FILE_NAME);
if (problemRootSettings != null) {
return problemRootSettings;
}
Problem problemOldFormat = checkFile(rootProject, "parent.gradle");
Problem problemNewFromat = checkFile(rootProject, "common.gradle");
if (problemNewFromat != null && problemOldFormat != null) {
return problemNewFromat;
}