Thank you for your interest in contributing to Open COBOL ESQL 4J. A summary of how to contribute is below.
Although any topics related to Open COBOL ESQL 4J can be posted in Issues, please submit ones written in English or Japanese.
We will check pull requests that passed all CI checks running both tests and static code analysis. The static analysis checks whether C and Scala source files are formatted using clang-format and Scalafmt respectively, and whether Scalastyle finds no error and warning in Java source files.
The below sections describe how to setup and run static code analysis.
We strongly recommend using Visual Studio Code with Dev Containers for a consistent development environment. Follow the steps below to set up your development environment.
- Install Docker on your machine.
- Install Visual Studio Code.
- Install the Remote - Containers extension in Visual Studio Code.
- Clone the repository with
git clone --recursive
. Do not forget to specify--recursive
. - Open the repository in Visual Studio Code.
- Press
Ctrl+Shift+P
and SelectDev Containers: Reopen in Container
. - Wait for the DevContainer to start up and the build to complete. It may take several minutes to complete this process.
- (Optional) Press
Ctrl+Shift+@
to open a new terminal of Visual Studio code. - (Optional) Setup credentials for git.
Caution
In the dev container, Git Hooks executes code formatters when starting git commit
command. It may take a minutes when you run git commit
for the first time.
Caution
CI executes formatters and static analysis tools in Almalinux 9. The behavior of these tools may differ from the one in other operatins systems.
Run ./format
in the top directory of Open COBOL ESQL 4J.
If you want to make sure all files are formatted, run ./check-format
in the top directory of Open COBOL ESQL 4J.