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

More strict checks for logger-leak #7

Open
witoszekdev opened this issue Jun 15, 2023 · 0 comments
Open

More strict checks for logger-leak #7

witoszekdev opened this issue Jun 15, 2023 · 0 comments
Assignees

Comments

@witoszekdev
Copy link
Member

witoszekdev commented Jun 15, 2023

What I'm trying to achieve

If a value is an object, and it's not used as a shorthand property, it won't be flagged by the rule.

This is not ideal - a user could just rename a variable and pass it to a logger.

In production environment, a function that takes an object and redacts sensitive values should be used. We could additional check if the object was returned from such a function

Describe a proposed solution

For objects and arrays, check if value was returned from function specified in settings

@witoszekdev witoszekdev self-assigned this Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant