Skip to content

Commit 68f8e17

Browse files
committed
Rust: Add a placeholder query + tests for unused variables query.
1 parent b7ad331 commit 68f8e17

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
/**
3+
* @name Unused variable
4+
* @description Unused variables may be an indication that the code is incomplete or has a typo.
5+
* @kind problem
6+
* @problem.severity recommendation
7+
* @precision high
8+
* @id rust/unused-variable
9+
* @tags maintainability
10+
*/
11+
12+
select 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| 1 |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queries/unusedentities/UnusedVariable.ql

0 commit comments

Comments
 (0)