Prefer `String#replaceAll()` over `String#replace()`
Open
stale
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 397
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 25
Description
Sonar Cloud issues
- https://sonarcloud.io/project/issues?open=AZly1qR_n9FuR2p_nTNr&id=asyncapi_generator
- https://sonarcloud.io/project/issues?open=AZly1qp7n9FuR2p_nTOq&id=asyncapi_generator
- https://sonarcloud.io/project/issues?open=AZly1qp7n9FuR2p_nTOr&id=asyncapi_generator
- https://sonarcloud.io/project/issues?open=AZly1qp7n9FuR2p_nTOs&id=asyncapi_generator
Contributor guide
Research direction
Start with the four SonarCloud issue links in the report and locate the flagged String#replace() calls in the generator. Update the reported usages to prefer String#replaceAll(), then rerun or review SonarCloud to confirm the listed findings are resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100