dart_codemod
dart_codemod copied to clipboard
A library that makes it easy to write and run automated code modifications on a codebase.
I'm not certain if I should be raising this against your project as it's actually a fork of @greenealexander where he adds a 'non-interactive' mode. This is a rather large...
As a codemod author, I would like to have the ability to apply a Patch (user can see a preview, accept or reject) that changes the name of the file...
See https://github.com/Workiva/dart_codemod/blob/master/lib/src/run_interactive_codemod.dart - there are several parts of those doc comments that are now outdated. https://github.com/Workiva/dart_codemod/blob/master/lib/src/run_interactive_codemod.dart#L93-L94 https://github.com/Workiva/dart_codemod/blob/master/lib/src/run_interactive_codemod.dart#L106 https://github.com/Workiva/dart_codemod/blob/master/lib/src/run_interactive_codemod.dart#L107
At Workiva, we've used this library to build codemods that we run in large batches in order to update our whole package ecosystem at once. When we do this, we...
When developing a new codemod, it would be helpful to be able to allow continuing regardless of exceptions with some sort of debug flag or parameter passed to runInteractiveCodemodSequence. Something...
I'm just poking around with `dart_codemod` and I was wondering if someone would be willing to suggest/discuss a strategy for finding unused classes. My idea was to visit every class...
The `AstVisitingSuggestorMixin` leverages the `AstVisitor` interface to help create suggestors, but it only makes the parsed AST available. Some more advanced or complex codemods may require additional information that is...
When a patch is suggested to the user, currently they have 4 options: 1. Yes 2. No 3. Yes to all 4. Quit Another useful option would be to allow...