Showing 61 of 126 total issues
Function AngularJsonAPIAbstractModelWrapper
has 488 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPIAbstractModelWrapper(
AngularJsonAPIModelSourceError,
AngularJsonAPIModelValidationError,
AngularJsonAPIModelErrorsManager,
AngularJsonAPIModelLinkerService,
Function AngularJsonAPIModelLinkerService
has 271 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPIModelLinkerService($log) {
var _this = this;
_this.toLinkData = toLinkData;
File abstract-model.js
has 525 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
angular.module('angular-jsonapi')
.factory('AngularJsonAPIAbstractModel', AngularJsonAPIAbstractModelWrapper);
Function AngularJsonAPISourceRestWrapper
has 182 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPISourceRestWrapper(
AngularJsonAPIModelSourceError,
AngularJsonAPISourcePrototype,
AngularJsonAPIModelLinkerService,
toKebabCase,
Function AngularJsonAPIResourceCacheWrapper
has 144 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPIResourceCacheWrapper(
uuid4,
$log
) {
Function AngularJsonAPISourceRest
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPISourceRest(name, url) {
var _this = this;
var headers = { // jscs:disable disallowQuotedKeysInObjects
'Accept': 'application/vnd.api+json',
'Content-Type': 'application/vnd.api+json'
Function AngularJsonAPICollectionWrapper
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPICollectionWrapper(
AngularJsonAPIModelSourceError,
AngularJsonAPIModelErrorsManager,
$rootScope,
$injector,
Function AngularJsonAPIResourceWrapper
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPIResourceWrapper(
AngularJsonAPIModel,
AngularJsonAPISchema,
AngularJsonAPIResourceCache,
AngularJsonAPICollection,
Function AngularJsonAPIModelFormWrapper
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPIModelFormWrapper(
AngularJsonAPIModelValidationError,
AngularJsonAPIModelLinkerService,
validateJS,
$q
Function AngularJsonAPISourceParseWrapper
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPISourceParseWrapper(
AngularJsonAPIModelSourceError,
AngularJsonAPISourcePrototype,
AngularJsonAPIModelLinkerService,
pluralize,
Function AngularJsonAPISynchronizerSimpleWrapper
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPISynchronizerSimpleWrapper(AngularJsonAPISynchronizerPrototype, $q, $log) {
AngularJsonAPISynchronizerSimple.prototype = Object.create(AngularJsonAPISynchronizerPrototype.prototype);
AngularJsonAPISynchronizerSimple.prototype.constructor = AngularJsonAPISynchronizerSimple;
Function AngularJsonAPISourceParse
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPISourceParse(name, table) {
var _this = this;
_this.ParseObject = Parse.Object.extend(table);
_this.type = pluralize(table).charAt(0).toLowerCase() + pluralize(table).slice(1);
Function jsonapiProvider
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function jsonapiProvider(validateJS) {
var memory = {};
var names = [];
this.$get = jsonapiFactory;
Function __setData
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function __setData(object, validatedData) {
var $jsonapi = $injector.get('$jsonapi');
var schema = object.schema;
Function synchronize
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function synchronize(config) {
var _this = this;
var promises = [];
var deferred = $q.defer();
var action = config.action;
File model-linker.js
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
angular.module('angular-jsonapi')
.service('AngularJsonAPIModelLinkerService', AngularJsonAPIModelLinkerService);
Function jsonapiFactory
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function jsonapiFactory(
$log,
AngularJsonAPIResource,
AngularJsonAPISynchronizerSimple
) {
Function AngularJsonAPISourceLocalWrapper
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPISourceLocalWrapper(
AngularJsonAPISourcePrototype,
$window,
$q
) {
Function AngularJsonAPISourcePrototypeWrapper
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AngularJsonAPISourcePrototypeWrapper() {
AngularJsonAPISourcePrototype.prototype.before = beforeSynchro;
AngularJsonAPISourcePrototype.prototype.after = afterSynchro;
AngularJsonAPISourcePrototype.prototype.begin = begin;
AngularJsonAPISourcePrototype.prototype.finish = finish;
Function link
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function link(key, target) {
var deferred = $q.defer();
var _this = this;
var error;
var config = {