-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat(lint): refactor LinterConfig and add 3 new linting rules #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): refactor LinterConfig and add 3 new linting rules #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
Feat/linting interface naming
|
@milosdjurica lmk when the PR is ready for re-review! |
|
Hi @0xrusowsky , it should be good now 👍🏻 |
|
great, tysm! will review it today at some point |
0xrusowsky
left a comment
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.
just left some nits for code clarity and succinctness, but otherwise the changes LGTM!
also, sorry for the late review
|
@milosdjurica btw, i haven't tested the my code compiles, those are just suggestions, so you may need to tweak them a bit, but u get the gist of the requested simplifications |
|
Hi @0xrusowsky, thanks for suggestions - it's much cleaner now. I have applied them with some small changes, lmk if this is okay now |
0xrusowsky
left a comment
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.
great work!
pending another approval just in case.
@grandizzy could u have a look too?
grandizzy
left a comment
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.
thank you! pls fix the build_with_invalid_natspec test to get it going (ideally leave it as before to make sure we're catching that scenario)
.solfile .LinterConfigMotivation
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!