Showing 264 of 413 total issues
Avoid too many return
statements within this function. Open
return { type: Token.Punctuator, value: '...', lineNumber: lineNumber, lineStart: lineStart,
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
- Read upRead up
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)
- Read upRead up
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":
- Read upRead up