https://github.com/sonarsource/sonarlint-omnisharp
https://github.com/sonarsource/sonarlint-omnisharp
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sonarsource/sonarlint-omnisharp
- Owner: SonarSource
- License: lgpl-3.0
- Created: 2021-05-31T14:06:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-06-23T08:54:37.000Z (about 1 year ago)
- Last Synced: 2025-06-23T09:29:33.871Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 638 KB
- Stars: 4
- Watchers: 18
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# SonarLint Omnisharp Plugin
Replacement for SonarC# that leverages OmniSharp to run our Roslyn analyzer
[](https://cirrus-ci.com/github/SonarSource/sonarlint-omnisharp)
[](https://next.sonarqube.com/sonarqube/dashboard?id=sonarlint-omnisharp-dotnet)
[](https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.sonarlint.omnisharp%3Asonarlint-omnisharp-parent)
## License
Copyright 2025 SonarSource.
Licensed under the [GNU Lesser General Public License, Version 3.0](http://www.gnu.org/licenses/lgpl.txt)
## Overview
The project consists of two components:
* a .NET project that produces an assembly that plugs in to OmniSharp
* a Java project that produces a Sonar plugin jar that will be consumed by SonarLint in Rider and VSCode
## Building locally
The Azure pipeline builds, tests and packages both components.
Use the following commands to build locally:
### Download OmniSharp fork
`mvn generate-resources -Pdownload-omnisharp-for-building`
### Build .NET solution
Set the `ARTIFACTORY_USER` (your Sonar email) and `ARTIFACTORY_PASSWORD` (your repox credentials) environment variables.
You may need to restart your computer after these variables are set.
`dotnet build omnisharp-dotnet/SonarLint.OmniSharp.DotNet.Services.sln`
### Java plugin
The Java component depends on the .NET component, so the .NET component must be built first.
`mvn clean verify`