Skip to content

Commit

Permalink
consistent formatting of github files via gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
stamatis committed Apr 16, 2024
1 parent e75f4ff commit 336e946
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* 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
*.mjs text
*.cjs 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


# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary

# Documents
*.md text diff=markdown

# Serialisation
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text


0 comments on commit 336e946

Please sign in to comment.