Skip to content

linter: --silent affects error count #13865

@overlookmotel

Description

@overlookmotel

In VSCode repo with no Oxlint config file:

% pnpx oxlint -V      
Version: 1.16.0

% pnpx oxlint
... loads of diagnostics ...
Found 6911 warnings and 19 errors.
Finished in 1.2s on 6168 files with 88 rules using 14 threads.

% pnpx oxlint --silent
Found 6997 warnings and 19 errors.
Finished in 200ms on 6168 files with 88 rules using 14 threads.

In Kibana repo:

% pnpx oxlint -V      
Version: 1.16.0

% pnpx oxlint
Found 16881 warnings and 6 errors.
Finished in 2.5s on 76138 files with 88 rules using 14 threads.

% pnpx oxlint --silent
Found 64036 warnings and 6 errors.
Finished in 3.0s on 76138 files with 88 rules using 14 threads.

I don't know if it's actually finding more warnings with --silent, or just counting them wrongly.

Wild guess: Maybe --silent causes it not to filter out warnings where there's an // eslint-disable comment?

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions