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

Change no-console to error, only for ext files #352

Merged

Conversation

toasted-nutbread
Copy link

Originally mentioned here: #339 (comment)

I believe warnings are not useful information as they can (and by some people, will) deliberately be ignored, and they add a bunch of messages that are unrelated to the current working feature branch when running the test.

IMO this should be enforced as an error, and any existing locations with this problem should be explicitly annotated in the code to allow them so that they don't show up in future reports. They should really also only apply to the ext folder, as the dev/test stuff is command line stuff that should be expected to write to console.

@toasted-nutbread toasted-nutbread requested a review from a team as a code owner December 10, 2023 15:37
Copy link

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

Copy link
Collaborator

@djahandarie djahandarie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think we should write down some sort of standard/policy regarding when it's appropriate to console in extension code. I feel like most things should go through the logger instead. Maybe the existing cases of direct console usage are acceptable for some reason, but I don't think it's immediately clear what that is.

@djahandarie djahandarie added this pull request to the merge queue Dec 11, 2023
Merged via the queue into yomidevs:master with commit e9dde82 Dec 11, 2023
5 checks passed
@djahandarie djahandarie added the kind/meta The issue or PR is meta label Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/meta The issue or PR is meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants