Passed
Push — master ( e95921...ddbd1b )
by Dimas
13:28 queued 05:15
created

etc/superuser/theme/index.js   A

Complexity

Total Complexity 5
Complexity/F 1.67

Size

Lines of Code 21
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 13
c 0
b 0
f 0
dl 0
loc 21
rs 10
wmc 5
mnd 2
bc 2
fnc 3
bpm 0.6666
cpm 1.6666
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ genCacheKey 0 3 5
1
$(document).ready(function () {
2
  $.ajax({
3
    url: "clean",
4
    method: "POST",
5
    data: {
6
      latest: "true",
7
    },
8
    success: function (res) {
9
      if (typeof res == "object") {
10
        if (res.hasOwnProperty("result")) {
11
          $("#lfile").html(res.result[0]);
12
          $("#ltime").html(res.result[1]);
13
        }
14
      }
15
    },
16
  });
17
});
18
19
function genCacheKey() {
20
  $("#keyCache").val(uuidv4());
21
}
22