{"id":30674446,"url":"https://github.com/soloplan/resharper-clt-plugin","last_synced_at":"2025-09-01T07:09:28.752Z","repository":{"id":31497602,"uuid":"128073709","full_name":"Soloplan/resharper-clt-plugin","owner":"Soloplan","description":"SonarQube plugin for ReSharper command line tools.","archived":false,"fork":false,"pushed_at":"2025-08-12T05:57:48.000Z","size":435,"stargazers_count":14,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-12T07:23:12.583Z","etag":null,"topics":["csharp","inspectcode","resharper","sonarqube","sonarqube-plugin","sonarqube-scanner"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Soloplan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-04T14:25:30.000Z","updated_at":"2025-08-12T05:56:02.000Z","dependencies_parsed_at":"2022-08-07T16:30:20.618Z","dependency_job_id":null,"html_url":"https://github.com/Soloplan/resharper-clt-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/Soloplan/resharper-clt-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soloplan%2Fresharper-clt-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soloplan%2Fresharper-clt-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soloplan%2Fresharper-clt-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soloplan%2Fresharper-clt-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soloplan","download_url":"https://codeload.github.com/Soloplan/resharper-clt-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soloplan%2Fresharper-clt-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273086471,"owners_count":25043339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","inspectcode","resharper","sonarqube","sonarqube-plugin","sonarqube-scanner"],"created_at":"2025-09-01T07:09:27.879Z","updated_at":"2025-09-01T07:09:28.732Z","avatar_url":"https://github.com/Soloplan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/Soloplan/resharper-clt-plugin.svg?branch=master)](https://travis-ci.com/Soloplan/resharper-clt-plugin)\n# SonarQube ReSharper CLT Plugin\nA SonarQube plugin for the ReSharper Command Line Tools.\n\n## Description\nThis plugin enables the analysis of C# and VisualBasic.NET source files contained in .NET projects using the output of the InspectCode [JetBrains ReSharper Command Line Tool](https://www.jetbrains.com/resharper/features/command-line.html).\n* Supports the most recent version of the [JetBrains ReSharper Command Line Tools](https://www.jetbrains.com/resharper/download/index.html#section=resharper-clt) (at least version 2020.1.3)\n* Compatible with [SonarQube 7.9.x (LTS)](https://www.sonarqube.org/downloads/)\n* Compatible with the [SonarC# Plugin](https://docs.sonarqube.org/pages/viewpage.action?pageId=1441900) in version 7.5\n* Compatible with the [SonarVB Plugin (Visual Basic .NET)](https://docs.sonarqube.org/display/PLUG/SonarVB) in version 5.2\n\n## Properties declared/used by this plugin\n|    Property     |   Description  |\n| --------------- | -------------- |\n| `resharper.clt.solutionFile`     | The path to the Visual Studio solution file (`.sln`) parsed by the InspectCode command line tool. |\n| `resharper.clt.cs.reportPath`    | Used when analyzing C# projects. Defines the path to the XML report file generated by the InspectCode command line tool to be parsed by the plugin. |\n| `resharper.clt.vbnet.reportPath` | Used when analyzing VisualBasic.NET projects. Defines the path to the XML report file generated by the InspectCode command line tool to be parsed by the plugin. |\n| `resharper.clt.xsd.validation`   | Enables XML Schema validation of the XML report file generated by the InspectCode command line tool. (not yet working) |\n\n## How to use\nA more in-depth guide on how to analyze projects that are built using MSBuild can be found in article [Analyzing with SonarScanner for MSBuild](https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild) of the official SonarQube documentation.\n  1. Install the ReSharper Command Line Tools plugin (see [Installing a Plugin - SonarQube Documentation - Doc SonarQube](https://docs.sonarqube.org/display/SONAR/Installing+a+Plugin) for more details)\n  2. Enable at least one of the rules provided by the plugin in your quality profile (see [Quality Profiles](https://docs.sonarqube.org/display/SONAR/Quality+Profiles) for more details)\n  3. Open a command prompt, preferably the Developer Command prompt for Visual Studio\n  4. Navigate to the root folder of the project/solution you want to build\n  5. Execute the following steps:\n      1. Begin the SonarQube analysis and provide the values for the required properties \\\n         `SonarScanner.MSBuild.exe begin /k:\"sonarqube_project_key\" /n:\"sonarqube_project_name\" /d:sonar.login=\"%SONAR_LOGIN_TOKEN%\" /d:resharper.clt.cs.reportPath=\"inspectcode_result.xml\" /d:resharper.clt.solutionFile=\"%SOLUTION_FILE%\"`\n      2. Build the project \\\n         `msbuild.exe \"%SOLUTION_FILE\"`\n      3. Run ReSharper Command Line Tool `InspectCode.exe` \\\n         `inspectcode.exe /output=\"resharper.xml\" \"%SOLUTION_FILE%\"`\n      4. End the SonarQube analysis, which will upload the issues to the server \\\n         `SonarScanner.MSBuild.exe end /d:sonar.login=%SONAR_LOGIN_TOKEN%`\n\n## Configuration\nIt's possible to override the SonarSeverity for particular rules by providing a custom `sonarqube_rule_overrides.xml`. This can be either located in the base folder of the application or at a\nlocation specified with the environment variable: `SONAR_PLUGIN_INSPECTCODE_OVERRIDEFILE=C:\\config\\my-sonar-inspectcode-rule-override.xml`.\n\n## Updating the plugin for a new ReSharper version\nThe following command can be used to dump the rules into an XML file that is used by this plugin.\n```bat\ninspectcode.exe -f=\"xml\" --dumpIssuesTypes --output=\"inspectcode_issue_definitions.xml\" --no-buildin-settings \n```\n\nAfter dumping the new ruleset, it is mandatory to check all the new rules and adjust the `sonarqube_rule_overrides.xml` accordingly, to account for any rules that should be categorized differently by default.\n\n## License\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoloplan%2Fresharper-clt-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoloplan%2Fresharper-clt-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoloplan%2Fresharper-clt-plugin/lists"}