roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

How to create custom rules

Open eagle3052 opened this issue 2 years ago • 5 comments
trafficstars

I didn't find any more information, can someone tell me?

eagle3052 avatar Jan 17 '23 05:01 eagle3052

Hi,

please see https://github.com/JosefPihrt/Roslynator/blob/main/docs/Configuration.md

josefpihrt avatar Jan 17 '23 22:01 josefpihrt

Hi,

please see https://github.com/JosefPihrt/Roslynator/blob/main/docs/Configuration.md

thank you for your reply. But I want to add some custom rules, is this possible?

eagle3052 avatar Jan 18 '23 01:01 eagle3052

Do you want to write your own analyzers (rules)?

josefpihrt avatar Jan 19 '23 05:01 josefpihrt

Do you want to write your own analyzers (rules)?

Yes. if i can. . .

eagle3052 avatar Jan 19 '23 06:01 eagle3052

Yes you can write your own custom rules. Follow these steps.

  1. Write your analyzer
  2. Create a nuget package.
  3. Convert this package to jar package with sonarqube rosyln plugin generator
  4. Deploy this jar file to your Sonar server extension path.

BlackNinja1903 avatar Jun 14 '23 18:06 BlackNinja1903