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

Fix CustomAnalyzer invocation #10473

Conversation

YuliiaKovalova
Copy link
Member

@YuliiaKovalova YuliiaKovalova commented Aug 1, 2024

Fixes #10475

Solution

In order to have the analyzer triggered, it had to be registered globally by SetupSingleAnalyzer invocation. Since it happens after having build-in rules registered, the separate call is added in RegisterCustomAnalyzer.

Notes

Remove extra RegisterCustomAnalyzer. It seems to be left after unfortunate merge.

Testing

Add e2e tests that respect .editorconfig and validate the actual custom analyzer run.

Copy link
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

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

Appart from comments - looks good

Copy link
Member

@surayya-MS surayya-MS left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@YuliiaKovalova YuliiaKovalova merged commit ecabc58 into dotnet:main Aug 6, 2024
10 checks passed
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.

[Bug]: Custom analyzer isn't invoked
3 participants