Skip to content

Commit 0e63339

Browse files
authored
Added EditorConfig Style Enforcement via GitHub Actions (#1164)
* Lucene.Net.Support.Collections: Removed newline at the end of file for testing * Added EditorConfig checker to GitHub Workflows during PR * EditorConfig-Rules-Check.yml: Made installation of the editorconfig-checker more robust * EditorConfig-Rules-Check.yml: Fixed directory structure of editorconfig-checker binary location. * fix editorconfig check again * fixing editorconfig rules check install yet again * EditorConfig-Rules-Check.yml: Dynamically discover executable directory so we don't make assumptions about the archive directory structure. * .editorconfig: Changed .md files to use 2 space indents to match "normal" GitHub and Prettier rules. * .editorconfig: Added exclusions for .txt files in tests and all files in the lib/ directory (which contains 3rd party stuff) * .editorconfig: Enforce 2 space indentation in props,targets,csproj,fsproj,vbproj,and xml files * EditorConfig-Rules-Check.yml: Delete the temp folder, since the tool will check its own documentation files, which we don't want in the results * .editorconfig: Disable trim_trailing_whitespace for .yml files because it strips indented blank lines in scripts * .editorconfig: Fixd trim_trailing_whitespace for .yml files (comments are not supported after a config setting) * .editorconfig: Reorganized and commented better to keep related blocks of settings together (in particular, all of the settings that apply to .cs) * .editorconfig: .yml files quit functioning after reordering. Change to using separate [*.yml] and [*.yaml] sections * .editorconfig: Added .sln file type and several 3rd party and auto-generated exclusions where we don't care about formatting. * .editorconfig: Added exclusions for Phonetic language config files, the websites directory, and all .Designer.cs files, which are auto-generated. Fixed exclusions for package.md and overview.md to allow any directory. * .editorconfig: exclude the .idea directory * .editorconfig: Fixed exclusions to work from any starting directory. * .editorconfig: unset indent_style for all exclusions * .editorconfig: Disable resharper_enforce_empty_line_at_end_of_file rule on all excluded files * .editorconfig: Exclude LICENSE.txt files * SWEEP: Lucene.Net.Codecs: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Analysis.Kuromoji: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Analysis.OpenNLP: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Analysis.Phonetic: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Analysis.SmartCn: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Analyis.Stempel: Fixed whitespace to match .editorconfig * SWEEP: Lucene.Net.Benchmark: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Classification: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Expressions: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Facet: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Grouping: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Highlighter: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Join: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Memory: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Misc: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Queries: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.QueryParser: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Replicator: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Sandbox: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Spatial: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Suggest: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.TestFramework: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Analysis.Common: Fixed whitespace formatting to match .editorconfig * SWEEP: lucene-cli: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.CodeAnalysis.CSharp: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.CodeAnalysis.VisualBasic: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.ICU: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Replicator.AspNetCore: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Cli: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.CodeAnalysis: Fixed whitespace formatting to match .editorconfig * .editorconfig: Don't add a BOM to new files, as this only applies if we have legacy tooling that requires it. Some files specifically require no BOM, so having this set is a bit of a hazard. * SWEEP: Removed BOM from all .cs files * SWEEP: Lucene.Net.Tests._A-D: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests._E-I: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests._I-J: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests._J-S: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests_T-Z: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.AllProjects: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Analysis.Common: Fixed whitespace formatting to match .editorconfig * Lucene.Net.Analysis.Core.TestDuelingAnalyzers:assertEquals(): Removed unneeded ;, which was technically adding an extra line of code * SWEEP: Lucene.Net.Tests.Analysis.OpenNLP: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Analysis.Phonetic: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Analysis.Stempel: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Benchmark: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Classification: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Codecs: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Expressions: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Facet: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Grouping: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Highlighter: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Join: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Misc: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Queries: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.QueryParser: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Replicator: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Sandbox: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Spatial: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.Suggest: Fixed whitespace formatting to match .editorconfig * SWEEP: Lucene.Net.Tests.TestFramework: Fixed whitespace formatting to match .editorconfig * SWEEP: Removed trailing whitespace from all .cs code files (namely, in the comments) * SWEEP: Lucene.Net.Analysis.Common: Fixed left-padding spaces of constructor initializers. Also formatted many stemmer steps to be on multiple lines as they were upstream. * .editorconfig: Added exclusion for *.dat because these files are copied from Lucene * .editorconfig: Added exclusions for *.brk, *.nrm, and *.rbbi * .editorconfig: Added all file extensions in the project (as needed), excluding types that we definitely don't want to edit (such as files copied from upstream, generated files, and binary files). * .gitattributes: Fixed indentation and added .gitignore and .gitattributes rules * .editorconfig, .gitattributes: Removed BOM from these files, as this is not supported by all tooling (eclint doesn't support BOM) * .editorconfig: Attempting to remove starting directory to see if the psake assets are ignored as they should be * Revert ".editorconfig: Attempting to remove starting directory to see if the psake assets are ignored as they should be" This reverts commit 4a1bcab. * .editorconfig: Reverted exclusions to use unset instead of false for trim_trailing_whitespace and insert_final_newline * build, build.bat: Fixed whitespace rules to match .editorconfig * .editorconfig: Added more exclusions for TagSoup sourced files * Added .erec configuration file for editorconfig-checker tool * .erec: Changed disabled rule from Indentation to IndentSize (found conflicting info in the docs) * Renamed .erec to .editorconfig-checker.json (the new file name) * .editorconfig-checker.json: Fixed casing of SpacesAfterTabs to eliminate warning * .editorconfig: Added exclusions for .xml and .xslt files in tests and ChangeNotes.txt * Lucene.Net.Misc/Store: Converted all (excluded) .cs files to use spaces for indentation instead of tabs * .editorconfig: Added exclusions for .html files in tests * .editorconfig: Exclude .info files (Java proeperties file copied from Lucene for Morfologik) * .editorconfig: Added exclusion for stoptags.txt for Kuromoji * .editorconfig: Added exclusion for .resx files, since Visual Studio's designer doesn't respect .editorconfig rules when doing edits * .editorconfig-checker.json: Since the Visual Studio designer doesn't respect .editorconfig settings, added that extension for ignoring by the tool. Reverted change to make the exclusion solution-wide in case it is edited outside of VS manually. * SWEEP: Lucene.Net.Tests/Util/JunitCompat: Replaced tab indentation with spaces * .build/TestSerialization.targets: Removed trailing whitespace on UpdateRuntimeConfigProperty attributes * publish-nuget-packages.yml: Added final newline * show-all-environment-variables.yml: Added final newline * show-all-files.yml: Added final newline * .build/nuget.props: Added final newline * .build/release.targets: Removed trailing whitespace and added final newline * .config/dotnet-tools.json: Added final newline * .rat-excludes: Added final newline * ACKNOWLEDGEMENTS.txt: Removed trailing whitespace * Directory.Build.targets: Fixed indent style from tabs to spaces * .editorconfig-checker.json: Ignore formatting for .DotSettings files, since they may be auto-generated * MIGRATE.md: Added trailing newline * build.ps1: Removed trailing whitespace, added final newline * proj/build.msbuildproj: Added final newline * proj/github.msbuildproj: Added final newline * proj/websites.msbuildproj: Converted indentation tabs to spaces, added final newline * src/Directory.Build.props: Removed trailing whitespace, added final newline * src/Directory.Build.targets: Added final newline * Lucene.Net.Analysis.Hu.HungarianLightStemmer: Removed trailing whitespace * Lucene.Net.Analysis.No.NorwegianLightStemmer: Removed trailing whitespace * Lucene.Net.Analysis.SmartCn.csproj: Converted tab indentation to spaces * Lucene.Net.TestFramework/default-lucene.testSettings.json: Added final newline * Lucene.Net.Tests.Benchmark.csproj: Removed trailing whitespace * Lucene.Net.Tests.Queries.csproj: Removed trailing whitespace * Lucene.Net.Tests.Replicator.csproj: Removed trailing whitespace * Lucene.Net.Tests.Spatial.csproj: Removed trailing whitespace * Lucene.Net.Tests.TestFramework.DependencyInjection.csproj: Removed trailing whitspace * Lucene.Net.Tests.TestFramework.Configuration.lucene.testsettings.mock.json: Added final newline * Lucene.Net.Tests.TestFramework.Configuration.parent.lucene.testsettings.mock.json: Added final newline * Lucene.Net.Tests._A-D.csproj: Removed trailing whitespace, added final newline * Lucene.Net.Tests._E-I.csproj: Removed trailing whitespace, added final newline * Lucene.Net.Tests._I-J.csproj: Removed trailing whitespace, added final newline * Lucene.Net.Tests._T-Z.csproj: Removed trailing whitespace, added final newline * .editorconfig-checker.json: Added ignore rule for App.config file (I don't believe this file is in use anywhere) * Lucene.Net/readme-nuget.md: Added final newline * src/Docs/Directory.Build.props: Removed trailing whitespace, added final newline * src/docs/Directory.Build.targets: Added final newline * src/docs/DocumentationTools.sln: Removed trailing whitespace * src/docs/convert.ps1: Converted tab indentation to spaces, added final newline * src/docs/readme.md: Added final newline * src/dotnet/Dirctory.Build.props: Removed trailing whitespace, added final newline * src/dotnet/Lucene.Net.CodeAnalysis/Version.props: Removed trailing whitespace, added final newline * src/dotnet/Lucene.Net.CodeAnalysis/tools (install.ps1 + uninstall.ps1): Removed trailing whitespace, added final newline * src/dotnet/Lucene.Net.Replicator.AspNetCore/examples.md: Added final newline * Lucene.Net.Tests.ICU.csproj: Removed trailing whitespace * src/dotnet/tools/Directory.Build.props: Removed trailing whitespace, added final newline * src/dotnet/tools/Lucene.Net.Tests.Cli/Configuration/appsettings.json: Added final newline * src/dotnet/tools/lucene-cli/Properties/launchSettings.json: Added final newline * SWEEP: src/dotnet/tools/lucene-cli/docs: Added final newline to all index.md and toc.yml files * .editorconfig-checker.json: Added additional glob patterns because the tool doesn't seem to be matching them correctly * .github/workflows/EditorConfig-Rules-Check.yml: Turned on debug switch, removed use of deprecated set-output command * .editorconfig-checker.json: Fixed excludes to use regex instead of glob patterns * .editorconfig-checker.json: Fixed Exclude section (extra comma is not valid JSON) * .github/workflows/EditorConfig-Rules-Check.yml: Removed --debug switch from ec command * Lucene.Net.Tests._I-J.csproj: Added final newline * src/dotnet/tools/lucene-cli/docs/analysis (index.md + toc.yml): Added final newline * .gitignore: Normalized line endings to LF * .gitignore: Removed extra final newline * src/docs/.gitignore: Normalized line endings to LF to match .gitattributes and .editorconfig * .github/workflows/EditorConfig-Rules-Check.yml: Show IDE help inline with the editorconfig-checker errors, expanded by default. * Directory.Build.props: Removed final newline to force error and check output of workflow * Directory.Build.props: Added trailing whitespace to trigger an editorconfig-checker failure * Revert "Directory.Build.props: Added trailing whitespace to trigger an editorconfig-checker failure" This reverts commit b3dedc9. * .editorconfig: Changed the websites rule to only exclude the _site directories (the generated files) * SWEEP: websites: Added final newline to all .yml files (except generated files) * SWEEP: websites: Removed trailing whitespace in all .js files (mainly license headers, excluding generated code) * SWEEP: websites: Added final newline on all .tmpl files where it was missing * SWEEP: websites: Added final newline to all .partial files where it was missing * SWEEP: websites: Added final newline to all .md files where it was missing * SWEEP: websites: Removed trailing whitespace in all .css files * SWEEP: websites: Removed trailing whitespace in all .partial files * SWEEP: websites: Removed trailing whitespace in all .tmpl files * websites/site/site.ps1: Converted indentation from tabs to spaces * websites/site/lucenetemplate/web.config: Fixed indentation, removed trailing whitespace, added final newline * websites/site/lucenetemplate/styles/site.css: Converted indentation from tabs to spaces * websits/apidos/Templates/DefaultTemplateNoAssets/token.json: Added final newline * .editorconfig-checker.json: Added rule to ignore .htaccess file * .editorconfig: Added rule for .htaccess file editing (note we fix this file up on deployment) * websites/site/lucenetemplate/doap_Lucene_Net.rdf: Removed trailing whitespace, added final newline * .github/workflows/EditorConfig-Rules-Check.yml: Show a success message if the run was successful. Upon failure, ensure that the group is expanded by default * Lucene.Net.csproj: Added trailing whitespace to check editorconfig-checker error message * .github/workflows/EditorConfig-Rules-Check.yml: Removed group so error/success will be expanded by default * .github/workflows/EditorConfg-Rules-Check.yml: Removed message about how many files don't confirm to .editorconfig, since it is redundant * Revert "Lucene.Net.csproj: Added trailing whitespace to check editorconfig-checker error message" This reverts commit c0a61cd. * .editorconfig: Removed exclusion rule for LICENSE.txt file * LICENSE.txt: Fixed all .editorconfig rules * Lucene.Net.sln: Added .editorconfig-checker.json, .gitattributes, and .gitignore files to Solution Items * .editorconfig: Removed exclusion for CHANGES.txt * Revert ".editorconfig: Removed exclusion for CHANGES.txt" This reverts commit 1b767c4. * website: Added editorconfig-setup page to configure .editorconfig support in common IDEs and other text editors. Added step to CONTRIBUTING.md to review that section before contributing.
1 parent 0f4e398 commit 0e63339

3,683 files changed

Lines changed: 13159 additions & 12073 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.build/TestSerialization.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
<DotNet_8_0_OrGreater Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' And ($(TargetFramework.StartsWith('net8.')) Or $(TargetFramework.StartsWith('net9.')) Or ($(TargetFramework.StartsWith('net')) And $(TargetFramework.IndexOf('.')) > 4))">true</DotNet_8_0_OrGreater>
9393
</PropertyGroup>
9494

95-
<UpdateRuntimeConfigProperty
96-
RuntimeConfigFile="$(RuntimeConfigFile)"
97-
PropertyName="System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization"
98-
PropertyValue="true"
95+
<UpdateRuntimeConfigProperty
96+
RuntimeConfigFile="$(RuntimeConfigFile)"
97+
PropertyName="System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization"
98+
PropertyValue="true"
9999
Condition="Exists('$(RuntimeConfigFile)') And '$(DotNet_8_0_OrGreater)' == 'true'" />
100100
</Target>
101101

.build/azure-templates/publish-nuget-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ steps:
6969
!${{ parameters.testSymbolFilesConvention }}
7070
IndexSources: true
7171
PublishSymbols: true
72-
SymbolServerType: TeamServices
72+
SymbolServerType: TeamServices

.build/azure-templates/show-all-environment-variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ steps:
2525
$keyvalue = $var.Value
2626
Write-Output "${keyname}: $keyvalue"
2727
}
28-
displayName: 'Show all Environment Variables'
28+
displayName: 'Show all Environment Variables'

