-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: use solhint features #82
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
src/interfaces/.solhint.json
Outdated
@@ -0,0 +1,11 @@ | |||
{ | |||
"rules": { | |||
"ordering": "off", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep ordering on in interfaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like having a standard for interface ordering; following the layout from the Solidity docs convinces me—at the same time, I prefer putting default getters above other functional logic. I think this last preference conflicts with how ordering
works.
"extends": "solhint:recommended", | ||
"rules": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote for warning on named-parameters-mapping
rule. A shout-out to @0xteddybear for noticing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
"func-visibility": ["warn", { "ignoreConstructors": true }], | ||
"not-rely-on-time": "off", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xteddybear why removing this rule ser?
New features in solhint allows us to implement different rules for different folders. Now we have a general one and a specific one on each folder. With this, we remove a lot of defaults that are not needed anymore and create a separation of rules