Skip to content
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

deno lint produces unreadable output for minified files. #26574

Open
bartlomieju opened this issue Oct 27, 2024 · 0 comments · May be fixed by #26633
Open

deno lint produces unreadable output for minified files. #26574

bartlomieju opened this issue Oct 27, 2024 · 0 comments · May be fixed by #26633
Labels
bug Something isn't working correctly

Comments

@bartlomieju
Copy link
Member

Version: Deno 2.0.3

This came up in #26519 (comment). While I think #26573 will minimize impact of the problem, deno lint should still be smarter about printing code snippets.

If the diagnostic is produced for a rather big column no (eg. >=200), deno lint should put a placeholder instead of printing out the whole code snippet with highlighted range.

Additionally a hint should be provided that this situation suggests a minified file is being linted, which usually is not what user wanted. The hint should suggest to exclude the file in deno.json config.

@bartlomieju bartlomieju added the bug Something isn't working correctly label Oct 27, 2024
@bartlomieju bartlomieju linked a pull request Oct 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant