Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Public API to Engage the Scan Tool and Verify the Output #27

Open
MohamedSabthar opened this issue Oct 24, 2024 · 1 comment
Open

Comments

@MohamedSabthar
Copy link
Member

Problem

Currently, the scan tool doesn't implement any public API for testing. We need a way to test domain-specific static code rules when they are added to the Ballerina library via a compiler plugin.

Related issue: ballerina-platform/ballerina-library#7293

Proposed Solution

Introduce a public API. Research is needed for the design and implementation.

Alternatives

No response

Version

No response

@MaryamZi
Copy link
Member

Compiler plugins perform the scan tool related analysis only when the ScanContext is added to the CompilerContext, which isn't really straightforward to do, so implementing a TestScanContext and TestReported isn't an option either.

Atm, we'll have to do a bal scan to get the analysis to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants