-
-
Notifications
You must be signed in to change notification settings - Fork 243
Can we show auto-fix results in the demo? #322
Comments
I looked into it while rewriting the demo. As you mentioned, it's not something we can do without changes to the core, since |
Only writing to a file is in CLIEngine. The main functionality is in SourceCodeFixer. |
Ah, you are correct. In that case, we should expose |
The functionality for applying a single round of fixes is in SourceCodeFixer, but the multipass logic is in CLIEngine (here). As far as the demo is concerned, it would be nice to be able to look at multipass autofix results, since the intermediate autofix results aren't really relevant to the user most of the time. |
I don't think we should be tacking things onto linter just to expose them to the demo. Id much rather go the WebEngine route and do this is an organized way. |
I will work on this once eslint/eslint#8631 is merged. |
@eslint/eslint-team any thoughts on the design ☝️ ? |
Why do we need to show fixed code in separate window? Let's just replace original code with fixed (need to add some sort of button to activate fix mode). |
I like the idea of seeing good and bad code side by side, personally.
…On Jun 22, 2017 4:55 PM, "Ilya Volodin" ***@***.***> wrote:
Why do we need to show fixed code in separate window? Let's just replace
original code with fixed (need to add some sort of button to activate fix
mode).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#322 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARWesihV9dDE8sQ1iLlcghbKZUFhOFtks5sGuLggaJpZM4La0w8>
.
|
I like side by side also as I maybe testing some rule and interactively trying things. Otherwise it will be so annoying to see my code vanish as soon as i stop typing. Its easy to see the changes applied (for context sake). |
In that case, current design looks good to me. |
Now that the demo has been rewritten, it would be awesome if we could show auto-fix results! (The motivation for this is to provide a quick way to verify incoming bugs that focus on auto-fix issues.)
It would be awesome if we could show auto-fix results without clobbering the original code, too (or at least allow the user to show fixed/broken code via a toggle maybe?).
Possible tasks (may be inaccurate):
The text was updated successfully, but these errors were encountered: