You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+18-2
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,28 @@ The static analysis checks whether C and Java source files are formatted using [
12
12
13
13
The below sections describe how to setup and run static code analysis.
14
14
15
-
## Setup static analysis tools
15
+
## Setup Development Environment
16
16
17
-
Run `sudo apt install clang-format` in Ubuntu to install `clang-format`.
17
+
We strongly recommend using [Visual Studio Code with Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) for a consistent development environment. Follow the steps below to set up your development environment.
18
+
19
+
1. Install [Docker](https://www.docker.com/get-started) on your machine.
20
+
1. Install [Visual Studio Code](https://code.visualstudio.com/).
21
+
1. Install the [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension in Visual Studio Code.
22
+
1. Clone the repository.
23
+
1. Open the repository in Visual Studio Code.
24
+
1. Press `Ctrl+Shift+P` and Select `Dev Containers: Reopen in Container`.
25
+
1. Wait for the DevContainer to start up and the build to complete. It may take several minutes to complete this process.
26
+
1. (Optional) Press `Ctrl+Shift+@` to open a new terminal of Visual Studio code.
27
+
1. (Optional) [Setup credentials for git](https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials).
28
+
29
+
> [!CAUTION]
30
+
> In the dev container, [Git Hooks](https://git-scm.com/book/ms/v2/Customizing-Git-Git-Hooks) executes code formatters when starting `git commit` command. It may take a minutes when you run `git commit` for the first time.
18
31
19
32
## Run static analysis
20
33
34
+
> [!CAUTION]
35
+
> CI executes formatters and static analysis tools in Almalinux 9. The behavior of these tools may differ from the one in other operatins systems.
36
+
21
37
### check with clang-format and google-java-format
22
38
23
39
Run `./format` in the top directory of opensource COBOL 4J.
一貫した開発環境を確保するために、[Visual Studio Code with Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers)の使用を強く推奨します。以下の手順に従って開発環境をセットアップしてください。
0 commit comments