ballerina-platform / static-code-analysis-tool

Tool for performing static code analysis for Ballerina projects.
Apache License 2.0
3 stars 5 forks source link

Add support for loading static analyzer plugins #15

Closed Xenowa closed 5 months ago

Xenowa commented 5 months ago

Purpose

Add functionalities to:

[[analyzer]]
org = "exampleOrg"
name = "example_module_static_code_analyzer"

[[analyzer]]
org = "ballerina"
name = "example_module_static_code_analyzer"
version = "0.1.0"

[[analyzer]]
org = "ballerinax"
name = "example_module_static_code_analyzer"
version = "0.1.0"
repository = "local"
        RuleID                                           | Rule Severity | Rule Description 
        ------------------------------------------------------------------------------------
        ballerina:1                                      | CODE_SMELL    | Avoid checkpanic 
        ballerina/example_module_static_code_analyzer:1  | CODE_SMELL    | rule 1           
        ballerina/example_module_static_code_analyzer:2  | BUG           | rule 2           
        ballerina/example_module_static_code_analyzer:3  | VULNERABILITY | rule 3           
        ballerinax/example_module_static_code_analyzer:1 | CODE_SMELL    | rule 1           
        ballerinax/example_module_static_code_analyzer:2 | BUG           | rule 2           
        ballerinax/example_module_static_code_analyzer:3 | VULNERABILITY | rule 3           
        exampleOrg/example_module_static_code_analyzer:1 | CODE_SMELL    | rule 1           
        exampleOrg/example_module_static_code_analyzer:2 | BUG           | rule 2           
        exampleOrg/example_module_static_code_analyzer:3 | VULNERABILITY | rule 3 
sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 79.79798% with 40 lines in your changes missing coverage. Please review.

Project coverage is 82.31%. Comparing base (098a3cd) to head (64b9fb9).

:exclamation: Current head 64b9fb9 differs from pull request most recent head 2f257a0

Please upload reports for the commit 2f257a0 to get more accurate results.

Files Patch % Lines
...va/io/ballerina/scan/internal/ProjectAnalyzer.java 76.36% 15 Missing and 11 partials :warning:
.../main/java/io/ballerina/scan/internal/ScanCmd.java 35.71% 7 Missing and 2 partials :warning:
...c/main/java/io/ballerina/scan/utils/ScanUtils.java 88.88% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## static-code-analysis-tool #15 +/- ## =============================================================== - Coverage 82.41% 82.31% -0.10% - Complexity 115 146 +31 =============================================================== Files 14 17 +3 Lines 489 639 +150 Branches 53 75 +22 =============================================================== + Hits 403 526 +123 - Misses 59 76 +17 - Partials 27 37 +10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.