-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
Description
$Subject
The scan rules implemented in the libraries expects a complete compilation result to do the analysis. Due to compilation errors, the compilation result can be invalid or incomplete. This can produce unexpected errors in the libraries' scan rule analysis flow.
If this is an expected behaviour. How do we avoid the unexpected errors?
Option 1: Implement the analysis flow by considering this and having redundant checks which can avoid the unexpected errors
Option 2: Check for compilation errors before hand and not running the scan rule analysis of the library
Steps to Reproduce
Try to run bal scan for the following content:
import ballerina/http;
service /api on new http:Listener(8080) {
resource function default hello() returns string {
// Return value is missing
}
}Version
Ballerina SwanLake Update 12
Environment Details (with versions)
No response
ThisaruGuruge