swagger-api/swagger-editor

View on GitHub
src/plugins/validate-semantic/validators/2and3/parameters.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function validate2And3PathParameterIsDefinedInPath has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const validate2And3PathParameterIsDefinedInPath = () => (system) => {
  const refArray = []
  return system.validateSelectors
    .allParameters()
    .then(nodes => {
Severity: Minor
Found in src/plugins/validate-semantic/validators/2and3/parameters.js - About 1 hr to fix

    Function validate2And3ParametersHaveUniqueNameAndInCombinations has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const validate2And3ParametersHaveUniqueNameAndInCombinations = () => (system) => {
      return system.validateSelectors
        .allParameterArrays()
        .then(nodes => {
          return nodes.reduce((acc, node) => {
    Severity: Minor
    Found in src/plugins/validate-semantic/validators/2and3/parameters.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status