Skip to content

Add expr-cuddle check#252

Open
bombsimon wants to merge 2 commits intomainfrom
expr-cuddle
Open

Add expr-cuddle check#252
bombsimon wants to merge 2 commits intomainfrom
expr-cuddle

Conversation

@bombsimon
Copy link
Copy Markdown
Owner

Add explicit check for cuddling of expressions (with intersecting variables). This check is enabled by default but by switching it off it's allowed to cuddle expr everywhere assign, decl and inc/dec is allowed today.

NOTE ⚠️

This is just a tracking PR for #244 since the change was minimal. This does not mean I plan to merge this any time soon. It can also be used to add some more examples on expected and unexpected results by having this check.

The test file now contains a few different variants that uses this checks but most other checks are turned off. E.g. the last test mixingExpr would not pass with the default setup since other checks would require splitting the expressions and assignments.

Add explicit check for cuddling of expressions (with intersecting
variables). This check is enabled by default but by switching it off
it's allowed to cuddle expr everywhere assign, decl and inc/dec is
allowed today.
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 12, 2026

Coverage Status

coverage: 94.381% (+0.2%) from 94.206% — expr-cuddle into main

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.

2 participants