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

feat: use solhint features #82

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

0xShaito
Copy link
Member

@0xShaito 0xShaito commented Sep 4, 2024

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

ashitakah
ashitakah previously approved these changes Sep 4, 2024
Copy link
Contributor

@ashitakah ashitakah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@@ -0,0 +1,11 @@
{
"rules": {
"ordering": "off",
Copy link
Member Author

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?

Copy link
Member

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.

Comment on lines 2 to 3
"extends": "solhint:recommended",
"rules": {
Copy link
Member

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.

0xteddybear
0xteddybear previously approved these changes Oct 2, 2024
Copy link

@0xteddybear 0xteddybear left a 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",
Copy link
Member

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?

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

Successfully merging this pull request may close these issues.

5 participants