You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Use of console.log or console.error can expose sensitive data and is a performance hit. We have a rule for this in Apex, and should have a similar one for JavaScript.
Code Sample: This should include code, that should be flagged by the rule. If possible, the "correct" code
according to this new rule should also be demonstrated.
console.log('foo');// badconsole.error('foo');// bad
Possible Properties:
Should this rule be customizable via properties?
Perhaps we specify the kinds of console statements we block? error vs log vs ...
Proposed Rule Name:
AvoidConsoleStatements
Proposed Category:
Performance or Security
Description:
Use of console.log or console.error can expose sensitive data and is a performance hit. We have a rule for this in Apex, and should have a similar one for JavaScript.
Code Sample: This should include code, that should be flagged by the rule. If possible, the "correct" code
according to this new rule should also be demonstrated.
Possible Properties:
Perhaps we specify the kinds of console statements we block? error vs log vs ...
Context:
The text was updated successfully, but these errors were encountered: