BRIKEV/express-jsdoc-swagger

View on GitHub
transforms/paths/index.js

Summary

Maintainability
A
2 hrs
Test Coverage
A
100%

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

const parsePath = (path, state) => {
  if (!path.description || !path.tags) return {};
  const [method, endpoint] = path.description.split(' ');
  // if jsdoc comment does not contain structure <Method> - <Endpoint> is not valid path
  const lowerCaseMethod = method.toLowerCase();
Severity: Minor
Found in transforms/paths/index.js - About 1 hr to fix

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

    const pathValues = tags => {
      const examplesValues = getTagsInfo(tags, 'example');
      const examples = examplesGenerator(examplesValues);
    
      const summary = getTagInfo(tags, 'summary');
    Severity: Minor
    Found in transforms/paths/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status