Thank you for your interest in contributing to opensource COBOL 4J. A summary of how to contribute is below.
Although any topics related to opensource COBOL 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 Java source files are formatted using clang-format and google-java-format respectively, and whether PMD finds no error and warning in Java source files.
Before you submit pull requests, you should run ./format
in order to format files in this repository.
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.
- 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
Since the behavior of these tools may differ from the one in other operatins systems, we recommend that you run ./format
in Visual Studio Code with Dev Containers described in the previous section.
Run ./format
in the top directory of opensource COBOL 4J.
If you want to make sure all files are formatted, run ./check-format
in the top directory of opensource COBOL 4J.
Run the following command in libcobj/ directory:
./gradlew pmdMain