docs: function () {
        var compoundComponents = doc.artifacts.compoundComponents;
        if (!compoundComponents) {
          return;
        }
        function checkMemberHasDependency (compound) {
          function findDep (dependencies, artifactId) {
            if (!dependencies || !artifactId) {
              return;
            }
            return dependencies.filter(function (dep) {
              return dep.artifactId === artifactId;
            });
          }
  
          function checkDependencyForMember (member) {
            // for model version 9 and higher no endpoint
            var foundedArray = findDep(compound.dependencies, member.artifactId);
            if (foundedArray && foundedArray.length === 0) {
              errors.push('RuleViolation identified: Member of "' + compound.artifactId + '" with memberId "' + member.memberId +
                '" and artifactId "' + member.artifactId + '" has no corresponding dependency');
            }
          }
  
          var members = compound.members;
          members.forEach(function (member) {
            checkDependencyForMember(member);
          });
        }
  
        compoundComponents.forEach(function (compoundComponent) {
          checkMemberHasDependency(compoundComponent);
        });
      }