-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Works under Linux...
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# project2 - with & and space | ||
|
||
The tests uses this folder as `workspaceRootPath` - and the folder name contains spaces and an ampersand. | ||
This might need to be quoted, depending on the operating system. | ||
The ampersand is often used as a conditional operator to execute two commands (AND logic). | ||
|
||
This tests issue [#181](https://github.com/ChuckJonas/vscode-apex-pmd/issues/181) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// test case for https://github.com/ChuckJonas/vscode-apex-pmd/issues/181 | ||
|
||
// Test apex that should return a single error | ||
public class Test { | ||
public Test() { | ||
while (true) { | ||
Account acc = [SELECT Id FROM Account]; // expected violation from rule: Performance-OperationWithLimitsInLoop | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters