mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-18 12:34:20 +08:00
Ensure CRLF stays out of the repo
Looks like I already failed that project a little :)
This commit is contained in:
parent
365ca1c6ad
commit
066771b2d1
@ -1,4 +1,4 @@
|
||||
# CRLF -> LF
|
||||
59ccc0a5af93d4b3d97df2bd6b946bba5a6d5c5c
|
||||
# Checkstyle
|
||||
eb52afa296fffc4397e2f4014c7eb8094f50240e
|
||||
# CRLF -> LF
|
||||
59ccc0a5af93d4b3d97df2bd6b946bba5a6d5c5c
|
||||
# Checkstyle
|
||||
eb52afa296fffc4397e2f4014c7eb8094f50240e
|
||||
|
35
.gitattributes
vendored
35
.gitattributes
vendored
@ -1 +1,34 @@
|
||||
*.java diff=java
|
||||
* text=auto
|
||||
# Force Batch files to CRLF
|
||||
*.bat text=crlf
|
||||
|
||||
# Java sources
|
||||
*.java text diff=java
|
||||
*.kt text diff=java
|
||||
*.gradle text diff=java
|
||||
*.gradle.kts text diff=java
|
||||
|
||||
# These files are text and should be normalized (Convert crlf => lf)
|
||||
*.css text diff=css
|
||||
*.df text
|
||||
*.htm text diff=html
|
||||
*.html text diff=html
|
||||
*.js text
|
||||
*.jsp text
|
||||
*.jspf text
|
||||
*.jspx text
|
||||
*.properties text
|
||||
*.tld text
|
||||
*.tag text
|
||||
*.tagx text
|
||||
*.xml text
|
||||
|
||||
# These files are binary and should be left untouched
|
||||
# (binary is a macro for -text -diff)
|
||||
*.class binary
|
||||
*.dll binary
|
||||
*.ear binary
|
||||
*.jar binary
|
||||
*.so binary
|
||||
*.war binary
|
||||
*.jks binary
|
||||
|
@ -195,6 +195,10 @@ Checks based on Google Checks, modified for EngineHub.
|
||||
<module name="RegexpMultiline">
|
||||
<property name="format" value="^( +)@(Arg|Switch|Command)\(.*?\r?\n\1 {5,}"/>
|
||||
</module>
|
||||
<module name="RegexpMultiline">
|
||||
<property name="format" value="(?s:(\r\n|\r).*)"/>
|
||||
<property name="message" value="CRLF and CR line endings are prohibited, but this file uses them."/>
|
||||
</module>
|
||||
<module name="SuppressionFilter">
|
||||
<property name="file" value="${config_loc}/checkstyle-suppression.xml"/>
|
||||
</module>
|
||||
|
Loading…
Reference in New Issue
Block a user