G-XD opened a new issue, #22:
URL: https://github.com/apache/incubator-paimon-webui/issues/22

   ### Search before asking
   
   - [X] I searched in the 
[issues](https://github.com/apache/incubator-paimon-webui/issues) and found 
nothing similar.
   
   
   ### Motivation
   
   I found that we do not use pre-commit hooks to perform some checks or 
operations before committing code, such as code formatting, unit testing, code 
quality analysis, etc. This may lead to some inconsistent, erroneous or 
low-quality code being committed to the repository, affecting the 
maintainability and reliability of the project.
   
   ### Solution
   
   I suggest that we use a `install-pre-commit-hooks.sh` script to install 
pre-commit hooks, which can automatically create a `pre-commit` file in the 
`.git/hooks/` and define the operations we want to perform in it. This way, 
every time we commit code, these operations will be automatically run and 
prevent the commit if any problems are found.
   
   The advantages of using this script are:
   
   - It can improve the consistency, correctness and quality of the code
   - It can reduce human errors and omissions
   - It can save time and energy, avoid repetitive work
   
   The disadvantages of using this script are:
   
   - Git commits will take a little longer
   - It may require making some modifications or adjustments according to 
different operating systems and shell environments
   
   I would like to hear your opinions and feedback on this suggestion, whether 
you think this feature is useful and necessary, whether there are better 
methods or alternatives, and whether there are any potential problems or risks.
   
   
   Or use [pre-commit](https://pre-commit.com/), but this library doesn't have 
good enough support for java.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to