Workiva / Workiva/over_react_codemod

intl_migration: codemod errors if lib directory doesn't exist

Open
#154 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
3
Forks
7
PR merge metrics
No merged PRs in 30d

Description

If the /lib directory doesn't exist, it errors out trying to put the intl class there. This can easily happen in e.g. app directories that have only /web

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the intl_migration codemod in an app directory containing /web but no /lib, and inspect where it writes the intl class. Confirm the failure and make the codemod handle the missing /lib directory; done means the migration completes successfully in that layout without breaking the usual case.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.