-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix(fmt): filter libs when recursing #12119
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
Conversation
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.
makes sense, left a comment re test
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.
lgtm
zerosnacks
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.
nice 👍
* fix(fmt): account for ternary operators when estimating size * fix(fmt): filter libs when recursing * style: clippy * test: wipe contracts before formatting * test: explicitly test ignore
* fix(anvil): eth_getAccountInfo check if predates fork inclusive (#12101) * fix(doc): follow tab width fmt config (#12103) * fix(fmt): account for ternary operators when estimating size (#12104) * fix(fmt): account for ternary operators when estimating size (#12112) * fix(fmt): properly handle multiline_func_header = "all" + bump alloy (#12110) * fix: don't normalize single-line non-doc block cmnts * fix: preserve consecutive whitespaces * fix: use byte length instead of char count * fix(fmt): properly handle multiline_func_header = "all" * fix: bump alloy * fix: bump alloy * chore: bump version to 1.4.2 (#12113) * fix(fmt): handle trailing coments between base contracts (#12127) * fix(fmt): account for ternary operators when estimating size * fix(fmt): handle comments between inherited base contracts * test: layout + base inheritance * fix(fmt): filter libs when recursing (#12119) * fix(fmt): account for ternary operators when estimating size * fix(fmt): filter libs when recursing * style: clippy * test: wipe contracts before formatting * test: explicitly test ignore * fix(fmt): break try stmts in a fn header-like fashion (#12131) * fix(fmt): use nbsp if LHS-most element fits (#12135) * fix(fmt): use nbsp if LHS-most element fits * fix(fmt): use nbsp if LHS-most element fits * reset cache inside helper * fix(fmt): prioritize parenthesis breaks in emit and revert stmts (#12147) * fix(fmt): prioritize parenthesis breaks in emit and revert stmts * fix(fmt): respect bracket spacing when printing commasetp without delimiters --------- Co-authored-by: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com>
Motivation
closes #12118
Solution
when the input path requires discovery (i.e.
., orlib/.) check if it is a lib path. If it is not, ignore libs.PR Checklist