Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 398 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 398 Bytes

This example counts the number of times console.log appears in the source. This could be useful if you want to check for unwanted console.log statements during your build process.

From the doctor source, in the examples/count-console-log directory, run this command:

doctor foo.js -r report --verbose

Note that the default rules are disabled and overridden by the rules in report.js.