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

Add a rule to limit the maximum number of indents #15

Closed
C-Hess opened this issue Nov 21, 2022 · 0 comments · Fixed by #16
Closed

Add a rule to limit the maximum number of indents #15

C-Hess opened this issue Nov 21, 2022 · 0 comments · Fixed by #16
Assignees
Labels
enhancement New feature or request

Comments

@C-Hess
Copy link
Collaborator

C-Hess commented Nov 21, 2022

Create a rule that prevents code blocks from exceeding a specified number of indents. This plugin can be useful in conjunction with plugins like Prettier, where once a certain number of indents are reached, code becomes nearly unreadable. Code blocks with multiple layers of indentation can be a code smell of large functions and cyclomatic complexity that could be broken into smaller functions.

@C-Hess C-Hess self-assigned this Nov 21, 2022
@C-Hess C-Hess added the enhancement New feature or request label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant