Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo and relative links #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ All you need to run a codemod is:

3. A `.dart` file with a `main()` block that calls `runInteractiveCodemod()`.

If we were to run the 3 suggestor examples from above, it would like like so:
If we were to run the 3 suggestor examples from above, it would look like so:

**Regex Substituter:**

Expand Down
8 changes: 4 additions & 4 deletions example/readme.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
This directory contains several example codemods:

- [License header inserter](/example/license_header_inserter.dart)
- [License header inserter](license_header_inserter.dart)

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

- [Regex substituter](/example/regex_substituter.dart)
- [Regex substituter](regex_substituter.dart)

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

- [Remove deprecated elements](/example/deprecated_remover.dart)
- [Remove deprecated elements](deprecated_remover.dart)

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

- [Suggest `isEven` or `isOdd`](/example/is_even_or_odd_suggestor.dart)
- [Suggest `isEven` or `isOdd`](is_even_or_odd_suggestor.dart)

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