Skip to content

Commit

Permalink
Set package README, license expression, and development dependency (#41)
Browse files Browse the repository at this point in the history
* Upgrade package license to expression

Using an expression for the well-known BSD-3 Clause license instead of a
URL (which makes it look like the package is using a custom license) and simplifes
compliance for users.

* Add package readme

* Mark package as a development dependency
  • Loading branch information
MattKotsenas authored Jun 3, 2024
1 parent cd02f75 commit 0fb11a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/
|-- Moq.Analyzers.nuspec
|-- README.md
|-- analyzers
| |-- dotnet
| | |-- cs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<id>Moq.Analyzers</id>
<version>********</version>
<authors>Andrey "Litee" Lipatkin</authors>
<licenseUrl>https://github.com/Litee/moq.analyzers/blob/master/LICENSE</licenseUrl>
<developmentDependency>true</developmentDependency>
<license type="expression">BSD-3-Clause</license>
<licenseUrl>https://licenses.nuget.org/BSD-3-Clause</licenseUrl>
<readme>README.md</readme>
<projectUrl>https://github.com/Litee/moq.analyzers</projectUrl>
<description>Roslyn analyzer that helps to write unit tests using Moq mocking library by highlighting typical errors and suggesting quick fixes. Port of Resharper extension to Roslyn. Find the full list of detected issues at project GitHub page.</description>
<releaseNotes>Upgraded to support Visual Studio 2019</releaseNotes>
Expand Down
5 changes: 4 additions & 1 deletion Source/Moq.Analyzers/Moq.Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@
<PropertyGroup>
<PackageId>Moq.Analyzers</PackageId>
<Authors>Andrey "Litee" Lipatkin</Authors>
<PackageLicenseUrl>https://github.com/Litee/moq.analyzers/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Litee/moq.analyzers</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Description>Roslyn analyzer that helps to write unit tests using Moq mocking library by highlighting typical errors and suggesting quick fixes. Port of Resharper extension to Roslyn. Find the full list of detected issues at project GitHub page.</Description>
<PackageReleaseNotes>Upgraded to support Visual Studio 2019</PackageReleaseNotes>
<Copyright>2015-2019 Andrey Lipatkin</Copyright>
<PackageTags>moq, mock, test, analyzers</PackageTags>
<DevelopmentDependency>true</DevelopmentDependency>
<NoPackageAnalysis>true</NoPackageAnalysis>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
Expand All @@ -62,6 +64,7 @@
</ItemGroup>

<ItemGroup>
<None Include="$(RepoRoot)\README.md" Pack="true" PackagePath="/"/>
<None Update="tools\*.ps1" CopyToOutputDirectory="Always" Pack="true" PackagePath="" />
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>
Expand Down

0 comments on commit 0fb11a7

Please sign in to comment.