Skip to content

Conversation

@samueltardieu
Copy link
Member

This also deprecates the cyclomatic_complexity lint which had been renamed into cognitive_complexity back in 2019.

See discussion on Zulip.

changelog: [cognitive_complexity]: deprecated lint

@rustbot
Copy link
Collaborator

rustbot commented Jun 21, 2025

r? @dswij

rustbot has assigned @dswij.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 21, 2025
@samueltardieu samueltardieu force-pushed the deprecate-cognitive-complexity-lint branch 3 times, most recently from b401223 to d5b60a4 Compare June 21, 2025 08:11
@dswij
Copy link
Member

dswij commented Jun 21, 2025

Are we deprecating it in this release?

@samueltardieu
Copy link
Member Author

It would be for 1.90, so in about 13 weeks.

This also deprecates the `cyclomatic_complexity` lint which had been
renamed into `cognitive_complexity` back in 2019.
@samueltardieu samueltardieu force-pushed the deprecate-cognitive-complexity-lint branch from d5b60a4 to 5a498e0 Compare July 3, 2025 15:36
@samueltardieu
Copy link
Member Author

Rebased

@LebedevRI
Copy link

LebedevRI commented Jul 11, 2025

Question: would there be any interest to actually have a lint that works as specified in the Cognitive Complexity spec?
I thought that this lint wasn't working as it should seeing that it did not trigger on my code where i expected it would,
and looking at it's source, yep, it's a "name squatter".

@samueltardieu
Copy link
Member Author

Superseded by #15415.

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 5, 2025
@samueltardieu samueltardieu deleted the deprecate-cognitive-complexity-lint branch August 5, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants