angelakuo/citydogshare

View on GitHub
public/assets/moment/sk-556f815ee6d81f8a5d8f02fa656e1fbb078f0e3f037892bf67d36480b16361c5.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 sekúnd' : 'pár sekundami';

    Avoid too many return statements within this function.
    Open

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

      Avoid too many return statements within this function.
      Open

                          return result + 'dňami';

        Avoid too many return statements within this function.
        Open

                            return result + 'mesiacmi';

          Avoid too many return statements within this function.
          Open

                              return result + 'rokmi';

            Avoid too many return statements within this function.
            Open

                                return result + (plural(number) ? 'mesiace' : 'mesiacov');

              Avoid too many return statements within this function.
              Open

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

                There are no issues that match your filters.

                Category
                Status