if(enablePuppetLintValidation)
lintValidation(moduleRoots, result);
}
private void lintValidation(Collection<File> moduleLocations, Diagnostic result) throws IOException {
PuppetLintRunner runner = PuppetLintService.getInstance().getPuppetLintRunner();
getLog().debug("Performing puppet lint validation on all modules");
if(puppetLintOptions == null)
puppetLintOptions = new PuppetLintRunner.Option[0];
for(File moduleRoot : moduleLocations) {
for(PuppetLintRunner.Issue issue : runner.run(moduleRoot, puppetLintOptions)) {
Diagnostic diag = convertPuppetLintDiagnostic(moduleRoot, issue);
if(diag != null)
result.addChild(diag);
}
}