Passed
Push — master ( 38fb8e...f6b156 )
by Andreas
24:23
created

static/org.openpsa.calendar/fullcalendar-4.4.0/core/locales/uk.js   A

Complexity

Total Complexity 5
Complexity/F 1.67

Size

Lines of Code 32
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 24
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 5
mnd 2
bc 2
fnc 3
bpm 0.6666
cpm 1.6666
noi 2
1
(function (global, factory) {
2
    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
    typeof define === 'function' && define.amd ? define(factory) :
4
    (global = global || self, (global.FullCalendarLocales = global.FullCalendarLocales || {}, global.FullCalendarLocales.uk = factory()));
0 ignored issues
show
Comprehensibility introduced by
Usage of the sequence operator is discouraged, since it may lead to obfuscated code.

The sequence or comma operator allows the inclusion of multiple expressions where only is permitted. The result of the sequence is the value of the last expression.

This operator is most often used in for statements.

Used in another places it can make code hard to read, especially when people do not realize it even exists as a seperate operator.

This check looks for usage of the sequence operator in locations where it is not necessary and could be replaced by a series of expressions or statements.

var a,b,c;

a = 1, b = 1,  c= 3;

could just as well be written as:

var a,b,c;

a = 1;
b = 1;
c = 3;

To learn more about the sequence operator, please refer to the MDN.

Loading history...
Best Practice introduced by
If you intend to check if the variable self is declared in the current environment, consider using typeof self === "undefined" instead. This is safe if the variable is not actually declared.
Loading history...
5
}(this, function () { 'use strict';
6
7
    var uk = {
8
        code: "uk",
9
        week: {
10
            dow: 1,
11
            doy: 7 // The week that contains Jan 1st is the first week of the year.
12
        },
13
        buttonText: {
14
            prev: "Попередній",
15
            next: "далі",
16
            today: "Сьогодні",
17
            month: "Місяць",
18
            week: "Тиждень",
19
            day: "День",
20
            list: "Порядок денний"
21
        },
22
        weekLabel: "Тиж",
23
        allDayText: "Увесь день",
24
        eventLimitText: function (n) {
25
            return "+ще " + n + "...";
26
        },
27
        noEventsMessage: "Немає подій для відображення"
28
    };
29
30
    return uk;
31
32
}));
33