Showing 8 of 33 total issues
Function exports
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('bower.json'),
Function exports
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config) {
config.set({
// Base path, that will be used to resolve files and exclude
basePath: '',
Function Builder
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Builder(_baseDsl) {
var mappings = [
{ fun: 'attrDefault', sign: ['init'] },
{ fun: 'attrMask', sign: ['ignore'] },
Function $save
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$save: function(_patch) {
return this.$action(function() {
var url = this.$url('update'), request;
if(url) {
Function attrAsCollection
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
attrAsCollection: function(_attr, _model, _url, _source, _inverseOf, _params, _hooks) {
Avoid deeply nested control flow statements. Open
Open
} else if(VAR_RGX.test(_attr)) {
$log.warn('Usage of ~ in description objects will be removed in 1.2, use a $config block instead');
_attr = inflector.camelize(_attr.toLowerCase());
this.setProperty(_attr, _desc);
}
Avoid deeply nested control flow statements. Open
Open
for(var key in _desc) {
if(_desc.hasOwnProperty(key)) this.on(key, _desc[key]);
}
Avoid deeply nested control flow statements. Open
Open
if(_desc.hasOwnProperty(key)) this.define(key, _desc[key]);