codeclimate/codeclimate-fixme

View on GitHub

Showing 1 of 5 total issues

Function find has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

FixMe.prototype.find = function(paths, strings, callback) {
  var pattern = `(${strings.join('|')})`;
  var grep = spawn('grep', [...GREP_OPTIONS, pattern, ...paths]);

  readline.createInterface({ input: grep.stdout }).on('line', (line) => {
Severity: Minor
Found in lib/fix-me.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language