asyncapi / asyncapi/generator

Prefer `String#replaceAll()` over `String#replace()`

Open
#1,914 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.