alvaropinot/deprikat

View on GitHub

Showing 2 of 22 total issues

Function cli has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function cli () {
  program
    .version(config.version)
    .usage('[options] <dir>')
    .option('-s, --scan <file>', 'Directory or file', scanCommand);
Severity: Minor
Found in bin/cli.js - About 1 hr to fix

    Function reporter has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const reporter = (file, deprecatedFunctionsNames, opts = {}) => {
      const defaults = {
        encoding: 'utf-8',
        deprecatedTag: /@\bdeprecated\b/
      };
    Severity: Minor
    Found in lib/reporter.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language