From 72ee206fb4bc4b4a1be0ca13f3dcc09f57f7a450 Mon Sep 17 00:00:00 2001 From: Prabhas Kurapati Date: Thu, 23 Nov 2023 19:05:02 -0800 Subject: [PATCH 1/2] added initial files Signed-off-by: Prabhas Kurapati --- .editorconfig | 30 ++++++++++++++++++++++++++++++ .gitattributes | 12 ++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..47a00525b7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,30 @@ +# EditorConfig: http://editorconfig.org/ + +root = true + +[*] +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space + +[*.gradle] +indent_size = 2 + +[*.groovy] +indent_size = 4 + +[*.java] +indent_size = 4 + +[*.json] +indent_size = 2 + +[*.sh] +indent_size = 2 + +[*.{yml,yaml}] +indent_size = 2 + +[*.{xsd,xml}] +indent_size = 4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..65f9099815 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +* text eol=lf +*.bat binary +*.zip binary +*.exe binary +*.epub binary +*.pdf binary +*.vsdx binary +*.doc binary +*.bcfks binary +*.crt binary +*.p12 binary +*.txt text=auto From 017bfff339b2e790802d7063adb9062a790a1c24 Mon Sep 17 00:00:00 2001 From: Prabhas Kurapati Date: Thu, 23 Nov 2023 19:09:05 -0800 Subject: [PATCH 2/2] changed gitattributes to be a java template Signed-off-by: Prabhas Kurapati --- .gitattributes | 50 ++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/.gitattributes b/.gitattributes index 65f9099815..fe82933711 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,12 +1,38 @@ -* text eol=lf -*.bat binary -*.zip binary -*.exe binary -*.epub binary -*.pdf binary -*.vsdx binary -*.doc binary -*.bcfks binary -*.crt binary -*.p12 binary -*.txt text=auto +# Java sources +*.java text diff=java +*.kt text diff=kotlin +*.groovy text diff=java +*.scala text diff=java +*.gradle text diff=java +*.gradle.kts text diff=kotlin + +# These files are text and should be normalized (Convert crlf => lf) +*.css text diff=css +*.scss text diff=css +*.sass text +*.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 + +# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes') +mvnw text eol=lf +gradlew text eol=lf \ No newline at end of file