MCPcopy
hub / github.com/microsoft/vscode-js-debug / runFormatting

Function runFormatting

gulpfile.js:450–456  ·  view source on GitHub ↗
(onlyStaged, fix, callback)

Source from the content-addressed store, hash-verified

448);
449
450const runFormatting = (onlyStaged, fix, callback) => {
451 const child = cp.fork('./node_modules/dprint/bin.js', [fix ? 'fmt' : 'check'], {
452 stdio: 'inherit',
453 });
454
455 child.on('exit', code => (code ? callback(`Formatter exited with code ${code}`) : callback()));
456};
457
458const runEslint = (fix, callback) => {
459 const child = cp.fork(

Callers 1

gulpfile.jsFile · 0.85

Calls 1

onMethod · 0.65

Tested by

no test coverage detected