You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Some regard avoiding single-line implicit brackets for conditionals a good coding practice for solidity.
Eg:
It would be great to make this an optional prettier solidity feature to force all single-line statements to use brackets for code readability.
The text was updated successfully, but these errors were encountered: