fsprojects / fsprojects/FSharpLint
feat: Don't do new Regex.Match in a loop: rather create a Regex and then match that in your loop
Open
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 327
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
Another idea for new rule:
Don't do new Regex.Match in a loop: rather capture let myRegex = Regex("...") and then loop your myRegex.Match
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating how FSharpLint defines new rules and where rule tests are kept. Confirm the expected pattern for avoiding a new Regex.Match inside a loop, then add coverage showing that the proposed pattern is detected and the rule behaves correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100