A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/5105 below:

[javascript] Prohibit any console methods · Issue #5105 · pmd/pmd · GitHub

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.

console.log('foo'); // bad
console.error('foo'); // bad

Possible Properties:

Context:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4