|
1 | 1 | # Diagnostic development workflow
|
2 | 2 |
|
3 |
| -1. Go to the section [issues](https://github.com/1c-syntax/bsl-language-server/issues) and select your task from the list. It is necessary to choose tasks that do not have an executor, i.e. `Assignees` is not specified (the block is on the right, almost under the heading). |
4 |
| - |
5 |
| - 1. If there is no task for diagnostics, then you need to create it by clicking the `New issue` button |
6 |
| - |
| 3 | +1. Go to the section [issues](https://github.com/1c-syntax/bsl-language-server/issues) and select your task from the list. It is necessary to choose tasks that do not have an executor, i.e. `Assignees` is not specified (the block is on the right, almost under the heading). |
| 4 | + 1. If there is no task for diagnostics, then you need to create it by clicking the `New issue` button |
7 | 5 | 2. Write in the comments to the task to the maintainers that you want to take the task to work. After your nickname appears in the task in the `Assignees` block, you can proceed.
|
8 |
| - |
9 | 6 | 3. You need to create a fork of the repository in `GitHub`, clone the repository to your computer and create a new feature branch (development by git flow).
|
10 |
| - |
11 |
| - 1. If the fork has already been created earlier, then you need to update the `develop` branch from the primary repository. The easiest way to do this is as follows |
12 |
| - 1. The local repository has two remote repository addresses: yours and primary |
13 |
| - 2. Get updates from both repositories `git fetch --progress "--all" --prune` |
14 |
| - 3. In the local repository, switch to the branch `develop` |
15 |
| - 4. Reset the branch state to the state of the primary repository (`git reset --hard`) |
16 |
| - 5. Pushin the branch to your remote repository |
17 |
| - |
18 |
| -4. To create all the necessary files in the right places, you need to run the command `gradlew newDiagnostic --key="KeyDiagnostic"`, instead `KeyDiagnostic` you must specify the key of your diagnostic. Details in help `gradlew -q help --task newDiagnostic`. Parameters: |
19 |
| - |
20 |
| - - `--key` - Diagnostic key |
21 |
| - - `--nameRu` - Russian description |
22 |
| - - `--nameEn` - English description |
| 7 | + 1. If the fork has already been created earlier, then you need to update the `develop` branch from the primary repository. The easiest way to do this is as follows |
| 8 | + 1. The local repository has two remote repository addresses: yours and primary |
| 9 | + 2. Get updates from both repositories `git fetch --progress "--all" --prune` |
| 10 | + 3. In the local repository, switch to the branch `develop` |
| 11 | + 4. Reset the branch state to the state of the primary repository (`git reset --hard`) |
| 12 | + 5. Pushin the branch to your remote repository |
| 13 | +4. To create all the necessary files in the right places, you need to run the command `gradlew newDiagnostic --key="KeyDiagnostic"`, instead `KeyDiagnostic` you must specify the key of your diagnostic. Details in help `gradlew -q help --task newDiagnostic`. Parameters: |
| 14 | + |
| 15 | + * `--key` - Diagnostic key |
| 16 | + * `--nameRu` - Russian description |
| 17 | + * `--nameEn` - English description |
23 | 18 |
|
24 | 19 | At startup, a list of available diagnostic tags is displayed. You must enter 1-3 tags from the space separated ones.
|
25 | 20 |
|
26 |
| -1. To develop |
27 |
| -2. After completion of the development of diagnostics: it is necessary to check the changes (after testing), and also perform a number of service tasks. |
28 |
| - To simplify, a special command has been created that can be run in the console `gradlew precommit` or from the Gradle taskbar `precommit`. Task actions: |
| 21 | +5. To develop |
| 22 | +6. After completion of the development of diagnostics: it is necessary to check the changes (after testing), and also perform a number of service tasks. |
| 23 | + To simplify, a special command has been created that can be run in the console `gradlew precommit` or from the Gradle taskbar `precommit`. Task includes subtasks |
29 | 24 |
|
30 | 25 | - test - autotesting project
|
31 | 26 | - licenseFormat - installation of a license block in java source files
|
32 | 27 | - updateDiagnosticDocs - diagnostic help update
|
33 | 28 | - updateDiagnosticIndex - diagnostic index update
|
34 | 29 | - updateJsonSchema - json schema update
|
35 | 30 |
|
36 |
| -1. If everything is done correctly, you need to commit the changes and push to your remote repository. |
37 |
| -2. You need to create `Pull request` from your feature branch to the `develop` branch of the primary repository and fill in the information in the description. |
38 |
| -3. Before closing `Pull request`, the maintainers will conduct a Code review. Correction of errors must be done in the same feature branch, GitHub will automatically add changes to the created `Pull request`. |
39 |
| -4. Closing `Pull request` confirms the completion of the task. |
| 31 | +7. If everything is done correctly, you need to commit the changes and push to your remote repository. |
| 32 | +8. You need to create `Pull request` from your feature branch to the `develop` branch of the primary repository and fill in the information in the description. |
| 33 | +9. Before closing `Pull request`, the maintainers will conduct a Code review. Correction of errors must be done in the same feature branch, GitHub will automatically add changes to the created `Pull request`. |
| 34 | +10. Closing `Pull request` confirms the completion of the task. |
0 commit comments