Skip to content

docs: add escapes#40

Merged
WipeAir merged 1 commit intomainfrom
docs/align-table
Mar 21, 2026
Merged

docs: add escapes#40
WipeAir merged 1 commit intomainfrom
docs/align-table

Conversation

@WipeAir
Copy link
Copy Markdown
Member

@WipeAir WipeAir commented Mar 21, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 21, 2026 23:26
@WipeAir WipeAir enabled auto-merge (squash) March 21, 2026 23:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the README documentation for the expressionComplexity rule so the metrics table renders correctly in Markdown (notably around operators containing |).

Changes:

  • Fixes Markdown table formatting for the expressionComplexity metrics list.
  • Escapes the || operator in the maxBranches row to avoid breaking table column parsing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| `maxDepth` | Maximum nesting depth | 8 |
| `maxCalls` | Contract method call nodes in the AST | 10 |
| `maxOperators` | Arithmetic, comparison, and membership operators | 15 |
| `maxBranches` | Ternary (`?:`) and logical (`&&`, `\|\| `) branching | 6 |
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

In the maxBranches description, the inline code for the logical OR operator has a trailing space (\|\| ). This is easy to miss and can lead to inconsistent rendering/formatting compared to other occurrences (e.g., a && b \|\| c below). Consider removing the trailing space so the token is represented consistently.

Suggested change
| `maxBranches` | Ternary (`?:`) and logical (`&&`, `\|\| `) branching | 6 |
| `maxBranches` | Ternary (`?:`) and logical (`&&`, `\|\|`) branching | 6 |

Copilot uses AI. Check for mistakes.
@WipeAir WipeAir merged commit 7f93d80 into main Mar 21, 2026
13 checks passed
@WipeAir WipeAir deleted the docs/align-table branch March 21, 2026 23:28
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