-
Notifications
You must be signed in to change notification settings - Fork 262
Update clarity-formatter.md #1807
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,90 +1,58 @@ | ||||||||||||||||||
| # Clarity Formatter | ||||||||||||||||||
|
|
||||||||||||||||||
| Based on the latest available documentation, here's the updated version of the Clarity Formatter documentation: | ||||||||||||||||||
| Clarity Formatter | ||||||||||||||||||
|
||||||||||||||||||
| The Clarity formatter automatically shapes your smart contract code to follow standardized style rules. Consistent formatting improves readability and makes collaboration easier across teams. | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Formatting philosophy | ||||||||||||||||||
|
|
||||||||||||||||||
| Formatting philosophy | ||||||||||||||||||
|
||||||||||||||||||
| Formatting philosophy | |
| ## Formatting philosophy |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bullet point formatting has been removed. These lines should use markdown list syntax with asterisks (*) or dashes (-) to create proper bullet points for better readability.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "## Integration points" to maintain proper heading hierarchy.
| Integration points | |
| ## Integration points |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### Clarity VS Code Extension" to maintain proper heading hierarchy (as a subsection under Integration points).
| Clarity VS Code Extension | |
| ### Clarity VS Code Extension |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bullet point formatting has been removed. These lines should use markdown list syntax with asterisks (*) or dashes (-) to create proper bullet points for better readability.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### Clarinet CLI" to maintain proper heading hierarchy (as a subsection under Integration points).
| Clarinet CLI | |
| ### Clarinet CLI |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "## Comparison table" to maintain proper heading hierarchy.
| Comparison table | |
| ## Comparison table |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The table formatting is broken. This line appears to be a table that has lost all markdown pipe delimiters (|), making it unreadable. The table should use proper markdown table syntax with pipes separating columns and header/body separator rows.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "## Best practices" to maintain proper heading hierarchy.
| Best practices | |
| ## Best practices |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bullet point formatting has been removed. These lines should use markdown list syntax with asterisks (*) or dashes (-) to create proper bullet points for better readability.
| Format on save – enable automatic formatting in VS Code settings (set to off by default) | |
| Format checks in CI/CD – use --check flag to validate formatting in pipelines | |
| Team adoption – share consistent settings with your team | |
| Format entire projects – use Clarinet CLI to format all contracts in your project | |
| - Format on save – enable automatic formatting in VS Code settings (set to off by default) | |
| - Format checks in CI/CD – use --check flag to validate formatting in pipelines | |
| - Team adoption – share consistent settings with your team | |
| - Format entire projects – use Clarinet CLI to format all contracts in your project |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "## Formatting rules in detail" to maintain proper heading hierarchy.
| Formatting rules in detail | |
| ## Formatting rules in detail |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### Function definitions" to maintain proper heading hierarchy (as a subsection under Formatting rules in detail).
| Function definitions | |
| ### Function definitions |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code block markdown syntax is broken. Code blocks should be surrounded by triple backticks (```) with the language identifier on its own line. This line has "clarity" concatenated directly with the opening backticks and code, making it invalid markdown.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code block markdown syntax is broken. Code blocks should be surrounded by triple backticks (```) with the language identifier on its own line. This line has "clarity" concatenated directly with the opening backticks and code, making it invalid markdown.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### Let expressions" to maintain proper heading hierarchy (as a subsection under Formatting rules in detail).
| Let expressions | |
| ### Let expressions |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code block markdown syntax is broken. Code blocks should be surrounded by triple backticks (```) with the language identifier on its own line. This line has "clarity" concatenated directly with the opening backticks and code, making it invalid markdown.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### Control flow (if, match)" to maintain proper heading hierarchy (as a subsection under Formatting rules in detail).
| Control flow (if, match) | |
| ### Control flow (if, match) |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### Tuples and maps" to maintain proper heading hierarchy (as a subsection under Formatting rules in detail).
| Tuples and maps | |
| ### Tuples and maps |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code block markdown syntax is broken. Code blocks should be surrounded by triple backticks (```) with the language identifier on its own line. This line has "clarity" concatenated directly with the opening backticks and code, making it invalid markdown.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "## Usage examples" to maintain proper heading hierarchy.
| Usage examples | |
| ## Usage examples |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### VS Code integration" to maintain proper heading hierarchy (as a subsection under Usage examples).
| VS Code integration | |
| ### VS Code integration |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code block markdown syntax is broken. Code blocks should be surrounded by triple backticks (```) with the language identifier on its own line. This line has "json" concatenated directly with the opening backticks and code, making it invalid markdown.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### CLI usage" to maintain proper heading hierarchy (as a subsection under Usage examples).
| CLI usage | |
| ### CLI usage |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code block markdown syntax is broken. Code blocks should be surrounded by triple backticks (```) with the language identifier on its own line. This line has "bash" concatenated directly with the opening backticks and code, making it invalid markdown. Additionally, all the separate bash code examples and their descriptions have been merged into a single malformed block.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "### CLI options" to maintain proper heading hierarchy (as a subsection under Usage examples or as a standalone section).
| CLI options | |
| ### CLI options |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The table formatting is broken. This line appears to be a table that has lost all markdown pipe delimiters (|), making it unreadable. The table should use proper markdown table syntax with pipes separating columns and header/body separator rows.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "## Ignoring blocks of code" to maintain proper heading hierarchy.
| Ignoring blocks of code | |
| ## Ignoring blocks of code |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code block markdown syntax is broken. Code blocks should be surrounded by triple backticks (```) with the language identifier on its own line. This line has "clarity" concatenated directly with the opening backticks and code, making it invalid markdown.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "## Additional resources" to maintain proper heading hierarchy.
| Additional resources | |
| ## Additional resources |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bullet point formatting has been removed. These lines should use markdown list syntax with asterisks (*) or dashes (-) to create proper bullet points for better readability.
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading syntax is missing the markdown hash symbols. It should be "## Important notes" to maintain proper heading hierarchy.
| Important notes | |
| ## Important notes |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bullet point formatting has been removed. These lines should use markdown list syntax with asterisks (*) or dashes (-) to create proper bullet points for better readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line appears to be an editorial note that should not be included in the final documentation. It reads like metadata or a note to reviewers rather than actual documentation content.