Showing 19 of 57 total issues
Function operationSwitch
has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring. Open
function operationSwitch(state, action) {
let op = action.payload;
let carry = 0;
// AND/OR/XOR/XNOR benötigen nur die beiden flags
- 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 render
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
render () {
const { toggleBit, bitDisplay } = this.props
var hrefLink = process.env.NODE_ENV === 'production' ? 'logicalPage.html' : '/logicalPage';
Function render
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
return(
<div>
<style jsx>{`
.topic {
Function render
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
let name = this.props.name,
props = this.props,
activeGroupOperation = this.props.activeGroupOperation,
activeGroup = this.props.activeGroup,
Function render
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
return(
<div>
<style jsx>{`
.topic {
Function render
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
var tools = [];
for( var i = 0; i<256; i++ ){
tools[i] = <tr key={i} >
Function compileBordersFromDigit
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
const compileBordersFromDigit = (digit, isTopBox = false) => {
const output = []
if(isTopBox) {
const needsTopBorder = [0,2,3,5,6,7,8,9]
- 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 bitgroupOperation
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
function bitgroupOperation(state, action) {
let op = action.payload.operation;
let group = action.payload.group;
let bits = 0,
decVal = 0;
Function render
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
var hrefLink = process.env.NODE_ENV === 'production' ? 'index.html' : '/';
return (
<div className="htmlBackground">
Function render
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
let props = this.props;
let activeOperation = this.props.activeOperation;
var operations =
Function operationSwitch
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
function operationSwitch(state, action) {
let op = action.payload;
let carry = 0;
// AND/OR/XOR/XNOR benötigen nur die beiden flags
Function render
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
let restString = "";
if (this.props.decValues.rest > 0)
restString = "Rest: " + this.props.decValues.rest;
Function render
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
render() {
let op = this.props.activeHelp,
topic = this.props.info[op][0],
descr = this.props.info[op][1];
Function logicalReducer
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
function logicalReducer(state = initialState, action) {
switch (action.type) {
case CHANGE_BIT:
return {
...state,
Function compileBordersFromDigit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
const compileBordersFromDigit = (digit, isTopBox = false) => {
const output = []
if(isTopBox) {
const needsTopBorder = [0,2,3,5,6,7,8,9]
Function render
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
render() {
let name = this.props.name,
props = this.props,
activeGroupOperation = this.props.activeGroupOperation,
activeGroup = this.props.activeGroup,
- 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 bitgroupOperation
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
function bitgroupOperation(state, action) {
let op = action.payload.operation;
let group = action.payload.group;
let bits = 0,
decVal = 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 render
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
render() {
let props = this.props;
let activeOperation = this.props.activeOperation;
var operations =
- 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 changeBit
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function changeBit(state, action) {
let group = action.payload[0];
let index = action.payload[1];
if (group == "first") {
- 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"