-
Notifications
You must be signed in to change notification settings - Fork 145
SCAN4NET-976 Hackathon 2025: Make project.assets.json available in analyzers and java ProjectSensor's #2894
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
base: master
Are you sure you want to change the base?
Conversation
|
| /// <summary> | ||
| /// Data class to describe a single project configuration for our analyzers. | ||
| /// </summary> | ||
| /// <remarks>The class is XML-serializable. Each change in this class has to be propageted to it's counterpart in sonar-dotnet analyzers.</remarks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here, need to be synced also with
https://github.com/SonarSource/sonar-sbom/blob/5dbd5991e5332ca85e30b0524d981f5230dc43bb/frontend/csharp/analyzers/SonarAnalyzer.Sbom.CSharp/Scanner/ProjectConfiguration.cs#L19-L20
| ProjectType = IsTest ? ProjectType.Test : ProjectType.Product, | ||
| TargetFramework = TargetFramework | ||
| TargetFramework = TargetFramework, | ||
| ProjectAssetsFile = ProjectAssetsFile, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the file path available in the Roslyn analyzer.
| <Value>$(SonarProjectTelemetryFilePath)</Value> | ||
| </SonarQubeSetting> | ||
| <SonarQubeSetting Include="sonar.$(SQLanguage).analyzer.projectAssetsFile" Condition="Exists($(ProjectAssetsFile))"> | ||
| <Value>$(ProjectAssetsFile)</Value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the ProjectAssetsFile path available in the Java ProjectSensor.

SCAN4NET-976