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

show rule that fails to convert #357

Merged
merged 1 commit into from
May 8, 2024
Merged

Conversation

juli1
Copy link
Collaborator

@juli1 juli1 commented May 8, 2024

What problem are you trying to solve?

When a rule fails to convert to a rule internal, we do not know what is the rule.

What is your solution?

Show the rule that fails.

Before

Error: cannot convert to rule internal

Caused by:
    Query error at 9:18. Invalid node type string_literal_content

After

Error: cannot convert csharp-best-practices/strings-with-one-char to rule internal

Caused by:
    Query error at 9:18. Invalid node type string_literal_content

@juli1 juli1 requested a review from dastrong May 8, 2024 02:01
@juli1 juli1 merged commit c3cc027 into main May 8, 2024
44 checks passed
@jasonforal jasonforal deleted the juli1/show-failing-converting-rule branch November 8, 2024 09:37
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