Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default async (actions: CLIOptions): Promise => {
const targets = getAsUris(actions._);
if (targets.length === 0) {
return false;
}
const userConfig = await loadUserConfig(actions, targets);
const createAnalyzerOptions = actionsToOptions(actions);
let webhint: Analyzer;
try {
webhint = await getAnalyzer(userConfig, createAnalyzerOptions, targets);
} catch (e) {
return false;
}