makeomatic/mservice-calendar

View on GitHub
bin/tags.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function getUploadTagsList has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getUploadTagsList = (argv) => {
  const root = path.resolve(process.cwd(), argv.dir);
  const sections = glob.sync('*', { cwd: root });

  // gives complete list of section/genres
Severity: Minor
Found in bin/tags.js - About 1 hr to fix

    Function uploadFiles has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function uploadFiles(argv) {
      // example:
      //  -x ~/projects/rfx-chef/cookbooks/rfx-docker/files/default/gce-key.json
      // eslint-disable-next-line import/no-dynamic-require
      const credentials = require(argv.credentials);
    Severity: Minor
    Found in bin/tags.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status