lgaticaq/tz-parser

View on GitHub
src/utils.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function getAlarm has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const getAlarm = (alarm, speed, rfid) => {
  const messages = langs['es']
  const alarmTypes = {
    '01': { type: 'SOS_Button', message: messages[alarm] },
    '49': { type: 'DI', number: 5, status: true, message: messages[alarm] },
Severity: Minor
Found in src/utils.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status