.build/azure-templates/show-all-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919

2020
steps:
2121
- pwsh: cd ..;dir -r | Where-Object {$_.PsIsContainer -eq $false} | % { $_.FullName }
22-
displayName: 'Show all Files'
22+
displayName: 'Show all Files'

.build/nuget.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ This package is part of the Lucene.NET project: https://www.nuget.org/packages/L
4848
<None Include="$(SolutionDir)NOTICE.txt" Pack="true" PackagePath="$(PackageNoticeFile)"/>
4949
<None Include="$(SolutionDir)branding\logo\lucene-net-icon-128x128.png" Pack="true" PackagePath="$(PackageIcon)"/>
5050
</ItemGroup>
51-
</Project>
51+
</Project>

.build/release.targets

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
-->
2121
<Project>
22-
22+
2323
<PropertyGroup Label="Release Audit Tool Settings">
2424
<RatDirectory>$(SolutionDir)lib/apache-rat</RatDirectory>
2525
<RatFile>$(RatDirectory)/apache-rat-0.13.jar</RatFile>
@@ -38,11 +38,11 @@
3838
<Exec Command="$(RatCommand)" />
3939
<Message Importance="high" Text="Release Audit Complete"/>
4040
</Target>
41-
41+
4242
<PropertyGroup Label="Apache Subversion Settings">
4343
<SvnDevUrl>https://dist.apache.org/repos/dist/dev/lucenenet/</SvnDevUrl>
4444
<SvnDevDirectory>$(SolutionDir)svn-dev</SvnDevDirectory>
45-
45+
4646
<SvnReleaseUrl>https://dist.apache.org/repos/dist/release/lucenenet/</SvnReleaseUrl>
4747
<SvnReleaseDirectory>$(SolutionDir)svn-release</SvnReleaseDirectory>
4848
</PropertyGroup>
@@ -98,7 +98,7 @@
9898
<Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --armor --output $(ReleaseFileName).src.zip.asc --detach-sig $(ReleaseFileName).src.zip" />
9999
<Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --print-md MD5 $(ReleaseFileName).src.zip &gt; $(ReleaseFileName).src.zip.md5" />
100100
<Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --print-md SHA512 $(ReleaseFileName).src.zip &gt; $(ReleaseFileName).src.zip.sha512" />
101-
101+
102102
<!-- Verify signatures -->
103103
<Message Importance="high" Text=""/>
104104
<Message Importance="high" Text="Verifying Signature of $(ReleaseFileName).bin.zip.asc..."/>
@@ -111,9 +111,9 @@
111111
<Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --verify $(ReleaseFileName).src.zip.asc $(ReleaseFileName).src.zip" />
112112
<Message Importance="high" Text=""/>
113113
<Exec WorkingDirectory="$(SvnDevDirectory)\$(PackageVersion)" Command="gpg --verify --status-fd 1 $(ReleaseFileName).src.zip.asc $(ReleaseFileName).src.zip" />
114-
114+
115115
</Target>
116-
116+
117117
<PropertyGroup>
118118
<SvnDevKeysFile>$(SvnDevDirectory)\KEYS</SvnDevKeysFile>
119119
<SvnReleaseKeysFile>$(SvnReleaseDirectory)\KEYS</SvnReleaseKeysFile>
@@ -138,10 +138,10 @@
138138

139139
<Error Condition =" '%(_RequiredProperties.Value)'=='' "
140140
Text=" Missing required property [%(_RequiredProperties.Identity)]" />
141-
141+
142142
<Error Condition ="!Exists('$(SvnReleaseKeysFile)')"
143143
Text=" Keys file '$(SvnReleaseKeysFile)' doesn't exist in lucenenet/release" />
144-
144+
145145
<!-- Copy KEYS file from release to dev -->
146146
<Message Importance="high" Text="Source: $(SvnReleaseKeysFile), Destination: $(SvnDevDirectory)"/>
147147
<Copy SourceFiles="$(SvnReleaseKeysFile)" DestinationFolder="$(SvnDevDirectory)" OverwriteReadOnlyFiles="true" />
@@ -155,45 +155,45 @@
155155
<_RequiredProperties Include="ReleaseFileName">
156156
<Value>$(ReleaseFileName)</Value>
157157
</_RequiredProperties>
158-
158+
159159
<_RequiredProperties Include="PackageVersion">
160160
<Value>$(PackageVersion)</Value>
161161
</_RequiredProperties>
162162
</ItemGroup>
163163

164164
<Error Condition =" '%(_RequiredProperties.Value)'=='' "
165165
Text=" Missing required property [%(_RequiredProperties.Identity)]" />
166-
166+
167167
<Error Condition ="!Exists('$(SvnDevDirectory)\$(PackageVersion)')"
168168
Text=" Directory '$(SvnDevDirectory)\$(PackageVersion)' doesn't exist in lucenenet/dev" />
169169
<Error Condition ="!Exists('$(SvnDevKeysFile)')"
170170
Text=" Keys file '$(SvnDevKeysFile)' doesn't exist in lucenenet/dev" />
171171

