Skip to content
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

Format all test contracts consistently #61

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Format all test contracts consistently #61

merged 1 commit into from
Dec 13, 2024

Conversation

BowTiedRadone
Copy link
Collaborator

@BowTiedRadone BowTiedRadone commented Dec 13, 2024

This PR ensures all test contracts follow consistent formatting rules, addressing inconsistencies in the codebase. As there is no official Clarity formatter, this PR also resolves #27.

Additionally, a minor update was made to the counter contract to align with the max 79 chars per line formatting rule. Tests requiring discarding were also updated as part of this PR.

This commit applies consistent formatting rules to all test contracts. Since
there is no official Clarity formatter, this change addresses formatting
inconsistencies and resolves #27.
Copy link
Member

@moodmosaic moodmosaic left a comment

Choose a reason for hiding this comment

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

This style is common in other languages like Haskell. It’s nice that we can use this style also in Clarity. LGTM 👍

(result (slice-buff seq skip n))
)
(not (and (<= 0 skip) (<= skip 127)))
)
Copy link
Member

Choose a reason for hiding this comment

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

Good catch here.

@moodmosaic moodmosaic merged commit 30b6925 into master Dec 13, 2024
@moodmosaic moodmosaic deleted the housekeeping branch December 13, 2024 13:03
@diwakergupta
Copy link
Member

As there is no official Clarity formatter

Just FYI, this is coming soon to Clarinet -- follow along here hirosystems/clarinet#1609

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.

Use a Clarity formatter for the example projects
3 participants