File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed
src/queries/unusedentities
test/query-tests/unusedentities Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 33 * @description Unused values may be an indication that the code is incomplete or has a typo.
44 * @kind problem
55 * @problem.severity recommendation
6- * @precision high
6+ * @precision medium
77 * @id rust/unused-value
88 * @tags maintainability
99 */
1010
11- select 1 , "Variable is assigned a value that is never used."
11+ import rust
12+
13+ from Locatable e
14+ where none ( ) // TODO: implement query
15+ select e , "Variable is assigned a value that is never used."
Original file line number Diff line number Diff line change 33 * @description Unused variables may be an indication that the code is incomplete or has a typo.
44 * @kind problem
55 * @problem.severity recommendation
6- * @precision high
6+ * @precision medium
77 * @id rust/unused-variable
88 * @tags maintainability
99 */
1010
11- select 1 , "Variable is not used."
11+ import rust
12+
13+ from Locatable e
14+ where none ( ) // TODO: implement query
15+ select e , "Variable is not used."
Original file line number Diff line number Diff line change 1- | 1 | Variable is assigned a value that is never used. |
Original file line number Diff line number Diff line change 1- | 1 | Variable is not used. |
You can’t perform that action at this time.
0 commit comments