Skip to content

Conversation

@martin-strecker-sonarsource
Copy link
Contributor

@martin-strecker-sonarsource martin-strecker-sonarsource commented Oct 7, 2025

@martin-strecker-sonarsource martin-strecker-sonarsource changed the title Make project.assets.json available in analyzers and java ProjectSensor's Hackathon 2025: Make project.assets.json available in analyzers and java ProjectSensor's Oct 7, 2025
@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Hackathon 2025: Make project.assets.json available in analyzers and java ProjectSensor's SCAN4NET-976 Make project.assets.json available in analyzers and java ProjectSensor's Oct 7, 2025
@martin-strecker-sonarsource martin-strecker-sonarsource changed the title SCAN4NET-976 Make project.assets.json available in analyzers and java ProjectSensor's SCAN4NET-976 Hackathon 2025: Make project.assets.json available in analyzers and java ProjectSensor's Oct 7, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 7, 2025

/// <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>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ProjectType = IsTest ? ProjectType.Test : ProjectType.Product,
TargetFramework = TargetFramework
TargetFramework = TargetFramework,
ProjectAssetsFile = ProjectAssetsFile,
Copy link
Contributor Author

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>
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant