MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / format

Function format

hooks/modify-java-files.js:450–457  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

448 });
449
450 async function format(content) {
451 return prettier.format(content, {
452 plugins: ['prettier-plugin-java'],
453 parser: 'java',
454 tabWidth: 2,
455 printWidth: Infinity
456 });
457 }
458
459 function getMethodString(method) {
460 const params = method.params.map(param => {

Callers 1

mainFunction · 0.70

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected