This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push:
new 954c31e3d [#2488] chore: add .gitattributes file for line ending
normalization and file… (#2574)
954c31e3d is described below
commit 954c31e3d0f18c17ac038c54057adeb94d3bf5ef
Author: Lenny Primak <[email protected]>
AuthorDate: Sun Feb 22 10:02:14 2026 -0600
[#2488] chore: add .gitattributes file for line ending normalization and
file… (#2574)
---
.gitattributes | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/checkstyle.xml | 2 +-
2 files changed, 73 insertions(+), 1 deletion(-)
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..3635ba71f
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,72 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# 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
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Auto detect text files and normalize line endings to LF
+* text=auto eol=lf
+
+# Java source files
+*.java text eol=lf
+*.kt text eol=lf
+*.groovy text eol=lf
+
+# XML and configuration files
+*.xml text eol=lf
+*.properties text eol=lf
+*.yml text eol=lf
+*.yaml text eol=lf
+pom.xml text eol=lf
+
+# Shell scripts
+*.sh text eol=lf
+*.bash text eol=lf
+
+# Windows scripts
+*.bat text eol=crlf
+*.cmd text eol=crlf
+*.ps1 text eol=crlf
+
+# Documentation
+*.md text eol=lf
+*.txt text eol=lf
+
+# Binary files
+*.jar binary
+*.war binary
+*.ear binary
+*.class binary
+*.so binary
+*.dll binary
+
+# Images
+*.png binary
+*.jpg binary
+*.jpeg binary
+*.gif binary
+*.ico binary
+*.svg binary
+
+# Archives
+*.zip binary
+*.tar binary
+*.gz binary
+*.7z binary
+
+# Fonts
+*.ttf binary
+*.eot binary
+*.woff binary
+*.woff2 binary
diff --git a/src/checkstyle.xml b/src/checkstyle.xml
index 680538f9e..5066e6d8c 100644
--- a/src/checkstyle.xml
+++ b/src/checkstyle.xml
@@ -65,7 +65,7 @@
<!-- Checks whether files end with a new line. -->
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
<module name="NewlineAtEndOfFile">
- <property name="lineSeparator" value="system"/>
+ <property name="lineSeparator" value="lf"/>
</module>
<!-- Checks that property files contain the same keys. -->