|
1 | 1 | ---
|
2 |
| -source: crates/ruff_linter/src/rules/ruff/mod.rs |
| 2 | +source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs |
3 | 3 | ---
|
4 |
| -RUF011.py:17:2: RUF011 Dictionary comprehension uses static key: `"key"` |
| 4 | +B035.py:17:2: B035 Dictionary comprehension uses static key: `"key"` |
5 | 5 | |
|
6 | 6 | 16 | # Errors
|
7 | 7 | 17 | {"key": value.upper() for value in data}
|
8 |
| - | ^^^^^ RUF011 |
| 8 | + | ^^^^^ B035 |
9 | 9 | 18 | {True: value.upper() for value in data}
|
10 | 10 | 19 | {0: value.upper() for value in data}
|
11 | 11 | |
|
12 | 12 |
|
13 |
| -RUF011.py:18:2: RUF011 Dictionary comprehension uses static key: `True` |
| 13 | +B035.py:18:2: B035 Dictionary comprehension uses static key: `True` |
14 | 14 | |
|
15 | 15 | 16 | # Errors
|
16 | 16 | 17 | {"key": value.upper() for value in data}
|
17 | 17 | 18 | {True: value.upper() for value in data}
|
18 |
| - | ^^^^ RUF011 |
| 18 | + | ^^^^ B035 |
19 | 19 | 19 | {0: value.upper() for value in data}
|
20 | 20 | 20 | {(1, "a"): value.upper() for value in data} # Constant tuple
|
21 | 21 | |
|
22 | 22 |
|
23 |
| -RUF011.py:19:2: RUF011 Dictionary comprehension uses static key: `0` |
| 23 | +B035.py:19:2: B035 Dictionary comprehension uses static key: `0` |
24 | 24 | |
|
25 | 25 | 17 | {"key": value.upper() for value in data}
|
26 | 26 | 18 | {True: value.upper() for value in data}
|
27 | 27 | 19 | {0: value.upper() for value in data}
|
28 |
| - | ^ RUF011 |
| 28 | + | ^ B035 |
29 | 29 | 20 | {(1, "a"): value.upper() for value in data} # Constant tuple
|
30 | 30 | 21 | {constant: value.upper() for value in data}
|
31 | 31 | |
|
32 | 32 |
|
33 |
| -RUF011.py:20:2: RUF011 Dictionary comprehension uses static key: `(1, "a")` |
| 33 | +B035.py:20:2: B035 Dictionary comprehension uses static key: `(1, "a")` |
34 | 34 | |
|
35 | 35 | 18 | {True: value.upper() for value in data}
|
36 | 36 | 19 | {0: value.upper() for value in data}
|
37 | 37 | 20 | {(1, "a"): value.upper() for value in data} # Constant tuple
|
38 |
| - | ^^^^^^^^ RUF011 |
| 38 | + | ^^^^^^^^ B035 |
39 | 39 | 21 | {constant: value.upper() for value in data}
|
40 | 40 | 22 | {constant + constant: value.upper() for value in data}
|
41 | 41 | |
|
42 | 42 |
|
43 |
| -RUF011.py:21:2: RUF011 Dictionary comprehension uses static key: `constant` |
| 43 | +B035.py:21:2: B035 Dictionary comprehension uses static key: `constant` |
44 | 44 | |
|
45 | 45 | 19 | {0: value.upper() for value in data}
|
46 | 46 | 20 | {(1, "a"): value.upper() for value in data} # Constant tuple
|
47 | 47 | 21 | {constant: value.upper() for value in data}
|
48 |
| - | ^^^^^^^^ RUF011 |
| 48 | + | ^^^^^^^^ B035 |
49 | 49 | 22 | {constant + constant: value.upper() for value in data}
|
50 | 50 | 23 | {constant.attribute: value.upper() for value in data}
|
51 | 51 | |
|
52 | 52 |
|
53 |
| -RUF011.py:22:2: RUF011 Dictionary comprehension uses static key: `constant + constant` |
| 53 | +B035.py:22:2: B035 Dictionary comprehension uses static key: `constant + constant` |
54 | 54 | |
|
55 | 55 | 20 | {(1, "a"): value.upper() for value in data} # Constant tuple
|
56 | 56 | 21 | {constant: value.upper() for value in data}
|
57 | 57 | 22 | {constant + constant: value.upper() for value in data}
|
58 |
| - | ^^^^^^^^^^^^^^^^^^^ RUF011 |
| 58 | + | ^^^^^^^^^^^^^^^^^^^ B035 |
59 | 59 | 23 | {constant.attribute: value.upper() for value in data}
|
60 | 60 | 24 | {constant[0]: value.upper() for value in data}
|
61 | 61 | |
|
62 | 62 |
|
63 |
| -RUF011.py:23:2: RUF011 Dictionary comprehension uses static key: `constant.attribute` |
| 63 | +B035.py:23:2: B035 Dictionary comprehension uses static key: `constant.attribute` |
64 | 64 | |
|
65 | 65 | 21 | {constant: value.upper() for value in data}
|
66 | 66 | 22 | {constant + constant: value.upper() for value in data}
|
67 | 67 | 23 | {constant.attribute: value.upper() for value in data}
|
68 |
| - | ^^^^^^^^^^^^^^^^^^ RUF011 |
| 68 | + | ^^^^^^^^^^^^^^^^^^ B035 |
69 | 69 | 24 | {constant[0]: value.upper() for value in data}
|
70 | 70 | 25 | {tokens: token for token in tokens}
|
71 | 71 | |
|
72 | 72 |
|
73 |
| -RUF011.py:24:2: RUF011 Dictionary comprehension uses static key: `constant[0]` |
| 73 | +B035.py:24:2: B035 Dictionary comprehension uses static key: `constant[0]` |
74 | 74 | |
|
75 | 75 | 22 | {constant + constant: value.upper() for value in data}
|
76 | 76 | 23 | {constant.attribute: value.upper() for value in data}
|
77 | 77 | 24 | {constant[0]: value.upper() for value in data}
|
78 |
| - | ^^^^^^^^^^^ RUF011 |
| 78 | + | ^^^^^^^^^^^ B035 |
79 | 79 | 25 | {tokens: token for token in tokens}
|
80 | 80 | |
|
81 | 81 |
|
82 |
| -RUF011.py:25:2: RUF011 Dictionary comprehension uses static key: `tokens` |
| 82 | +B035.py:25:2: B035 Dictionary comprehension uses static key: `tokens` |
83 | 83 | |
|
84 | 84 | 23 | {constant.attribute: value.upper() for value in data}
|
85 | 85 | 24 | {constant[0]: value.upper() for value in data}
|
86 | 86 | 25 | {tokens: token for token in tokens}
|
87 |
| - | ^^^^^^ RUF011 |
| 87 | + | ^^^^^^ B035 |
88 | 88 | |
|
89 | 89 |
|
90 | 90 |
|
0 commit comments