-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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(fmt, lint): show number of checked files #7312
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.
Thanks @magurotuna, we'll have to land #7303 first and then do the rebase.
@magurotuna could you rebase the branch? |
@bartlomieju |
In the current implementation, |
I would prefer stdout here because this message is unconditionally printed regardless if there are errors are not. But if we print everything else on stderr, that might make more sense. |
@lucacasonato |
Done. |
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, thank you @magurotuna
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.
@magurotuna we have discussed this issue further offline and after all think that adding --verbose
flag is not the best way forward. Could you change the PR to show this info by default?
@bartlomieju oh, I see. I'll fix it tomorrow(Sep 8th), please wait |
@bartlomieju I've completed removing |
Additionally, seeing the info from discord, I updated the available rules in the doc. |
Thanks @magurotuna I'll review shortly, and restart the CI once it's up and running again (https://discord.com/channels/684898665143206084/684911491035430919/752901574077972491) |
@magurotuna thanks for the update! I checked the PR locally and I think it's ready to land 👍 |
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, thank you @magurotuna
Resolves #6435
This PR adds
--verbose
(in short,-v
) flag todeno fmt
anddeno lint
.Examples
Given a file named
file.ts
that is already formatted and have no lint problems:As you can see, adding
-v
and--json
at the same time is not allowed. If both are present,--json
has a priority.In contrast, if
file.ts
contains not-formatted code and lint errors:Any feedback or review would be appreciated, thanks.