-
Notifications
You must be signed in to change notification settings - Fork 75
Limiting max levels to 5 #656
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d14ba27
Limiting max levels to 5
stevespringett f9e3a62
add --max-clause-depth
bakkot ee2ef86
simplify logic and add baseline
bakkot dfee676
update spec to match behavior
bakkot 7b8800f
Merge branch 'main' into main
bakkot 955e739
expect warning in baseline
bakkot e0a243c
even more nesting in baseline
bakkot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!doctype html> | ||
<head><meta name="viewport" content="width=device-width, initial-scale=1"><meta charset="utf-8"> | ||
<link rel="icon" href="img/favicon.ico"> | ||
</head> | ||
|
||
<body><div id="shortcuts-help"> | ||
<ul> | ||
<li><span>Toggle shortcuts help</span><code>?</code></li> | ||
<li><span>Toggle "can call user code" annotations</span><code>u</code></li> | ||
|
||
<li><span>Jump to search box</span><code>/</code></li> | ||
<li><span>Toggle pinning of the current clause</span><code>p</code></li> | ||
<li><span>Jump to the <i>n</i><sup>th</sup> pin</span><code>1-9</code></li> | ||
<li><span>Jump to the 10<sup>th</sup> pin</span><code>0</code></li> | ||
<li><span>Jump to the most recent link target</span><code>`</code></li> | ||
</ul></div><div id="menu-toggle"><svg xmlns="http://www.w3.org/2000/svg" style="width:100%; height:100%; stroke:currentColor" viewBox="0 0 120 120" width="54" height="54"> | ||
<title>Menu</title> | ||
<path stroke-width="10" stroke-linecap="round" d="M30,60 h60 M30,30 m0,5 h60 M30,90 m0,-5 h60"></path> | ||
</svg></div><div id="menu-spacer" class="menu-spacer"></div><div id="menu"><div id="menu-search"><input type="text" id="menu-search-box" placeholder="Search..."><div id="menu-search-results" class="inactive"></div></div><div id="menu-pins"><div class="menu-pane-header">Pins<button class="unpin-all">clear</button></div><ul id="menu-pins-list"></ul></div><div class="menu-pane-header">Table of Contents</div><div id="menu-toc"><ol class="toc"><li><span class="item-toggle">+</span><a href="#one" title="One"><span class="secnum">1</span> One</a><ol class="toc"><li><span class="item-toggle">+</span><a href="#two" title="Two"><span class="secnum">1.1</span> Two</a><ol class="toc"><li><span class="item-toggle">+</span><a href="#three" title="Three"><span class="secnum">1.2</span> Three</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#four" title="four"><span class="secnum">1.3</span> four</a></li></ol></li><li><span class="item-toggle">+</span><a href="#three-again" title="Three Again"><span class="secnum">1.4</span> Three Again</a><ol class="toc"><li><span class="item-toggle-none"></span><a href="#four-again" title="Four Again"><span class="secnum">1.5</span> Four Again</a></li></ol></li></ol></li><li><span class="item-toggle-none"></span><a href="#two-again" title="Two Again"><span class="secnum">1.6</span> Two Again</a></li></ol></li><li><span class="item-toggle-none"></span><a href="#one-again" title="One Again"><span class="secnum">2</span> One Again</a></li></ol></div></div><div id="spec-container"> | ||
|
||
<emu-clause id="one"> | ||
<h1><span class="secnum">1</span> One</h1> | ||
<emu-clause id="two"> | ||
<h1><span class="secnum">1.1</span> Two</h1> | ||
<!-- EXPECT_WARNING { "ruleId": "max-clause-depth", "message": "clause exceeds maximum nesting depth of 2" } --> | ||
<emu-clause id="three"> | ||
<h1><span class="secnum">1.2</span> Three</h1> | ||
<emu-clause id="four"> | ||
<h1><span class="secnum">1.3</span> four</h1> | ||
</emu-clause> | ||
</emu-clause> | ||
<emu-clause id="three-again"> | ||
<h1><span class="secnum">1.4</span> Three Again</h1> | ||
<emu-clause id="four-again"> | ||
<h1><span class="secnum">1.5</span> Four Again</h1> | ||
</emu-clause> | ||
</emu-clause> | ||
</emu-clause> | ||
<emu-clause id="two-again"> | ||
<h1><span class="secnum">1.6</span> Two Again</h1> | ||
</emu-clause> | ||
</emu-clause> | ||
<emu-clause id="one-again"> | ||
<h1><span class="secnum">2</span> One Again</h1> | ||
</emu-clause> | ||
</div></body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<head> | ||
<link rel="icon" href="img/favicon.ico"> | ||
</head> | ||
|
||
<pre class=metadata> | ||
copyright: false | ||
assets: none | ||
maxClauseDepth: 2 | ||
</pre> | ||
|
||
<emu-clause id="one"> | ||
<h1>One</h1> | ||
<emu-clause id="two"> | ||
<h1>Two</h1> | ||
<!-- EXPECT_WARNING { "ruleId": "max-clause-depth", "message": "clause exceeds maximum nesting depth of 2" } --> | ||
<emu-clause id="three"> | ||
<h1>Three</h1> | ||
<emu-clause id="four"> | ||
<h1>four</h1> | ||
</emu-clause> | ||
</emu-clause> | ||
<emu-clause id="three-again"> | ||
<h1>Three Again</h1> | ||
<emu-clause id="four-again"> | ||
<h1>Four Again</h1> | ||
</emu-clause> | ||
</emu-clause> | ||
</emu-clause> | ||
<emu-clause id="two-again"> | ||
<h1>Two Again</h1> | ||
</emu-clause> | ||
</emu-clause> | ||
<emu-clause id="one-again"> | ||
<h1>One Again</h1> | ||
</emu-clause> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.