We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a859eb commit dddfbaaCopy full SHA for dddfbaa
utils/doclint/generateDotnetApi.js
@@ -24,6 +24,7 @@ const fs = require('fs');
24
const { parseApi } = require('./api_parser');
25
const { Type } = require('./documentation');
26
const { EOL } = require('os');
27
+const { execSync } = require('child_process');
28
29
const maxDocumentationColumnWidth = 80;
30
@@ -199,6 +200,11 @@ const customTypeNames = new Map([
199
200
out.push(`\t${escapedName},`);
201
});
202
}, enumsDir));
203
+
204
+ if (process.argv[3] !== "--skip-format") {
205
+ // run the formatting tool for .net, to ensure the files are prepped
206
+ execSync(`dotnet format -f "${typesDir}" --include-generated --fix-whitespace`);
207
+ }
208
}
209
210
/**
0 commit comments