jaxon-core/tests/src/js/function.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 3
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
wmc 3
mnd 0
bc 0
fnc 3
bpm 0
cpm 1
noi 6
1
jxn_my_first_function = function() { return jaxon.request({ type: 'func', name: 'my_first_function' }, { parameters: arguments }); };
0 ignored issues
show
Bug introduced by
The variable jxn_my_first_function seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.jxn_my_first_function.
Loading history...
Bug introduced by
The variable jaxon seems to be never declared. If this is a global, consider adding a /** global: jaxon */ 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...
2
jxn_my_alias_function = function() { return jaxon.request({ type: 'func', name: 'my_alias_function' }, { parameters: arguments, upload: 'html_field_id' }); };
0 ignored issues
show
Bug introduced by
The variable jxn_my_alias_function seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.jxn_my_alias_function.
Loading history...
Bug introduced by
The variable jaxon seems to be never declared. If this is a global, consider adding a /** global: jaxon */ 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...
3
jxn_my_third_function = function() { return jaxon.request({ type: 'func', name: 'my_third_function' }, { parameters: arguments }); };
0 ignored issues
show
Bug introduced by
The variable jaxon seems to be never declared. If this is a global, consider adding a /** global: jaxon */ 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...
Bug introduced by
The variable jxn_my_third_function seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.jxn_my_third_function.
Loading history...
4