Fail to fix some bad completions #130
Annotations
10 errors and 1 warning
npm test:
src/renderer/Editor.tsx#L140
Use object destructuring
|
npm test:
src/renderer/addEditorAutocomplete.ts#L45
Replace `⏎····ctx:·string,⏎····completions:·string[],⏎··` with `ctx:·string,·completions:·string[]`
|
npm test:
src/renderer/addEditorAutocomplete.ts#L59
Insert `⏎·········`
|
npm test:
src/renderer/addEditorAutocomplete.ts#L83
Replace `·ctx.length·+·Math.max(` with `⏎··········ctx.length·+`
|
npm test:
src/renderer/addEditorAutocomplete.ts#L84
Replace `...completions.map(completion·=>·completion.length)⏎········` with `Math.max(...completions.map((completion)·=>·completion.length)`
|
npm test:
src/renderer/addEditorAutocomplete.ts#L91
Replace `lastWasIdentifier·&&·(tokenIsIdent()·||·token.value.trim()·!==·token.value)` with `⏎············lastWasIdentifier·&&⏎············(tokenIsIdent()·||·token.value.trim()·!==·token.value)⏎··········`
|
npm test:
src/renderer/addEditorAutocomplete.ts#L98
Unexpected use of continue statement
|
npm test:
src/renderer/addEditorAutocomplete.ts#L106
Replace `null,·isContext` with `⏎··········null,⏎··········isContext⏎···········`
|
npm test:
src/renderer/addEditorAutocomplete.ts#L107
Replace `··········.filter(completion·=>` with `················.filter((completion)·=>⏎·················`
|
npm test:
src/renderer/addEditorAutocomplete.ts#L108
Replace `············?·((ctx·+·completion).startsWith(beforeCaret))` with `····················?·(ctx·+·completion).startsWith(beforeCaret)`
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading