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 more analysis warnings #4455

Merged
merged 12 commits into from
Dec 6, 2023
Merged

Add more analysis warnings #4455

merged 12 commits into from
Dec 6, 2023

Conversation

vdiez
Copy link
Contributor

@vdiez vdiez commented Dec 6, 2023

Fixes #4438

Added warnings on program creation failure and a summary of parsing errors

…lugins/javascript/JavaScriptPlugin.java

Co-authored-by: Ilia Kebets <104737176+ilia-kebets-sonarsource@users.noreply.github.com>
vdiez and others added 3 commits December 6, 2023 15:24
…lugins/javascript/bridge/AnalysisProcessor.java

Co-authored-by: Ilia Kebets <104737176+ilia-kebets-sonarsource@users.noreply.github.com>
…lugins/javascript/bridge/AnalysisWithProgram.java

Co-authored-by: Ilia Kebets <104737176+ilia-kebets-sonarsource@users.noreply.github.com>
…lugins/javascript/bridge/AnalysisWithWatchProgram.java

Co-authored-by: Ilia Kebets <104737176+ilia-kebets-sonarsource@users.noreply.github.com>
@@ -61,6 +61,7 @@

public class JavaScriptPlugin implements Plugin {

public static final String TYPESCRIPT_VERSION = "5.3.2";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add the test we discussed yesterday? the one that reads the package.json file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that the test in src/test/java/com/sonar/javascript/it/plugin/EslintCustomRulesTest.java was implicitly doing so, as the output that it checks comes from node. Do you still think it makes sense to do it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it does. If we remove that test, it would be nice to make sure that this assertion is verified.

vdiez and others added 4 commits December 6, 2023 15:28
…lugins/javascript/bridge/AnalysisWithProgram.java

Co-authored-by: Ilia Kebets <104737176+ilia-kebets-sonarsource@users.noreply.github.com>
Copy link
Contributor

@ilia-kebets-sonarsource ilia-kebets-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vdiez vdiez enabled auto-merge (squash) December 6, 2023 15:29
Copy link

sonarqube-next bot commented Dec 6, 2023

@vdiez vdiez merged commit 9f12830 into master Dec 6, 2023
18 checks passed
@vdiez vdiez deleted the analysis-warnings branch December 6, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better usage of AnalysisWarnings
2 participants