codemod 1.0.0 copy "codemod: ^1.0.0" to clipboard
codemod: ^1.0.0 copied to clipboard

outdated

Write and run automated code modifications on a codebase. Primarily geared towards updating and refactoring Dart code, but can modify any files.

example/readme.md

This directory contains several example codemods:

  • License header inserter

    A simple example that inserts license text at the top of a file.

  • Regex substituter

    A simple example that uses a RegExp to make replacements over all matches.

  • Remove deprecated elements

    Uses an AstVisitor from package:analyzer to remove all elements annotated with @deprecated.

  • Suggest isEven or isOdd

    Uses an AstVisitor and fully resolves all source code information and types for a more advanced modification.

35
likes
0
points
9.98k
downloads

Publisher

verified publisherworkiva.com

Weekly Downloads

Write and run automated code modifications on a codebase. Primarily geared towards updating and refactoring Dart code, but can modify any files.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, args, glob, io, logging, path, quiver, source_span, stack_trace, test, test_descriptor

More

Packages that depend on codemod