Skip to content

PLW0717: Visually noisy diagnostic ranges #25438

@beauxq

Description

@beauxq

PLW0717
https://docs.astral.sh/ruff/rules/too-many-statements-in-try-clause/

Don't highlight large blocks of code.

This rule has the same issue as this other rule: #15570

Highlighting 300 lines of code in my editor is not helpful. It makes it difficult to see other diagnostics. It's enough to just highlight the keyword try

This should be a general rule for ALL of ruff behavior. Don't highlight blocks of code. Pick specific statements or expressions or symbols.

Metadata

Metadata

Assignees

Labels

diagnosticsRelated to reporting of diagnostics.help wantedContributions especially welcome

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions