assets/js/src/core.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 18
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
c 2
b 0
f 0
nc 1
dl 0
loc 18
rs 10
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 2

2 Functions

Rating   Name   Duplication   Size   Complexity  
A exports.settings.init 0 10 1
A $(document).ready 0 3 1
1
var $ = window.jQuery;
2
3
exports.settings = {
4
    init: function() {
5
        
6
        Amarkal.settings.fields.init();
0 ignored issues
show
Bug introduced by
The variable Amarkal seems to be never declared. If this is a global, consider adding a /** global: Amarkal */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
7
        Amarkal.settings.search.init();
8
        Amarkal.settings.sections.init();
9
10
        // This is called after the onChange/hide/show event listeners are added since some events
11
        // are triggered when the form is instantiated
12
        $('#amarkal-settings-form').amarkalUIForm();
13
    }
14
};
15
16
$(document).ready(function(){
17
    Amarkal.settings.init();
0 ignored issues
show
Bug introduced by
The variable Amarkal seems to be never declared. If this is a global, consider adding a /** global: Amarkal */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
18
});
19