UNPKG

fixme

Version:

Scan for NOTE, OPTIMIZE, TODO, HACK, XXX, FIXME, and BUG comments within your source, and print them to stdout so you can deal with them.

20 lines (17 loc) 932 B
// NOTE: This is the sample output for a note! // OPTIMIZE (John Postlethwait): This is the sample output for an optimize with an author! // TODO: This is the sample output for a todo! // HACK: This is the sample output for a hack! Don't commit hacks! // XXX: This is the sample output for a XXX! XXX's need attention too! // FIXME (John Postlethwait): This is the sample output for a fixme! Seriously fix this... // BUG: This is the sample output for a bug! Who checked in a bug?! /* BUG: This is the sample output for a bug! Who checked in a bug?! */ // The next line is just a URL // https://bugzilla.mozilla.org/show_bug.cgi?id=1399196 require('../bin/fixme')({ // NOTE: It doesn't need to be placed at line start! path: process.cwd(), ignored_directories: ['node_modules/**', '.git/**'], file_patterns: ['**/annotation_test.js'], file_encoding: 'utf8', line_length_limit: 1000 });