Showing 201 of 591 total issues
Function EmbeddedPropertyTransformer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
var EmbeddedPropertyTransformer = (function (_ResourceTransformer) {
function EmbeddedPropertyTransformer(path) {
_classCallCheck(this, EmbeddedPropertyTransformer);
_get(Object.getPrototypeOf(EmbeddedPropertyTransformer.prototype), "constructor", this).call(this);
Function endpointFn
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
get endpointFn() {
if (!this._endpointFn) {
var name = this.name;
var description = this.relationship.ResourceClass.resourceDescription;
var relationship = this.relationship;
Function Injector
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
var Injector = (function () {
function Injector() {
_classCallCheck(this, Injector);
this._instantiations = [];
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function pathSet
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
pathSet(jsonpath, value){
var path = jsonPath(this._response, jsonpath, {wrap: true, resultType: "path"});
if (path && path.length > 0) {
path = path[0];
if(path[0] !== "$"){
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function pathSet
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
pathSet(jsonpath, value){
var path = jsonPath(this._response, jsonpath, {wrap: true, resultType: "path"});
if (path && path.length > 0) {
path = path[0];
if(path[0] !== "$"){
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function RelationshipDescription
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
function RelationshipDescription(relationshipInitializerFactory, resourceMapperFactory, resourceSerializerFactory, inflector, name, ResourceClass, initialValues) {
Function ResourceDescription
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
function ResourceDescription(jsonPropertyDecoratorFactory, relatedResourceDecoratorFactory, singleRelationshipDescriptionFactory, manyRelationshipDescriptionFactory, listRelationshipDescriptionFactory, mapRelationshipDescriptionFactory, inflector) {
Function JsonPropertyDecorator
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
function JsonPropertyDecorator(loadedDataEndpointFactory, embeddedPropertyTransformerFactory, promiseEndpointFactory, name, path, value, options) {
Function ResourceMapper
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
function ResourceMapper(templatedUrlFromUrlFactory, resourceBuilderFactory, primaryResourceBuilderFactory, primaryResourceTransformerFactory, transport, response, relationshipDescription) {
Function ResourceDescription
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
var ResourceDescription = function ResourceDescription(jsonPropertyDecoratorFactory, relatedResourceDecoratorFactory, singleRelationshipDescriptionFactory, manyRelationshipDescriptionFactory, listRelationshipDescriptionFactory, mapRelationshipDescriptionFactory, inflector) {
Function ResourceMapper
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
var ResourceMapper = function ResourceMapper(templatedUrlFromUrlFactory, resourceBuilderFactory, primaryResourceBuilderFactory, primaryResourceTransformerFactory, transport, response, relationshipDescription) {
Function RelationshipDescription
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
var RelationshipDescription = function RelationshipDescription(relationshipInitializerFactory, resourceMapperFactory, resourceSerializerFactory, inflector, name, ResourceClass, initialValues) {
Function JsonPropertyDecorator
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
var JsonPropertyDecorator = function JsonPropertyDecorator(loadedDataEndpointFactory, embeddedPropertyTransformerFactory, promiseEndpointFactory, name, path, value, options) {
Function Transport
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
var Transport = (function () {
function Transport(urlHelper, $http) {
_classCallCheck(this, Transport);
this.http = $http;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function build
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
build(uriTemplate = null) {
var resource = new this.ResourceClass(this.response);
if (resource.pathGet("$.links.self")) {
if (uriTemplate) {
resource.templatedUrl = this.templatedUrlFromUrlFactory(uriTemplate, resource.pathGet("$.links.self"));
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function build
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
build(uriTemplate = null) {
var resource = new this.ResourceClass(this.response);
if (resource.pathGet("$.links.self")) {
if (uriTemplate) {
resource.templatedUrl = this.templatedUrlFromUrlFactory(uriTemplate, resource.pathGet("$.links.self"));
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function walk
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
walk: function walk(loc, expr, val, path, f) {
Function walk
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
walk: function(loc, expr, val, path, f) {
Function walk
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
walk: function(loc, expr, val, path, f) {
Function walk
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
walk: function(loc, expr, val, path, f) {