-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added editorconfig #2403
added editorconfig #2403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@StrikerRUS looks good to me! I just had one recommendation about handling indentation in Makefiles.
indent_size = 2 | ||
|
||
[*.{py,sh,js}] | ||
indent_size = 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆 one day @Laurae2 and I will agree on indents for .R
. But today is not that day.
charset=utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have two makefiles in the R package currently (part of the way you use R libraries that link to compiled code)
actually, I think it needs to be
# tabs matter for makefiles
[*{Makefile,Makevars,Makevars.win}]
indent_style = tab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I guess they are currently empty...well better to be safe. There is also https://github.com/microsoft/LightGBM/blob/master/docs/Makefile and (now that I'm looking in the sphinx
stuff), it should probably be:
# tabs matter for makefiles
[*{Makefile,make.bat,Makevars,Makevars.win}]
indent_style = tab
Yeah, me too! 😃 Thanks a lot for your very important remark about |
insert_final_newline = none | ||
|
||
# Tabs matter for Makefile and .gitmodules | ||
[{makefile*,Makefile*,*.mk,*.mak,*.makefile,*.Makefile,GNUmakefile,BSDmakefile,make.bat,Makevars*,*.gitmodules}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so comprehensive! Amazing, thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@guolinke Don't you know any other files that need special treatment? |
@StrikerRUS I think no |
Closed #2401.