Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Analyzer]: Regex analyzers #68962

Open
stephentoub opened this issue May 6, 2022 · 1 comment
Open

[Analyzer]: Regex analyzers #68962

stephentoub opened this issue May 6, 2022 · 1 comment
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-System.Text.RegularExpressions code-analyzer Marks an issue that suggests a Roslyn analyzer
Milestone

Comments

@stephentoub
Copy link
Member

There are some common misuses of Regex we could have analyzers for:

We can also flag cases where new Regex APIs would be useful:

And potentially cases where we can easily detect the possibility of catastrophic backtracking and recommend RegexOptions.NonBacktracking.

@stephentoub stephentoub added area-System.Text.RegularExpressions code-analyzer Marks an issue that suggests a Roslyn analyzer labels May 6, 2022
@stephentoub stephentoub added this to the Future milestone May 6, 2022
@ghost
Copy link

ghost commented May 6, 2022

Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions
See info in area-owners.md if you want to be subscribed.

Issue Details

There are some common misuses of Regex we could have analyzers for:

We can also flag cases where new Regex APIs would be useful:

And potentially cases where we can easily detect the possibility of catastrophic backtracking and recommend RegexOptions.NonBacktracking.

Author: stephentoub
Assignees: -
Labels:

area-System.Text.RegularExpressions, code-analyzer

Milestone: Future

@buyaa-n buyaa-n modified the milestones: Future, 8.0.0 Nov 11, 2022
@buyaa-n buyaa-n added the api-suggestion Early API idea and discussion, it is NOT ready for implementation label Nov 16, 2022
@steveharter steveharter modified the milestones: 8.0.0, 9.0.0 Aug 2, 2023
@stephentoub stephentoub self-assigned this Dec 26, 2023
@stephentoub stephentoub removed their assignment Feb 27, 2024
@stephentoub stephentoub modified the milestones: 9.0.0, Future Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-System.Text.RegularExpressions code-analyzer Marks an issue that suggests a Roslyn analyzer
Projects
None yet
Development

No branches or pull requests

3 participants