Showing 32 of 82 total issues
Function formGenerator
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formGenerator ( conf ) {
conf = conf || {};
var v = require( '../../validation' )( conf.validators )
, validate = v.validateField;
Function formGenerator
has 146 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formGenerator ( conf ) {
conf = conf || {};
var v = require( '../../validation' )( conf.validators )
, validate = v.validateField;
Function exports
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( conf ) {
conf = conf || {};
var VALIDATORS = t.merge( require( './validators' ),
conf.validators );
Function buildRouter
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
Open
function buildRouter () {
var args = g.argsToArray( arguments )
, simpleConf = {}
, regexpConf = []
, reLength
- 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 exports
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault
, getOrNull = tools.getOrNull;
return React.createClass({
Function exports
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault
, getOrNull = tools.getOrNull;
return React.createClass({
Function exports
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault
, getOrNull = tools.getOrNull;
return React.createClass({
Function exports
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault
, getOrNull = tools.getOrNull;
return React.createClass({
Function exports
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault
, Addons = React.addons;
return React.createClass({
Function exports
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault
, getOrNull = tools.getOrNull;
return React.createClass({
Function exports
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault
, getOrNull = tools.getOrNull;
return React.createClass({
Function exports
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault;
return React.createClass({
displayName: 'TextareaRenderer',
Function exports
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault;
return React.createClass({
displayName: 'TextareaRenderer',
Function exports
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault;
return React.createClass({
displayName: 'TextRenderer',
Function exports
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrDefault = tools.getOrDefault;
return React.createClass({
displayName: 'TextRenderer',
Function renderCellContent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderCellContent: function ( cell ) {
var self = this
, meta = this.props.meta || {}
, contents = getOrDefault( cell, 'content', [] )
, Layout;
Function renderCellContent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderCellContent: function ( cell ) {
var self = this
, meta = this.props.meta || {}
, contents = getOrDefault( cell, 'content', [] )
, Layout;
Function exports
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrNull = tools.getOrNull
, getOrDefault = tools.getOrDefault;
return React.createClass({
Function exports
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function ( React, tools ) {
var getOrNull = tools.getOrNull
, getOrDefault = tools.getOrDefault;
return React.createClass({
Function exports
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
module.exports = function ( conf ) {
conf = conf || {};
var VALIDATORS = t.merge( require( './validators' ),
conf.validators );
- 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"