mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(repo): match editorconfig to each formatter (#3324)
This commit is contained in:
1 parent
dcc3273889
commit
0febad324c
2 files changed
+37
-2
No files matched your search
@@ -9,6 +9,33 @@ max_line_length = 120
|
|||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.rs]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
max_line_length = 100
|
||||||
|
|
||||||
|
[*.{erl,hrl,app.src,escript}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
max_line_length = 96
|
||||||
|
|
||||||
|
[fluxer_gateway/{rebar.config,elvis.config,.erlfmt}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
max_line_length = 96
|
||||||
|
|
||||||
|
[*.{c,h,py}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[fluxer_app/rust/libfluxwebp/**.{c,h}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.{md,mdx,proto,tpl}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[*.{yml,yaml,Dockerfile}]
|
[*.{yml,yaml,Dockerfile}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|||||||
+10
-2
@@ -1,5 +1,13 @@
|
|||||||
% erlfmt configuration
|
% erlfmt configuration
|
||||||
% Options here are used by editor integrations and the escript.
|
% Options here are used by editor integrations and the escript.
|
||||||
% Rebar3 reads from rebar.config's {erlfmt, [...]} section.
|
% Rebar3 reads from rebar.config's {erlfmt, [...]} section.
|
||||||
{print_width, 100}.
|
{print_width, 96}.
|
||||||
{files, ["{src,include,test}/*.{hrl,erl,app.src}", "rebar.config"]}.
|
{files, [
|
||||||
|
"src/**/*.erl",
|
||||||
|
"src/*.app.src",
|
||||||
|
"include/**/*.hrl",
|
||||||
|
"test/**/*.erl",
|
||||||
|
"elvis.config",
|
||||||
|
"rebar.config",
|
||||||
|
"rebar.config.script"
|
||||||
|
]}.
|
||||||
Reference in new issue
Block a user