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

Restoring Comment Matcher Functionality #1388

Merged
merged 19 commits into from
Jan 22, 2024
Merged

Restoring Comment Matcher Functionality #1388

merged 19 commits into from
Jan 22, 2024

Conversation

maximiliankaul
Copy link
Contributor

@maximiliankaul maximiliankaul commented Dec 1, 2023

CommentMatcher functionality was not implemented in the recent python rewrite. This pr restores the functionality.

Reference to the old code:

def parse_comments(frontend, code, filename, tud):

@maximiliankaul
Copy link
Contributor Author

@konradweiss this restores the old logic. However the test fails. I think it's somewhere in the CommentMatcher logic, as the debugger says there are only 7 comments created while I see 10 calls to the CommentMatcher.

maximiliankaul and others added 8 commits December 4, 2023 11:35
…g to be resiliant to _ast naming in other Python versions
…onally trigger when a # was found, reverting tests. The test still fails, apparently ParameterDeclarations have no location and so the assignment of comment to node based on the missing location fails
…nction. However an alternative would be the location spanning over all childrens locations
…it is to inaccurat, for location and code, revert block using the function as representative raw node
@konradweiss konradweiss marked this pull request as ready for review January 17, 2024 15:05
@konradweiss konradweiss requested a review from oxisto as a code owner January 17, 2024 15:05
@oxisto oxisto enabled auto-merge (squash) January 19, 2024 13:05
Copy link

sonarcloud bot commented Jan 22, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

48.1% Coverage on New Code (required ≥ 75%)

See analysis details on SonarCloud

@oxisto oxisto merged commit db97923 into main Jan 22, 2024
3 of 4 checks passed
@oxisto oxisto deleted the mk/pythonCommentMatcher branch January 22, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants