alexzherdev/foosballtracker

View on GitHub
src/api/models/stats.js

Summary

Maintainability
A
1 hr
Test Coverage

Function _getTeamStats has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

let _getTeamStats = (teamId) => {
  let extractCurrentStreak = (form) => {
    let match = form.match(/^W+/)
    if (match) {
      return { wins: match[0].length };
Severity: Minor
Found in src/api/models/stats.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status