-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
error count does not match the number of errors outputted #2048
Comments
useImportType
error count does not match the number of errors outputted
I'd like to work on this issue:) |
Hello @chansuke, I did some debug for this issue just out of curiosity and for getting familiar with the codebase. The extra count of the error seems from this piece: biome/crates/biome_cli/src/execute/traverse.rs Lines 418 to 420 in 984626d
The way I debugged it is printing a message before each line of
I think the reason is that the error count will be correctly increased in other dedicated branches, so the one in branch I hope my findings can provide some help :) |
@Sec-ant Hi!Thank you so much for the information!I was busy last week but start working on this issue tomorrow. |
Hi @chansuke, I'm gonna take over this issue to ship a fix before v1.6.4 is released. |
@Sec-ant |
Environment information
Rule name
useImportType
Playground link
N/A
Expected result
The number of errors found in the output of both the
check
andlint
commands should match the number of errors that were printed.Let's create a file named
a.ts
with the following content:When executing the
biome lint a.ts
command, the output is:It says
Found 2 errors
, but only one error is present.When executing the
biome check a.ts
command, the output is:The printed errors are the same as in the
lint
case, but the error count is 3 for some reason now.Code of Conduct
The text was updated successfully, but these errors were encountered: