Skip to content

Commit 23dc977

Browse files
committed
add a severity to incompleteswitchoverenum.ql to fix a compiler warning
1 parent e83cc59 commit 23dc977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/ql/examples/snippets/incompleteswitchoverenum.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @name Incomplete switch over enum
33
* @description A switch statement of enum type should explicitly reference each
44
* of the members of that enum.
5+
* @severity warning
56
* @kind problem
67
* @id go/examples/incomplete-switch
78
*/

0 commit comments

Comments
 (0)