Ensure CRLF stays out of the repo

Looks like I already failed that project a little :)
This commit is contained in:
Octavia Togami 2020-08-15 03:46:24 -07:00
parent 365ca1c6ad
commit 066771b2d1
No known key found for this signature in database
GPG Key ID: CC364524D1983C99
3 changed files with 42 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# CRLF -> LF
59ccc0a5af93d4b3d97df2bd6b946bba5a6d5c5c
# Checkstyle
eb52afa296fffc4397e2f4014c7eb8094f50240e
# CRLF -> LF
59ccc0a5af93d4b3d97df2bd6b946bba5a6d5c5c
# Checkstyle
eb52afa296fffc4397e2f4014c7eb8094f50240e

35
.gitattributes vendored
View File

@ -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

View File

@ -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>