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

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

Complexity

Total Complexity 4
Complexity/F 2

Size

Lines of Code 30
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 23
dl 0
loc 30
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.nn = factory()));
0 ignored issues
show
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...
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...
5
}(this, function () { 'use strict';
6
7
    var nn = {
8
        code: "nn",
9
        week: {
10
            dow: 1,
11
            doy: 4 // The week that contains Jan 4th is the first week of the year.
12
        },
13
        buttonText: {
14
            prev: "Førre",
15
            next: "Neste",
16
            today: "I dag",
17
            month: "Månad",
18
            week: "Veke",
19
            day: "Dag",
20
            list: "Agenda"
21
        },
22
        weekLabel: "Veke",
23
        allDayText: "Heile dagen",
24
        eventLimitText: "til",
25
        noEventsMessage: "Ingen hendelser å vise"
26
    };
27
28
    return nn;
29
30
}));
31