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

Implement AV1532: Avoid nested loops #16

Closed
bkoelman opened this issue Oct 7, 2016 · 3 comments
Closed

Implement AV1532: Avoid nested loops #16

bkoelman opened this issue Oct 7, 2016 · 3 comments

Comments

@bkoelman
Copy link
Owner

bkoelman commented Oct 7, 2016

This analyzer should report on for/foreach/while/do loops that are nested within another loop.

@dennisdoomen
Copy link
Contributor

Is there a way to configure the maximum depth?

@bkoelman
Copy link
Owner Author

bkoelman commented Feb 1, 2024

No, there is not. I usually use SelectMany in case the code is simple, so it becomes a one-liner. Otherwise, extract the inner loop into a method or local function.

@dennisdoomen
Copy link
Contributor

Clear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants