Skip to content

Commit

Permalink
chore: add configuration dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsanima committed Feb 24, 2024
1 parent b7171db commit 4ae8d4d
Show file tree
Hide file tree
Showing 3 changed files with 500 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
BasedOnStyle: Google
ColumnLimit: 80
IndentWidth: 4
---
Language: Cpp
ColumnLimit: 80
IndentWidth: 4
---
42 changes: 42 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Maintain consistent coding style

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120
quote_type = double

[*.{commitlintrc,eslint*,js,jsx,json,md,mjs,ts,tsx,versionrc}]
indent_size = 2

[*.{html,yml,yaml}]
indent_size = 2
max_line_length = off

[*.{ps1,psm1,psd1}]
max_line_length = 115

[*.py]
profile = black

[*.{sh,bash,zsh,vim}]
indent_size = 2
max_line_length = 80

[{*.svg,.env*}]
insert_final_newline = false
max_line_length = off

[{CMakeLists.txt,*.{cmake,c,h,cc,hh,cpp,cxx,hpp,hxx}}]
indent_size = 4
max_line_length = 80

[{Makefile,.gitattributes,.gitconfig,.gitcredentials,.gitmessage,.gitmodules}]
indent_size = 8
indent_style = tab
Loading

0 comments on commit 4ae8d4d

Please sign in to comment.