Showing 15 of 15 total issues
Function testBrowser
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
function testBrowser() {
// Our testing bundle is made up of our unit tests, which
// should individually load up pieces of our application.
// We also include the browser setup file.
const testFiles = glob.sync('./test/unit/**/*.js');
Function _processContract
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
_processContract (subject, contract) {
if (!isObject(contract)) throw new Error("Assertron: assertion should be an object")
const result =
this._iterateContract(contract, (assertionName, subContract) => {
- 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
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import Assertion from '../assertion'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import NumberAssertion from '../../../src/assertions/number'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import Assertron from './assertron'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import Assertron from '../../src/assertron'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import isObject from 'lodash/isObject'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import {assert} from '../../src/index'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import Assertion from '../assertion'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import AssertionError from 'assertion-error'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
export default function pipe (...args) {
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import StringAssertion from '../../../src/assertions/string'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import Assertion from '../assertion'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import BaseAssertion from '../../src/assertions/base'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Definition for rule 'babel/func-params-comma-dangle' was not found Open
import pipe from '../../src/utils/pipe'
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/