angelakuo/citydogshare

View on GitHub
public/assets/moment/cs-03421141bc4c36302ba3ae64cf4266f0a31a04bc1579c15d2fa4edb4b984ad9e.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function translate has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function translate(number, withoutSuffix, key, isFuture) {
        var result = number + ' ';
        switch (key) {
            case 's':  // a few seconds / in a few seconds / a few seconds ago
                return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';

    Avoid too many return statements within this function.
    Open

                        return result + 'měsíci';

      Avoid too many return statements within this function.
      Open

                          return result + (plural(number) ? 'dny' : 'dní');

        Avoid too many return statements within this function.
        Open

                            return result + (plural(number) ? 'roky' : 'let');

          Avoid too many return statements within this function.
          Open

                              return result + 'lety';

            Avoid too many return statements within this function.
            Open

                                return result + 'dny';

              Avoid too many return statements within this function.
              Open

                                  return result + (plural(number) ? 'měsíce' : 'měsíců');

                There are no issues that match your filters.

                Category
                Status