Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
root = true

[{*,.*}]
charset = utf-8
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.sh]
end_of_line = lf

[{*.bat,*.cmd}]
end_of_line = crlf

[*.go]
# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355
end_of_line = lf

[*.md]
# Trailing whitespace is important in Markdown (they distinguish a new line from a new paragraph)
eclint_indent_style = unset
trim_trailing_whitespace = false

[{go.mod,go.sum,*.go,.gitmodules}]
indent_size = 4
indent_style = tab

[Dockerfile]
indent_size = 4

[*.py]
profile = black

[*.sh]
indent_size = 4
126 changes: 126 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
###############################
# Qubership common #
###############################
.editorconfig text
.flake8 text
.gitattributes text
.gitignore text
.helmignore text
.prettierignore text

*.env text eol=lf
*.json text
*.md text
*.mod text
*.robot text
*.sum text
*.tpl text
*.txt text
*.yaml text
*.yml text

LICENSE text
Dockerfile text

/CHANGELOG.md merge=union
/contributors.json merge=union
/CODE-OF-CONDUCT.md text
/CONTRIBUTING.md text
/README.md text
/SECURITY.md text

###############################
# Git Line Endings #
###############################

# Set default behaviour to automatically normalize line endings.
* text=auto


# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf

# Force bash scripts to always use LF line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf
# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355
*.go text eol=lf

##########################################
# Basic .gitattributes for a Java repo.#
##########################################

# 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

# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes')
mvnw text eol=lf
gradlew text eol=lf

##########################################
# Basic .gitattributes for a python repo.#
##########################################

# Source files
# ============
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyi text diff=python

# Binary files
# ============
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary

# Jupyter notebook
*.ipynb text eol=lf

# Note: .db, .p, and .pkl files are associated
# with the python modules ``pickle``, ``dbm.*``,
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
# (among others).