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/10/17 02:14:35 UTC

(lucenenet) branch master updated: Configure linting for `.cff` files (#1493)

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 2bf2fdb51 Configure linting for `.cff` files (#1493)
2bf2fdb51 is described below

commit 2bf2fdb51cccef8d07791cb245504f3d85133c94
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Sat Oct 17 12:14:29 2026 +1000

    Configure linting for `.cff` files (#1493)
    
    Co-authored-by: Paul Irwin <pa...@gmail.com>
---
 .editorconfig           | 4 ++++
 .pre-commit-config.yaml | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.editorconfig b/.editorconfig
index 41e01171d..cb687f014 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -45,6 +45,10 @@ trim_trailing_whitespace = false
 indent_size = 2
 trim_trailing_whitespace = false
 
+# Citation files are in YAML format
+[*.cff]
+indent_size = 2
+
 # ========================================
 # XML, MSBuild files
 # ========================================
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 879e97842..86a6a32f3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -88,12 +88,12 @@ repos:
       - id: end-of-file-fixer
         name: run end-of-file-fixer
         description: makes sure files end in a newline and only a newline
-        files: \.(cs|md|toml)$
+        files: \.(cff|cs|md|toml)$
         priority: 35
       - id: trailing-whitespace
         name: run trailing-whitespace
         description: trims trailing whitespace
-        files: \.(bat|config|json|md|props|ps1|rdf|targets|tmpl|toml|xml|ya?ml)$
+        files: \.(bat|cff|config|json|md|props|ps1|rdf|targets|tmpl|toml|xml|ya?ml)$
         args: [--markdown-linebreak-ext=md]
         priority: 30
       - id: check-ast