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

Feature request: Enforce all blocks with brackets as optional configuration #988

Open
iainnash opened this issue Feb 16, 2024 · 0 comments

Comments

@iainnash
Copy link
Contributor

Some regard avoiding single-line implicit brackets for conditionals a good coding practice for solidity.

Eg:

/// undesirable
if (balance == 0) revert NoBalance();

// more clear
if (balance == 0) {
  revert NoBalance();
}

It would be great to make this an optional prettier solidity feature to force all single-line statements to use brackets for code readability.

@iainnash iainnash changed the title Enforce all blocks with brackets as optional configuration Feature request: Enforce all blocks with brackets as optional configuration Feb 18, 2024
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

No branches or pull requests

1 participant