You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"text": "Unused variable, import, function or class"
15
+
},
16
+
"fullDescription": {
17
+
"text": "Unused variables, imports, functions or classes may be a symptom of a bug and should be examined carefully."
18
+
},
19
+
"defaultConfiguration": {
20
+
"level": "note"
21
+
},
22
+
"properties": {
23
+
"tags": ["maintainability"],
24
+
"kind": "problem",
25
+
"precision": "very-high",
26
+
"name": "Unused variable, import, function or class",
27
+
"description": "Unused variables, imports, functions or classes may be a symptom of a bug\n and should be examined carefully.",
28
+
"id": "js/unused-local-variable",
29
+
"problem.severity": "recommendation"
30
+
}
31
+
}]
32
+
}
33
+
},
34
+
"results": [{
35
+
"ruleId": "js/unused-local-variable",
36
+
"ruleIndex": 0,
37
+
"message": {
38
+
"text": "Unused variable foo."
39
+
},
40
+
"locations": [{
41
+
"physicalLocation": {
42
+
"artifactLocation": {
43
+
"uri": "main.js",
44
+
"uriBaseId": "%SRCROOT%",
45
+
"index": 0
46
+
},
47
+
"region": {
48
+
"startLine": 2,
49
+
"startColumn": 7,
50
+
"endColumn": 10
51
+
}
52
+
}
53
+
}],
54
+
"partialFingerprints": {
55
+
"primaryLocationLineHash": "39fa2ee980eb94b0:1",
56
+
"primaryLocationStartColumnFingerprint": "4"
57
+
}
58
+
}],
59
+
"columnKind": "utf16CodeUnits",
60
+
"properties": {
61
+
"semmle.formatSpecifier": "2.1.0",
62
+
"semmle.sourceLanguage": "java"
63
+
}
64
+
},
65
+
{
66
+
"tool" : {
67
+
"driver" : {
68
+
"name" : "CodeQL command-line toolchain",
69
+
"organization" : "GitHub",
70
+
"semanticVersion" : "2.0.0",
71
+
"rules" : [ {
72
+
"id" : "js/unused-local-variable",
73
+
"name" : "js/unused-local-variable",
74
+
"shortDescription" : {
75
+
"text" : "Unused variable, import, function or class"
76
+
},
77
+
"fullDescription" : {
78
+
"text" : "Unused variables, imports, functions or classes may be a symptom of a bug and should be examined carefully."
79
+
},
80
+
"defaultConfiguration" : {
81
+
"level": "note"
82
+
},
83
+
"properties" : {
84
+
"tags" : [ "maintainability" ],
85
+
"kind" : "problem",
86
+
"precision" : "very-high",
87
+
"name" : "Unused variable, import, function or class",
88
+
"description" : "Unused variables, imports, functions or classes may be a symptom of a bug\n and should be examined carefully.",
89
+
"id" : "js/unused-local-variable",
90
+
"problem.severity" : "recommendation"
91
+
}
92
+
},
93
+
{
94
+
"id": "js/inconsistent-use-of-new",
95
+
"name": "js/inconsistent-use-of-new",
96
+
"shortDescription": {
97
+
"text": "Inconsistent use of 'new'"
98
+
},
99
+
"fullDescription": {
100
+
"text": "If a function is intended to be a constructor, it should always be invoked with 'new'. Otherwise, it should always be invoked as a normal function, that is, without 'new'."
0 commit comments