}
return descend;
}
private JSHint createJSHint( IProject project ) throws CoreException {
JSHint jshint = new JSHint();
try {
InputStream inputStream = getCustomLib();
if( inputStream != null ) {
try {
jshint.load( inputStream );
} finally {
inputStream.close();
}
} else {
jshint.load();
}
jshint.configure( new ConfigLoader( project ).getConfiguration() );
} catch( IOException exception ) {
String message = "Failed to intialize JSHint";
throw new CoreException( new Status( IStatus.ERROR, Activator.PLUGIN_ID, message, exception ) );
}
return jshint;