brace-style
This commit is contained in:
parent
550a99e839
commit
bea1bcb466
|
@ -62,7 +62,7 @@
|
|||
|
||||
"arrow-body-style": "off",
|
||||
"arrow-parens": "off",
|
||||
"brace-style": "off",
|
||||
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
|
||||
"comma-dangle": "off",
|
||||
"complexity": "off",
|
||||
"constructor-super": "error",
|
||||
|
|
|
@ -170,11 +170,13 @@ if (args.length < 1) {
|
|||
console.log('Usage: node authors.js [command]');
|
||||
console.log('List of commands: ');
|
||||
Object.keys(Commands).forEach(k => console.log(` ${k}: ${(Commands as any)[k].description}`));
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
var cmd: Function = (Commands as any)[args[0]];
|
||||
if (cmd === undefined) {
|
||||
console.log('Unknown command ' + args[1]);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
cmd.apply(undefined, args.slice(1));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,35 +25,39 @@ jake.on('close', jakeExitCode => {
|
|||
if ((tscExitCode === 0) === (args[1] === 'compiles')) {
|
||||
console.log('Good');
|
||||
process.exit(0); // Good
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
console.log('Bad');
|
||||
process.exit(1); // Bad
|
||||
}
|
||||
});
|
||||
} else if (args[1] === 'emits' || args[1] === '!emits') {
|
||||
}
|
||||
else if (args[1] === 'emits' || args[1] === '!emits') {
|
||||
tsc(args[0], tscExitCode => {
|
||||
fs.readFile(args[2], 'utf-8', (err, data) => {
|
||||
var doesContains = data.indexOf(args[3]) >= 0;
|
||||
if (doesContains === (args[1] === 'emits')) {
|
||||
console.log('Good');
|
||||
process.exit(0); // Good
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
console.log('Bad');
|
||||
process.exit(1); // Bad
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
console.log('Unknown command line arguments.');
|
||||
console.log('Usage (compile errors): git bisect run ts-node scripts\bisect-test.ts "../failure.ts --module amd" !compiles');
|
||||
console.log('Usage (emit check): git bisect run ts-node scripts\bisect-test.ts bar.ts emits bar.js "_this = this"');
|
||||
// Aborts the 'git bisect run' process
|
||||
process.exit(-1);
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// Compiler build failed; skip this commit
|
||||
console.log('Skip');
|
||||
process.exit(125); // bisect skip
|
||||
}
|
||||
});
|
||||
|
|
@ -11,7 +11,8 @@ namespace RWC {
|
|||
|
||||
try {
|
||||
fn(oldIO);
|
||||
} finally {
|
||||
}
|
||||
finally {
|
||||
wrappedIO.endReplay();
|
||||
Harness.IO = oldIO;
|
||||
}
|
||||
|
|
|
@ -366,7 +366,8 @@ namespace ts.projectSystem {
|
|||
const proj = projectService.externalProjects[0];
|
||||
assert.deepEqual(proj.getFileNames(/*excludeFilesFromExternalLibraries*/ true), [file1.path]);
|
||||
assert.deepEqual(proj.getTypeAcquisition().include, ["duck-types"]);
|
||||
} finally {
|
||||
}
|
||||
finally {
|
||||
projectService.resetSafeList();
|
||||
}
|
||||
});
|
||||
|
@ -464,7 +465,8 @@ namespace ts.projectSystem {
|
|||
const proj = projectService.externalProjects[0];
|
||||
assert.deepEqual(proj.getFileNames(/*excludeFilesFromExternalLibraries*/ true), [file1.path]);
|
||||
assert.deepEqual(proj.getTypeAcquisition().include, ["kendo-ui", "office"]);
|
||||
} finally {
|
||||
}
|
||||
finally {
|
||||
projectService.resetSafeList();
|
||||
}
|
||||
});
|
||||
|
@ -504,7 +506,8 @@ namespace ts.projectSystem {
|
|||
projectService.openExternalProject({ projectFileName: "project", options: {}, rootFiles: toExternalFiles([file1.path, file2.path]), typeAcquisition: { enable: true } });
|
||||
const proj = projectService.externalProjects[0];
|
||||
assert.deepEqual(proj.getFileNames(), [file2.path]);
|
||||
} finally {
|
||||
}
|
||||
finally {
|
||||
projectService.resetSafeList();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -911,14 +911,11 @@ namespace ts.server {
|
|||
cancellationToken = nullCancellationToken;
|
||||
}
|
||||
|
||||
let eventPort: number | undefined;
|
||||
{
|
||||
const str = findArgument("--eventPort");
|
||||
const v = str === undefined ? undefined : parseInt(str);
|
||||
if (v !== undefined && !isNaN(v)) {
|
||||
eventPort = v;
|
||||
}
|
||||
function parseEventPort(eventPortStr: string | undefined) {
|
||||
const eventPort = eventPortStr === undefined ? undefined : parseInt(eventPortStr);
|
||||
return eventPort !== undefined && !isNaN(eventPort) ? eventPort : undefined;
|
||||
}
|
||||
const eventPort: number | undefined = parseEventPort(findArgument("--eventPort"));
|
||||
|
||||
const localeStr = findArgument("--locale");
|
||||
if (localeStr) {
|
||||
|
|
Loading…
Reference in a new issue