Skip to content

More strict checks for logger-leak #7

@witoszekdev

Description

@witoszekdev

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions