-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat(lint): add multi-contract-file rule #12581
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
base: master
Are you sure you want to change the base?
feat(lint): add multi-contract-file rule #12581
Conversation
|
@milosdjurica first of all thanks for the PR and the initiative, we love new contributions to forge's linter! i think the idea overall makes sense, however imo we can improve it.
lmk if this seems reasonable and if u have any doubts regarding impl |
Sounds great, I like it! Will look to implement it ASAP :) |
…i_contract_file_exceptions
Added a new linting rule that checks for multiple contract-like items (contracts, abstract contracts, interfaces and libraries) per
.solfileMotivation
Enforce best practice.
Solution
I have some doubts regarding this, would like to hear your opinion.
My solution count interfaces and libraries too, and it shows linting note only once per file. Let me know if you want something to be changed :)
PR Checklist
Keep up the good work guys, cheers!