forked from ubiquity/ubiquity-dollar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Integrate solhint with a few rules to enforce contract convent…
…ion (ubiquity#851) * chore: integrate solhint with a few rules * chore: integrate solhint with a few rules * chore: add command to the namespace to invoke solhint on top level repo * chore: add command to the namespace to invoke solhint on top level repo * chore: add few more rules, update readme
- Loading branch information
1 parent
ae51df9
commit f6bd4c9
Showing
5 changed files
with
401 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist/ | ||
.next/ | ||
dist/_next/ | ||
!.solhint.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"rules": { | ||
"func-param-name-mixedcase": "error", | ||
"func-visibility": ["warn", { "ignoreConstructors": true }], | ||
"custom-errors": "off", | ||
"no-inline-assembly": "off", | ||
"reentrancy": "warn", | ||
"foundry-test-functions": ["warn", ["setUp"]], | ||
"event-name-camelcase": "warn", | ||
"func-name-mixedcase": "warn", | ||
"use-forbidden-name": "error", | ||
"func-named-parameters": ["warn", 4] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.