Rider IDE Create Custom Inspection. Make Attribute's target require specific access modifier
I've not found any info about createing custom inspections.
I've Attribute, that work only with public members
And if developer use another access modifier, I want to hightlight it in code
Is there any way to do this?
Please sign in to leave a comment.
Hello Dmitry,
If you are looking for a portable solution, you can write a custom Roslyn analyzer. As long as Roslyn Analyzer support is enabled in Rider, you will be able to use analysis results directly in IDE.
Alternatively, you can write a custom Rider plugin. There are a few resources you might find useful if you want to do this:
Let me know if it helps.