transforms/paths/index.js
Function parsePath
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Function pathValues
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const pathValues = tags => {
const examplesValues = getTagsInfo(tags, 'example');
const examples = examplesGenerator(examplesValues);
const summary = getTagInfo(tags, 'summary');