Skip to content

Commit

Permalink
Add SonarLint configuration and package generation settings
Browse files Browse the repository at this point in the history
This commit adds a SonarLint configuration file and updates the build properties for the DGMJR-IO SDK project. The new configuration sets up a connection to the SonarLint server and specifies the project key. Additionally, the build properties now include settings to generate a NuGet package during build and mark the project as NuGetized. These changes enable code analysis and simplify the packaging process.

Resolves: #123
  • Loading branch information
dgmjr committed Nov 23, 2023
1 parent a62acb3 commit f43a72c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sonarlint.connectedMode.project": {
"connectionId": "dgmjr-io",
"projectKey": "dgmjr-io_DgmjrSdk"
}
}
2 changes: 1 addition & 1 deletion src/Build/ItemDefinitionGroups.props
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<IncludeAssets>ContentFiles</IncludeAssets>
<IncludeAssets>ContentFiles</IncludeAssets>
<ExcludeAssets>Build; BuildMultitargeting; BuildTransitive; Compile; Runtime; Analyzers; Native</ExcludeAssets>
</SourceCodePackageReference>
</SourceCode>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<Usings>
Expand Down
2 changes: 2 additions & 0 deletions src/DgmjrSdk.nuproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<ProjectGuid>EB008C4C-9C3A-4498-A19D-34A42B6E2CE1</ProjectGuid>
<ProjectTypeGuid>FAE04EC0-301F-11D3-BF4B-00C04F79EFBC</ProjectTypeGuid>
<TargetFramework>netstandard1.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IsNuGetized>true</IsNuGetized>
</PropertyGroup>
<PropertyGroup>
<Title>The DGMJR-IO SDK</Title>
Expand Down

0 comments on commit f43a72c

Please sign in to comment.