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 file
Feature Description
- Migrate the code format control configuration to
.editorconfig
Some advantages
- The
.editorconfig file can define coding conventions that cannot be defined by hg-style.xml, such as insert_final_newline
- The
.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 overwritten
This is if the user allows the EditorConfig support of 🙈 IDEA to be enabled
What need to do
Reference
How do I test the correctness of the results
- TODO(It's a shame that I don't have a practical way to make sure it's correct😭)
Background
While working on #2457, we noticed that we were using both
hugegraph-style.xmland.editorconfigto control the style of our code, so we wanted to try combining the functionality of these two files into a single fileFeature Description
.editorconfigSome advantages
.editorconfigfile can define coding conventions that cannot be defined byhg-style.xml, such asinsert_final_newline.editorconfigfile 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.xmlto.editorconfigchore: migrate thehg-style.xmlto.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).mdReference
How do I test the correctness of the results