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

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

Complexity

Total Complexity 4
Complexity/F 2

Size

Lines of Code 27
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 4
mnd 2
bc 2
fnc 2
bpm 1
cpm 2
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.he = 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 he = {
8
        code: "he",
9
        dir: 'rtl',
10
        buttonText: {
11
            prev: "הקודם",
12
            next: "הבא",
13
            today: "היום",
14
            month: "חודש",
15
            week: "שבוע",
16
            day: "יום",
17
            list: "סדר יום"
18
        },
19
        allDayText: "כל היום",
20
        eventLimitText: "אחר",
21
        noEventsMessage: "אין אירועים להצגה",
22
        weekLabel: "שבוע"
23
    };
24
25
    return he;
26
27
}));
28