generated from dailydevops/dotnet-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automation to create a valid copyright, additional analyzer NED… (
#20) * feat: Automation to create a valid copyright, additional analyzer NED0009 * style: Reformatted code * fix: CodeFactor Apply fixes --------- Co-authored-by: codefactor-io <support@codefactor.io>
- Loading branch information
1 parent
09f1316
commit 1b6acd3
Showing
10 changed files
with
117 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Project configuration information NED0009 | ||
|
||
The project file is missing or has an incomplete configuration for the `<CopyrightYearStart />` tag. This tag is essential as it indicates the year when the copyright for the project began. An incomplete or absent `<CopyrightYearStart />` can lead to legal ambiguities regarding ownership and copyright claims. | ||
|
||
To resolve this issue, please follow these steps: | ||
|
||
- Open the Project File: Locate and open your project file (e.g., .csproj for C# projects). | ||
|
||
- Add or Update the `<CopyrightYearStart />` Tag: Ensure that the `<CopyrightYearStart />` tag is present and correctly formatted. | ||
|
||
It should look like this: | ||
```xml | ||
<CopyrightYearStart>2021</CopyrightYearStart> | ||
``` | ||
|
||
- Validate the Configuration: After making changes, validate the project file to ensure there are no syntax errors. | ||
|
||
- Rebuild the Project: Once the configuration is corrected, rebuild your project to confirm that the issue is resolved. | ||
|
||
If you continue to experience problems, consider checking the documentation for your specific project type or reaching out to your development team for further assistance. Proper configuration of the `<CopyrightYearStart />` tag is essential for specifying the year when the copyright for the project began. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/NetEvolve.Defaults.Analyzer/AnalyzerReleases.Unshipped.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
; Unshipped analyzer release | ||
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md | ||
### New Rules | ||
|
||
Rule ID | Category | Severity | Notes | ||
--------|----------|----------|------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
<Project> | ||
|
||
<PropertyGroup Label="NuGet Audit"> | ||
<NuGetAudit Condition="'$(NuGetAudit)' == ''">true</NuGetAudit> | ||
<NuGetAuditMode Condition="'$(NuGetAuditMode)' == ''">all</NuGetAuditMode> | ||
<NuGetAuditLevel Condition="'$(NuGetAuditLevel)' == ''">low</NuGetAuditLevel> | ||
<WarningsAsErrors Condition="$(ContinuousIntegrationBuild) == 'true' OR '$(Configuration)' == 'Release'">(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildThisFileDirectory)SupportCopyright.targets" Condition="'$(DisableSupportCopyrightTargets)' != 'true'" /> | ||
<Import Project="$(MSBuildThisFileDirectory)SupportNuGetAudit.targets" Condition="'$(DisableSupportNuGetAuditTargets)' != 'true'" /> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project TreatAsLocalProperty="_CopyrightYearStart;_CopyrightInternal"> | ||
|
||
<PropertyGroup Label="CopyrightAutomation" Condition="'$(Copyright)' == ''"> | ||
<_CopyrightYearStart Condition="'$(CopyrightYearStart)' == ''">$([System.DateTime]::UtcNow.Year)</_CopyrightYearStart> | ||
<_CopyrightYearStart Condition="'$(CopyrightYearStart)' != ''">$(CopyrightYearStart)</_CopyrightYearStart> | ||
<_CopyrightInternal>$([System.DateTime]::UtcNow.Year)</_CopyrightInternal> | ||
|
||
<Copyright>Copyright @ $(Company) $(_CopyrightYearStart)</Copyright> | ||
<Copyright Condition="'$(_CopyrightInternal)' > '$(_CopyrightYearStart)'">$(Copyright) - $(_CopyrightInternal)</Copyright> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project> | ||
|
||
<PropertyGroup Label="NuGet Audit"> | ||
<NuGetAudit Condition="'$(NuGetAudit)' == ''">true</NuGetAudit> | ||
<NuGetAuditMode Condition="'$(NuGetAuditMode)' == ''">all</NuGetAuditMode> | ||
<NuGetAuditLevel Condition="'$(NuGetAuditLevel)' == ''">low</NuGetAuditLevel> | ||
<WarningsAsErrors Condition="$(ContinuousIntegrationBuild) == 'true' OR '$(Configuration)' == 'Release'">(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors> | ||
</PropertyGroup> | ||
|
||
</Project> |