Skip to content

move expect message to a separate section with more explanation - #13071

Closed
ShahakShama wants to merge 1 commit into
shahak/style-guide-directory-layoutfrom
shahak/style-guide-expect-message
Closed

ShahakShama wants to merge 1 commit into
shahak/style-guide-directory-layoutfrom
shahak/style-guide-expect-message

Conversation

@ShahakShama

@ShahakShama ShahakShama commented Mar 8, 2026 •

Copy link
Copy Markdown
Contributor

Note

Low Risk
Low risk documentation-only change; no code behavior or APIs are modified.

Overview
Updates style.md to add a dedicated expect message section explaining how to write invariant-focused expect(...) strings, with revised BAD/GOOD examples.

Removes the older, more boilerplate expect guidance from the Assertions section so the rule is centralized and more detailed.

Written by Cursor Bugbot for commit ddb96e3. This will update automatically on new commits. Configure here.

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

ShahakShama commented Mar 8, 2026 •

Copy link
Copy Markdown
Contributor Author

@ShahakShama ShahakShama left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+r:@Stavbe

@ShahakShama made 1 comment.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on Stavbe).

@Stavbe Stavbe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Stavbe made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on ShahakShama).


style.md line 120 at r1 (raw file):

// GOOD
// This message is written for the code reader, and explains why the error should never happen.
std::env::var("IMPORTANT_PATH").expect("set by wrapper_script.sh at startup");

IMPORTANT_PATH should have been set by .....

Code quote:

"set by wrapper_script.sh at startup"

@ShahakShama ShahakShama left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShahakShama made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on Stavbe).


style.md line 120 at r1 (raw file):

Previously, Stavbe wrote…

IMPORTANT_PATH should have been set by .....

This is intended. Explained above

@Stavbe Stavbe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Stavbe reviewed 1 file and all commit messages, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on ShahakShama).

@ShahakShama
ShahakShama force-pushed the shahak/style-guide-expect-message branch from 110cd94 to 2744957 Compare April 28, 2026 13:43
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale.
This PR will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions Bot added the stale label May 29, 2026
@github-actions github-actions Bot closed this Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants