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

SONARPY-2406 Fix coverage by moving files between packages #2208

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

ghislainpiot
Copy link
Contributor

@ghislainpiot ghislainpiot commented Dec 3, 2024

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Fix coverage by moving files between packages SONARPY-2406 Fix coverage by moving files between packages Dec 3, 2024
Copy link
Contributor

@joke1196 joke1196 left a comment

Choose a reason for hiding this comment

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

This looks good. I just have a not small suggestion about the refactoring of the code. that might make sense. I think it would make sense to move the SymbolVisitor as well. We could create tickets for these refactoring, WDYT?

@@ -31,7 +31,7 @@
import org.sonar.python.TestPythonVisitorRunner;

import static org.assertj.core.api.Assertions.assertThat;
import static org.sonar.plugins.python.TestUtils.mapToColumnMappingList;
import static org.sonar.plugins.python.NotebookTestUtils.mapToColumnMappingList;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at it, should we also move the highlighter to the frontend?

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 don't think we should do it in this ticket. The issue is that the tests require the creation of a PythonInputFile that depends on the Python class in the plugin. And for the file suffixes we need the key from the plugin

@ghislainpiot ghislainpiot merged commit efcd828 into master Dec 3, 2024
12 checks passed
@ghislainpiot ghislainpiot deleted the gp/fix-coverage branch December 3, 2024 15:52
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.

2 participants