-
Notifications
You must be signed in to change notification settings - Fork 521
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
[Feature] Migrate the hg-style.xml to.editorconfig #2485
Comments
To test the correctness of the results after migrating the code format control configuration from
By following these steps, you can systematically test and ensure the correctness of the results after migrating to Regarding the structure of the For more details, you can refer to the I hope this helps! If you have any further questions, feel free to ask. -Dosu Sources
|
Hi everyone, I wondered if anyone is working on this issue? I'd like to have a try on it. |
No one is working on this issue currently. I've assigned it to you~ |
Hi @FrostyHec, If you encounter any problems, please feel free to @ me😁 |
@returnToInnocence Thanks~, I would like to inquire if there are some code format requirement for markdown? I see the style requirements for markdown in hugegraph-style.xml in not defined, and the default code format style exported by IDEA is this:
|
@FrostyHec Without this configuration, there are several possible problems with code format: Because it's just mechanical truncation + newline (without adding two Spaces at the end of the truncation, it's not markdown newline syntax), it should not be rendered into a newline in most markdown rendering engines, but in typora and other rendering engines that support non-strict mode, it will cause the text to be rendered into a newline |
@returnToInnocence |
@FrostyHec Thank you for identifying this issue🫡. Based on previous research, I have tentatively come to the conclusion that there does not seem to be a strong need for separate formatting of markdown files.
By investigating the |
@returnToInnocence Thanks for your nice reply (⌒ω⌒) ~ |
Background
While working on #2457, we noticed that we were using both
hugegraph-style.xml
and.editorconfig
to control the style of our code, so we wanted to try combining the functionality of these two files into a single fileFeature Description
.editorconfig
Some advantages
.editorconfig
file can define coding conventions that cannot be defined byhg-style.xml
, such asinsert_final_newline
.editorconfig
file does not require the user to make any additional configuration, such as importing code style. If this file exists in the project, it will be automatically invoked by default, and code sytle will be overwrittenWhat need to do
hg-style.xml
to.editorconfig
chore: migrate thehg-style.xml
to.editorconfig
#2561Add code format style for(The reason for the removal is that there is currently no special formatting requirement for markdown files within the apache project).md
Reference
How do I test the correctness of the results
The text was updated successfully, but these errors were encountered: