chore: migrate the `hg-style.xml` to `.editorconfig` by FrostyHec · Pull Request #2561 · apache/hugegraph
Purpose of the PR
- close #2485
Migrate the format defined in hg-style.xml to editorconfig for code style controlling. Editorconfig offers enhanced capabilities for defining coding conventions and can be automatically recognized and imported by IDEA.
Main Changes
Removed hugegraph-style.xml and define the code format control in editorconfig with same functionality.
Verifying these changes
- Trivial rework / code cleanup without any test coverage. (No Need)
- Already covered by existing tests, such as (please modify tests here).
- Need tests and can be verified as follows:
- After pulling the latest editorconfig file, restart IDEA and check if files is formated as expected. We can also open the editorconfig file and use the "Preview Code Style" for verification, as shown below:
Does this PR potentially affect the following parts?
- Dependencies (add/update license info & regenerate_dependencies)
- Modify configurations
- The public API
- Other affects (typed here)
- Nope
Documentation Status
-
Doc - TODO -
Doc - Done -
Doc - No Need- The file format configuration is enabled by default
