rest/rest-url.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 11
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
mnd 1
bc 1
fnc 1
dl 0
loc 11
rs 10
bpm 1
cpm 2
noi 1
c 0
b 0
f 0
1
// Rest
2
// formEvent
3
function restUrl(url, classname, error, success) {
4
5
    var rest_form = new Rest(url, '?', error, success);
0 ignored issues
show
Bug introduced by
The variable Rest seems to be never declared. If this is a global, consider adding a /** global: Rest */ 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...
6
7
    var forms = document.getElementsByTagName('form');
8
9
    // console.log(forms);
10
    for (var i = 0; i < forms.length; i++) {
11
        formEvent(forms[i], rest_form, error, success);
12
    }
13
}
14