[X] I had searched in the feature and found no similar feature requirement.
Description
Streampark's inspection of scala code format is not strict, there are some inappropriate code format which are not detected. Besides, scala code format ofthen changes in pr which brings some unnecessary review work. Here we use the import order as an example (many scala classes in streampark have inappropriate import order):
the left side is the import order of FlinkClientTrait.scala ,as we can see, the import package is decentralized. The right side is the reformated version, we put the imports from same project together, and make streampark's imports on the top.
streampark uses spotless-maven-plugin to format java code, this plugin also can support format scala code by rules, maybe we can integrate this feature into stremaprk project.
Search before asking
Description
Streampark's inspection of scala code format is not strict, there are some inappropriate code format which are not detected. Besides, scala code format ofthen changes in pr which brings some unnecessary review work. Here we use the import order as an example (many scala classes in streampark have inappropriate import order):
the left side is the import order of FlinkClientTrait.scala ,as we can see, the import package is decentralized. The right side is the reformated version, we put the imports from same project together, and make streampark's imports on the top.
streampark uses
spotless-maven-plugin
to format java code, this plugin also can support format scala code by rules, maybe we can integrate this feature into stremaprk project.Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct