mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Add a test case for false negative switch lint rule
Summary: I tried to fixed it but I've given up. See rP958e6cd109f3. Test Plan: $ arc unit Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3449
This commit is contained in:
parent
cdb161a19a
commit
339cabedcc
1 changed files with 16 additions and 0 deletions
|
@ -48,6 +48,22 @@ switch ($x) {
|
|||
default:
|
||||
$x++;
|
||||
}
|
||||
|
||||
switch ($x) {
|
||||
case 1:
|
||||
while (true) {
|
||||
break;
|
||||
}
|
||||
// TODO: false negative
|
||||
case 2:
|
||||
switch ($y) {
|
||||
case 1:
|
||||
break;
|
||||
}
|
||||
// TODO: false negative
|
||||
}
|
||||
~~~~~~~~~~
|
||||
warning:41:3
|
||||
warning:48:3
|
||||
disabled:57:8
|
||||
disabled:63:8
|
||||
|
|
Loading…
Reference in a new issue