dappros/ethora

View on GitHub
bots/huthut/config/connect.js

Summary

Maintainability
A
2 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

    if (
        data.botName &&
        data.botAddress &&
        data.botPassword &&
        data.conferenceAddress &&
Severity: Critical
Found in bots/huthut/config/connect.js - About 1 hr to fix

Function connectData has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const connectData = () => {
    console.log('=> Running a bot on a ' + process.env.TYPE + ' server')
    let data = {
        botName: process.env.BOT_NAME,
        botAddress: process.env.BOT_ADDRESS,
Severity: Minor
Found in bots/huthut/config/connect.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status