Workiva / Workiva/over_react_codemod

intl_migration: codemod can produce duplicate message names for similar strings

Open
#155 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

e.g.

static String get remove => Intl.message(
        'Remove',
        name: 'FooAppIntl_remove',
      );
  static String get remove => Intl.message(
        'remove',
        name: 'FooAppIntl_remove',
      );

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 locating the intl_migration codemod and its tests, then reproduce the case with message strings that differ only by capitalization, as shown in the issue. Done means the generated message names are unique and a regression test covers the duplicate-name example.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
internationalization, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.