-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: amended git ignores and added editor config as well as git at…
…tributes - added editor config for ease of collaboration - added git attributes file for cross platform ease - amended git ignores by typical needed artifacts that should stay local Signed-off-by: Stefan Hagen <[email protected]>
- Loading branch information
Showing
3 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.editorconfig # Editor config | ||
# http://EditorConfig.org | ||
|
||
# This EditorConfig overrides any parent EditorConfigs | ||
root = true | ||
|
||
# Default rules applied to all file types | ||
[*] | ||
|
||
# Trim trailing spaces, newline at EOF | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
end_of_line = lf | ||
|
||
# 2 space indentation | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Makefiles require tabs | ||
[Makefile] | ||
indent_style = tab | ||
indent_size = 4 | ||
max_line_length = 256 | ||
|
||
# 4 space indentation | ||
[*.{py,java,r,R}] | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 120 | ||
|
||
# 2 space indentation | ||
[*.{json,y{a,}ml,html,cwl}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{md,Rmd,rst}] | ||
trim_trailing_whitespace = false | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# JavaScript-specific settings | ||
[*.{js,ts}] | ||
quote_type = single | ||
indent_style = space | ||
indent_size = 2 | ||
continuation_indent_size = 2 | ||
curly_bracket_next_line = false | ||
indent_brace_style = BSD | ||
spaces_around_operators = true | ||
spaces_around_brackets = none | ||
max_line_length = 150 | ||
|
||
[*.rs] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
|
||
# Original ignores (before csaf_2.1 branch off) | ||
meeting_minutes/.DS_Store | ||
.DS_Store | ||
*_strict_schema.json | ||
official-cpe-dictionary_v2.3.* | ||
official-cpe-dictionary_v2.2.* | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Other local development artifacts | ||
*~ | ||
.idea | ||
local* | ||
.vscode/ | ||
build/ |