Skip to content

Commit

Permalink
[Cleanup] - Code cleanup on ChangeLog.sln
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Sep 30, 2024
1 parent 3cdba81 commit 0f8c863
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
<EnableMicrosoftExtensionsConfigurationBinderSourceGenerator>true</EnableMicrosoftExtensionsConfigurationBinderSourceGenerator>
<EnablePackageValidation>true</EnablePackageValidation>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<Features>strict;flow-analysis</Features>
<GenerateNeutralResourcesLanguageAttribute>true</GenerateNeutralResourcesLanguageAttribute>
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
Expand All @@ -29,7 +30,6 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<UseSystemResourceKeys>true</UseSystemResourceKeys>
<WarningsAsErrors />
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
</PropertyGroup>
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
Expand Down
2 changes: 1 addition & 1 deletion src/Credfeto.ChangeLog/ChangeLogChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,6 @@ private static string GetChangeLogDirectory(string changeLogFileName)
private static string FindChangeLogPositionInRepo(Repository repo, string changeLogFileName)
{
return changeLogFileName[repo.Info.WorkingDirectory.Length..]
.Replace(oldChar: '\\', newChar: '/');
.Replace(oldChar: '\\', newChar: '/');
}
}
7 changes: 6 additions & 1 deletion src/Credfeto.ChangeLog/ChangeLogUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ private static int FindRemovePosition(List<string> changeLog, string type, strin
findSection: false);
}

private static int FindMatchPosition(List<string> changeLog, string type, Func<string, bool> isMatch, Func<int, int> exactMatchAction, Func<int, int> emptySectionAction, bool findSection)
private static int FindMatchPosition(List<string> changeLog,
string type,
Func<string, bool> isMatch,
Func<int, int> exactMatchAction,
Func<int, int> emptySectionAction,
bool findSection)
{
bool foundUnreleased = false;

Expand Down
2 changes: 1 addition & 1 deletion src/Credfeto.ChangeLog/Credfeto.ChangeLog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
<EnableMicrosoftExtensionsConfigurationBinderSourceGenerator>true</EnableMicrosoftExtensionsConfigurationBinderSourceGenerator>
<EnablePackageValidation>true</EnablePackageValidation>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<Features>strict;flow-analysis</Features>
<GenerateNeutralResourcesLanguageAttribute>true</GenerateNeutralResourcesLanguageAttribute>
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
Expand Down Expand Up @@ -31,7 +32,6 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<UseSystemResourceKeys>true</UseSystemResourceKeys>
<WarningsAsErrors />
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
</PropertyGroup>
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
Expand Down

0 comments on commit 0f8c863

Please sign in to comment.