172172
<Message Importance="high" Text="Releasing $(PackageVersion)..."/>
173-
173+
174174
<!-- Discard local changes -->
175175
<Exec WorkingDirectory="$(SvnDevDirectory)" Command="svn revert --recursive ./" Condition=" '$(SvnDevDiscardLocalChanges)' == 'true' " />
176176
<Exec WorkingDirectory="$(SvnReleaseDirectory)" Command="svn revert --recursive ./" Condition=" '$(SvnReleaseDiscardLocalChanges)' == 'true' " />
177-
177+
178178
<!-- Copy KEYS file from dev to release -->
179179
<Message Importance="high" Text="Source: $(SvnDevKeysFile), Destination: $(SvnReleaseDirectory)"/>
180180
<Copy SourceFiles="$(SvnDevKeysFile)" DestinationFolder="$(SvnReleaseDirectory)" OverwriteReadOnlyFiles="true" />
181-
181+
182182
<!-- Copy release assets -->
183183
<Message Importance="high" Text="Source: @(SvnDevReleaseFiles), Destination: $(SvnReleaseDirectory)\$(PackageVersion)"/>
184184
<Copy SourceFiles="@(SvnDevReleaseFiles)" DestinationFolder="$(SvnReleaseDirectory)\$(PackageVersion)" OverwriteReadOnlyFiles="true" />
185-
185+
186186
<!-- Delete from svn dev -->
187187
<Exec WorkingDirectory="$(SvnDevDirectory)" Command="svn delete $(PackageVersion)\ --force" />
188188
<Exec WorkingDirectory="$(SvnDevDirectory)" Command="svn commit -m &quot;Removed $(ReleaseFileName) from dev/lucenenet&quot;" />
189-
189+
190190
<!-- Add to svn release -->
191191
<Exec WorkingDirectory="$(SvnReleaseDirectory)" Command="svn add $(PackageVersion)\" />
192192
<Exec WorkingDirectory="$(SvnReleaseDirectory)" Command="svn commit -m &quot;Added $(ReleaseFileName) to release/lucenenet&quot;" />
193193

194194
<Message Importance="high" Text="Release of $(PackageVersion) Complete"/>
195195
</Target>
196-
196+
197197
<Target Name="AppendSignature" Label="Uses GnuPG to append a user's signature to the KEYS file in release/lucenenet" DependsOnTargets="CheckoutRelease" Condition="'$(AssemblyName)' == 'Lucene.Net' ">
198198
<ItemGroup>
199199
<_RequiredProperties Include="ApacheID">
@@ -203,14 +203,14 @@
203203

204204
<Error Condition =" '%(_RequiredProperties.Value)'=='' "
205205
Text=" Missing required property [%(_RequiredProperties.Identity)]" />
206-
206+
207207
<Error Condition ="!Exists('$(SvnReleaseKeysFile)')"
208208
Text=" Keys file '$(SvnReleaseKeysFile)' doesn't exist in lucenenet/release" />
209-
209+
210210
<!-- Add signature to release/lucenenet/KEYS file -->
211211
<Exec WorkingDirectory="$(SvnReleaseDirectory)" Command="(gpg --list-sigs $(ApacheID) &amp;&amp; gpg --armor --export $(ApacheID)) >> KEYS" />
212212
<Exec WorkingDirectory="$(SvnReleaseDirectory)" Command="svn commit -m &quot;Added Key for $(ApacheID)&quot;" />
213-
213+
214214
</Target>
215-
216-
</Project>
215+
216+
</Project>

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"rollForward": false
1111
}
1212
}
13-
}
13+
}

0 commit comments

Comments
 (0)