-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathtst.rs
More file actions
53 lines (52 loc) · 1.86 KB
/
tst.rs
File metadata and controls
53 lines (52 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
fn main() {
let mut x = 42;
x = x + 1; // lgtm
x = x + 1; // lgtm[rust/redundant-operation]
x = x + 1; // lgtm[rust/redundant-operation, rust/unused-value]
x = x + 1; // lgtm[@tag:nullness]
x = x + 1; // lgtm[@tag:nullness,rust/redundant-operation]
x = x + 1; // lgtm[@expires:2017-06-11]
x = x + 1; // lgtm[rust/redundant-operation] because I know better than lgtm
x = x + 1; // lgtm: blah blah
x = x + 1; // lgtm blah blah #falsepositive
x = x + 1; //lgtm [rust/redundant-operation]
x = x + 1; /* lgtm */
x = x + 1; // lgtm[]
x = x + 1; // lgtmfoo
x = x + 1; //lgtm
x = x + 1; // lgtm
x = x + 1; // lgtm [rust/redundant-operation]
x = x + 1; // foolgtm[rust/redundant-operation]
x = x + 1; // foolgtm
x = x + 1; // foo; lgtm
x = x + 1; // foo; lgtm[rust/redundant-operation]
x = x + 1; // foo lgtm
x = x + 1; // foo lgtm[rust/redundant-operation]
x = x + 1; // foo lgtm bar
x = x + 1; // foo lgtm[rust/redundant-operation] bar
x = x + 1; // LGTM!
x = x + 1; // LGTM[rust/redundant-operation]
x = x + 1; // lgtm[rust/redundant-operation] and lgtm[rust/unused-value]
x = x + 1; // lgtm[rust/redundant-operation]; lgtm
x = x + 1; /* lgtm[] */
x = x + 1; /* lgtm[rust/redundant-operation] */
x = x + 1; /* lgtm
*/
x = x + 1; /* lgtm
*/
x = x + 1; /* lgtm[@tag:nullness,rust/redundant-operation] */
x = x + 1; /* lgtm[@tag:nullness] */
// codeql[rust/redundant-operation]
x = x + 1;
// CODEQL[rust/redundant-operation]
x = x + 1;
// codeql[rust/redundant-operation] -- because I know better than codeql
x = x + 1;
/* codeql[rust/redundant-operation] */
x = x + 1;
/* codeql[rust/redundant-operation]
*/
x = x + 1;
x = x + 1; // codeql[rust/redundant-operation]
println!("{}", x);
}