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

Use 1-based line numbers for RegexTransformer changes #759

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

drdavella
Copy link
Member

No description provided.

Copy link

sonarcloud bot commented Jul 30, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -27,6 +29,7 @@ def apply(
file_context: FileContext,
results: list[Result] | None,
) -> ChangeSet | None:
del results
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the significance of deleting this reference? Is it to communicate that this parameter is intentionally unused and only exists to satisfy the API requirements of the caller?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes that's right. It makes explicit to the to the type checker that this parameter is intentionally unused.

@drdavella drdavella added this pull request to the merge queue Jul 30, 2024
Merged via the queue into main with commit 9427529 Jul 30, 2024
13 checks passed
@drdavella drdavella deleted the fix-regex-linenos branch July 30, 2024 18:28
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.

3 participants