matiasmenares/Nissboard

View on GitHub

Showing 264 of 413 total issues

Avoid too many return statements within this function.
Open

return {
type: Token.Punctuator,
value: '...',
lineNumber: lineNumber,
lineStart: lineStart,
Severity: Major
Found in server/public/jsx-transformer-0.12.2.js - About 30 mins to fix

    Function compass has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    def compass(self):
    while True:
    self.update()
    mag = self.mag
    declinacion = -4.14
    Severity: Minor
    Found in dashboard/core/accelerometer.py - About 25 mins to fix

    Function validate_condition has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    def validate_condition(self, condition, output):
    if condition.condition_id == 1:
    return self.greater_than(condition, output)
    elif condition.condition_id == 2:
    return self.greater_than_or_equal_to(condition, output)
    Severity: Minor
    Found in dashboard/core/alarm.py - About 25 mins to fix

    Function need_reset has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    def need_reset(self):
    if(datetime.now() > (self.timer + timedelta(seconds=3))):
    self.timer = datetime.now()
    v_config = VarConfigModel.query.get(1)
    if v_config.var_value == "1":
    Severity: Minor
    Found in dashboard/core/accelerometer.py - About 25 mins to fix
    Severity
    Category
    Status
    Source
    Language