You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by pa...@apache.org on 2026/04/13 18:14:18 UTC

(lucenenet) branch master updated: pre-commit auto remove trailing whitespace from YAML files (#1247)

This is an automated email from the ASF dual-hosted git repository.

paulirwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new fef0925b5 pre-commit auto remove trailing whitespace from YAML files (#1247)
fef0925b5 is described below

commit fef0925b58597f41c7ffba37189814781abfaed8
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Tue Apr 14 04:14:12 2026 +1000

    pre-commit auto remove trailing whitespace from YAML files (#1247)
---
 .asf.yaml                                                 |  2 +-
 .build/azure-templates/install-dotnet-sdk.yml             |  4 ++--
 .build/azure-templates/publish-nuget-packages.yml         |  4 ++--
 .build/azure-templates/publish-test-results.yml           |  6 +++---
 .build/azure-templates/show-all-environment-variables.yml |  4 ++--
 .build/azure-templates/show-all-files.yml                 |  4 ++--
 .github/ISSUE_TEMPLATE/10_bug_report.yml                  | 10 +++++-----
 .github/ISSUE_TEMPLATE/20_feature_request.yml             |  2 +-
 .github/ISSUE_TEMPLATE/30_task.yml                        |  2 +-
 .github/ISSUE_TEMPLATE/config.yml                         |  2 +-
 .github/workflows/EditorConfig-Rules-Check.yml            |  8 ++++----
 .github/workflows/sonar.yml                               |  4 ++--
 .pre-commit-config.yaml                                   |  2 +-
 src/dotnet/tools/lucene-cli/docs/index/toc.yml            |  4 ++--
 websites/apidocs/toc/core/toc.yml                         |  2 +-
 15 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index ec1158e66..4ccda3b4c 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -24,7 +24,7 @@ github:
     - query
     - apache
     - hacktoberfest
-    
+
   features:
     # Enable wiki for documentation
     wiki: false
diff --git a/.build/azure-templates/install-dotnet-sdk.yml b/.build/azure-templates/install-dotnet-sdk.yml
index d7e0ac10d..090d9affd 100644
--- a/.build/azure-templates/install-dotnet-sdk.yml
+++ b/.build/azure-templates/install-dotnet-sdk.yml
@@ -5,9 +5,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/.build/azure-templates/publish-nuget-packages.yml b/.build/azure-templates/publish-nuget-packages.yml
index f5d7cec0f..c980e8439 100644
--- a/.build/azure-templates/publish-nuget-packages.yml
+++ b/.build/azure-templates/publish-nuget-packages.yml
@@ -5,9 +5,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/.build/azure-templates/publish-test-results.yml b/.build/azure-templates/publish-test-results.yml
index 521e1f0f6..5db89741c 100644
--- a/.build/azure-templates/publish-test-results.yml
+++ b/.build/azure-templates/publish-test-results.yml
@@ -5,9 +5,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -50,7 +50,7 @@ steps:
     $testResultsFileName = "$(Build.ArtifactStagingDirectory)/${{ parameters.testResultsArtifactName }}/${{ parameters.osName }}/${{ parameters.framework }}/${{ parameters.vsTestPlatform }}/$testProjectName/${{ parameters.testResultsFileName }}"
     $testResultsFileExists = Test-Path $testResultsFileName
     if ($testResultsFileExists) {
-    
+
         $reader = [System.Xml.XmlReader]::Create($testResultsFileName)
         try {
             $countersFound = $false
diff --git a/.build/azure-templates/show-all-environment-variables.yml b/.build/azure-templates/show-all-environment-variables.yml
index 9849efff2..abdba4c19 100644
--- a/.build/azure-templates/show-all-environment-variables.yml
+++ b/.build/azure-templates/show-all-environment-variables.yml
@@ -5,9 +5,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/.build/azure-templates/show-all-files.yml b/.build/azure-templates/show-all-files.yml
index 631a0512c..dee2590dc 100644
--- a/.build/azure-templates/show-all-files.yml
+++ b/.build/azure-templates/show-all-files.yml
@@ -5,9 +5,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/.github/ISSUE_TEMPLATE/10_bug_report.yml b/.github/ISSUE_TEMPLATE/10_bug_report.yml
index 4d0a52898..6878f74fb 100644
--- a/.github/ISSUE_TEMPLATE/10_bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/10_bug_report.yml
@@ -8,7 +8,7 @@ body:
       Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting **non-security** bugs, feature requests, and for general tasks to work on. Since Lucene.NET is mostly a line-by-line port from a **specific version** of Lucene, feature requests should generally be limited to improvements that make Lucene.NET interoperate with .NET better. Bugs that have already been reported and/or fixed in Lucene should generally not be reported again h [...]
 
       If you believe you have an issue that affects the SECURITY of the platform, please do NOT create an issue and instead follow the [ASF vulnerability reporting process](https://apache.org/security/#reporting-a-vulnerability). This is a project of the [Apache Software Foundation](https://apache.org) and follows the ASF [vulnerability handling process](https://apache.org/security/#vulnerability-handling).
-      
+
       For other types of questions, consider using [StackOverflow](https://stackoverflow.com) and applying the tags `lucene.net` AND `lucene` or join the [Lucene.NET user mailing list](https://lucenenet.apache.org/contributing/index.html#ask-a-question).
 - type: checkboxes
   attributes:
@@ -34,7 +34,7 @@ body:
     label: Steps To Reproduce
     description: |
       We ❤ code! Point us to a minimalistic project which reproduces this issue (repro) hosted in a public GitHub repo or alternatively, fork this repo and add a test that demontstates the issue.
-      
+
       We will close this issue if:
       - The repro project does not contain an index or a way to create one. You must provide some basic test data.
       - The repro project you share with us is complex. We can't investigate custom projects, so don't point us to such, please.
@@ -46,17 +46,17 @@ body:
   attributes:
     label: Exceptions (if any)
     description: Include the exception you get when facing this issue.
-    placeholder: 
+    placeholder:
   validations:
     required: false
 - type: input
   attributes:
-    label: Lucene.NET Version 
+    label: Lucene.NET Version
     description: |
       Please provide the exact version of Lucene.NET you are using. Note that Lucene.NET 3.0.3 and earlier versions are no longer being maintained.
 - type: input
   attributes:
-    label: .NET Version 
+    label: .NET Version
     description: |
       Run `dotnet --version` in .NET Core or provide the version of .NET Framework, MAUI, Xamarin, Unity, UWP, or Mono you are using to run Lucene.NET.
 - type: input
diff --git a/.github/ISSUE_TEMPLATE/20_feature_request.yml b/.github/ISSUE_TEMPLATE/20_feature_request.yml
index 61f115f8b..42ef70d2b 100644
--- a/.github/ISSUE_TEMPLATE/20_feature_request.yml
+++ b/.github/ISSUE_TEMPLATE/20_feature_request.yml
@@ -6,7 +6,7 @@ body:
   attributes:
     value: |
       Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting **non-security** bugs, feature requests, and for general tasks to work on. Since Lucene.NET is mostly a line-by-line port from a **specific version** of Lucene, feature requests should generally be limited to improvements that make Lucene.NET interoperate with .NET better.
-      
+
       We should keep Lucene.NET version-aligned with Lucene for future porting efforts to go smoothly. Please **do not request features from newer versions of Lucene**. We will upgrade the entire project to get these features all at once when the API is stable. We have very little hope of maintaining the project if we don't have a version of Lucene to run to compare code execution with, so version compatibility takes precedence over features from newer versions.
 - type: checkboxes
   attributes:
diff --git a/.github/ISSUE_TEMPLATE/30_task.yml b/.github/ISSUE_TEMPLATE/30_task.yml
index aa3680f4f..6976766b4 100644
--- a/.github/ISSUE_TEMPLATE/30_task.yml
+++ b/.github/ISSUE_TEMPLATE/30_task.yml
@@ -8,7 +8,7 @@ body:
       Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting **non-security** bugs, feature requests, and for general tasks to work on. Since Lucene.NET is mostly a line-by-line port from a **specific version** of Lucene, feature requests should generally be limited to improvements that make Lucene.NET interoperate with .NET better.
 
       If you believe you have an issue that affects the SECURITY of the platform, please do NOT create an issue and instead follow the [ASF vulnerability reporting process](https://apache.org/security/#reporting-a-vulnerability). This is a project of the [Apache Software Foundation](https://apache.org) and follows the ASF [vulnerability handling process](https://apache.org/security/#vulnerability-handling).
-      
+
       For other types of questions, consider using [StackOverflow](https://stackoverflow.com) and applying the tags `lucene.net` AND `lucene` or join the [Lucene.NET user mailing list](https://lucenenet.apache.org/contributing/index.html#ask-a-question).
 - type: checkboxes
   attributes:
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 77f7ef7f3..5a8584be1 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -8,7 +8,7 @@ contact_links:
     about: Please ask usability questions on StackOverflow. Consider including BOTH the lucene.net tag and the lucene tag. Alternatively, join the Lucene.NET user mailing list by sending an email to user-subscribe@lucenenet.apache.org. Once signed up, you can submit your question to user@lucenenet.apache.org.
   - name: Join a Mailing List
     url:  https://lucenenet.apache.org/contributing/mailing-lists.html
-    about: Join a Lucene.NET mailing list to ask user questions, discuss the development or other aspects of Lucene.NET with our team, or to track commits and builds. 
+    about: Join a Lucene.NET mailing list to ask user questions, discuss the development or other aspects of Lucene.NET with our team, or to track commits and builds.
   - name: Issue with J2N
     url:  https://github.com/NightOwl888/J2N/issues/new/choose
     about: Please open issues relating to J2N in NightOwl888/J2N.
diff --git a/.github/workflows/EditorConfig-Rules-Check.yml b/.github/workflows/EditorConfig-Rules-Check.yml
index 545dd6a9c..a13b67f4d 100644
--- a/.github/workflows/EditorConfig-Rules-Check.yml
+++ b/.github/workflows/EditorConfig-Rules-Check.yml
@@ -14,19 +14,19 @@ jobs:
           curl -sSfL https://github.com/editorconfig-checker/editorconfig-checker/releases/latest/download/ec-linux-amd64.tar.gz -o ec.tar.gz
           mkdir -p ec-temp
           tar -xzf ec.tar.gz -C ec-temp
-          
+
           # Dynamically find the binary
           EC_PATH=$(find ec-temp -type f -name "ec-linux-amd64" -perm -111 | head -n 1)
-          
+
           if [ -z "$EC_PATH" ]; then
             echo "❌ Could not locate ec-linux-amd64 binary in archive"
             exit 1
           fi
-          
+
           # Move and rename to /usr/local/bin/ec
           sudo mv "$EC_PATH" /usr/local/bin/ec
           sudo chmod +x /usr/local/bin/ec
-          
+
           # Clean up the temp dir
           rm -rf ec-temp ec.tar.gz
 
diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
index c463b37a9..2b95d8ba0 100644
--- a/.github/workflows/sonar.yml
+++ b/.github/workflows/sonar.yml
@@ -5,9 +5,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License.  You may obtain a copy of the License at
-# 
+#
 #   http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index eec6aab5e..4b46c0007 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -52,7 +52,7 @@ repos:
       - id: trailing-whitespace
         name: run trailing-whitespace
         description: trims trailing whitespace
-        files: \.(md|xml)$
+        files: \.(md|xml|ya?ml)$
         args: [--markdown-linebreak-ext=md]
       - id: check-case-conflict
         name: run check-case-conflict
diff --git a/src/dotnet/tools/lucene-cli/docs/index/toc.yml b/src/dotnet/tools/lucene-cli/docs/index/toc.yml
index 428b5166d..b92bc2cd5 100644
--- a/src/dotnet/tools/lucene-cli/docs/index/toc.yml
+++ b/src/dotnet/tools/lucene-cli/docs/index/toc.yml
@@ -19,8 +19,8 @@
 - name: list-term-info
   href: list-term-info.md
 - name: merge
-  href: merge.md  
+  href: merge.md
 - name: split
-  href: split.md  
+  href: split.md
 - name: upgrade
   href: upgrade.md
diff --git a/websites/apidocs/toc/core/toc.yml b/websites/apidocs/toc/core/toc.yml
index 5519c2114..986ad80fd 100644
--- a/websites/apidocs/toc/core/toc.yml
+++ b/websites/apidocs/toc/core/toc.yml
@@ -1,3 +1,3 @@
-- name: Core  
+- name: Core
   href: ../../obj/docfx/api/core/toc.yml
   topicUid: Lucene.Net