From 034b910d57ffb1c47d002df139859d8dc0cd478a Mon Sep 17 00:00:00 2001 From: Octavia Togami Date: Sat, 15 Aug 2020 06:46:24 -0400 Subject: [PATCH] Ensure CRLF stays out of the repo Looks like I already failed that project a little :) (cherry picked from commit 066771b2d15748edc72095b75c4626bf445266aa) --- .git-blame-ignore-revs | 4 + .gitattributes | 36 ++- config/checkstyle/checkstyle.xml | 406 ++++++++++++++++--------------- 3 files changed, 243 insertions(+), 203 deletions(-) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000..eaebedf15 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,4 @@ +# CRLF -> LF +59ccc0a5af93d4b3d97df2bd6b946bba5a6d5c5c +# Checkstyle +eb52afa296fffc4397e2f4014c7eb8094f50240e diff --git a/.gitattributes b/.gitattributes index 4af28b5a7..93d8d6fbb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,34 @@ -*.java diff=java -#*.java merge=import-driver #TODO not implemented, I'm just using a merge tool instead \ No newline at end of file +* 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 diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index ab92f3bba..d080f62ec 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -1,201 +1,205 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +