Skip to content

Commit

Permalink
Add reason-string to recommended ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed May 5, 2020
1 parent 4b2a229 commit 56ff271
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ title: "Rule Index of Solhint"
| [no-empty-blocks](./rules/best-practises/no-empty-blocks.md) | Code contains empty block. | ✔️ |
| [no-unused-vars](./rules/best-practises/no-unused-vars.md) | Variable "name" is unused. | ✔️ |
| [payable-fallback](./rules/best-practises/payable-fallback.md) | When fallback is not payable you will not be able to receive ethers. | ✔️ |
| [reason-string](./rules/best-practises/reason-string.md) | Require or revert statement must have a reason string and check that each reason string is at most N characters long. | |
| [reason-string](./rules/best-practises/reason-string.md) | Require or revert statement must have a reason string and check that each reason string is at most N characters long. | ✔️ |
| [constructor-syntax](./rules/best-practises/constructor-syntax.md) | Constructors should use the new constructor keyword. | |

Expand Down
3 changes: 3 additions & 0 deletions docs/rules/best-practises/reason-string.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ title: "reason-string | Solhint"
---

# reason-string
![Recommended Badge](https://img.shields.io/badge/-Recommended-brightgreen)
![Category Badge](https://img.shields.io/badge/-Best%20Practise%20Rules-informational)
![Default Severity Badge warn](https://img.shields.io/badge/Default%20Severity-warn-yellow)
> The {"extends": "solhint:recommended"} property in a configuration file enables this rule.

## Description
Require or revert statement must have a reason string and check that each reason string is at most N characters long.
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/best-practises/reason-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const meta = {
},

isDefault: false,
recommended: false,
recommended: true,
defaultSetup: [DEFAULT_SEVERITY, DEFAULT_OPTION],

schema: {
Expand Down

0 comments on commit 56ff271

Please sign in to comment.