Skip to content

Commit fa3c247

Browse files
author
Gilles Grousset
committed
doc: documentation update
1 parent 96f8d64 commit fa3c247

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

CONTRIBUTING.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,29 @@ Remediation time? (in minutes)
8585
8686
## Releasing
8787

88-
TODO
88+
### Snapshots
89+
90+
Every push to `develop` branch updates the matching snapshot release.
91+
92+
For example: if project version is set to `0.1-SNAPSHOT` on`develop`. A `0.1-SNAPSHOT` will be released (or release will be updated if it already exists) as soon as the `maven.yml` GitHub actions workflow finishes.
93+
94+
### Stable
95+
96+
A new stable release is pushed on GitHub, on every new tag creation (performed by the `release.yml` GitHub Actions workflow).
97+
98+
The steps to issue a new stable release are:
99+
1. Merge `develop` branch to `main`branch (do not squash in order to keep commit history).
100+
2. Create a new tag from `main` branch with a naming matching the release number. Example:
101+
```bash
102+
$ git tag -a 0.1.0
103+
```
104+
3. Push the new tag with:
105+
```bash
106+
$ git push --tags
107+
```
108+
109+
Once released, remember to update the project version on the `develop`branch to a new snapshot number:
110+
```bash
111+
$ mvn versions:set -DnewVersion=0.2-SNAPSHOT
112+
```
89113

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,20 +185,22 @@ You may follow and upvote these related issue if interested:
185185

186186
All options are configurable in the SonarQube UI, via `sonar-project.properties` or `-D` parameters.
187187

188-
|Name|Options|Default|Description
189-
|---|---|---|---|
190-
|`sonar.dart.analyzer.mode`|<code>DETECT&#124;DART&#124;FLUTTER&#124;MANUAL&#124;DARTANALYZER</code>|`DETECT`|By default the plugin attempts to detect a fitting analyzer (`flutter analyze` or `dart analyze`) by parsing the `environment` from `pubspec.yaml`. This can be set to `MANUAL` to provide and existing report file. For compatibility with older Dart versions, this can be set to `DARTANALYZER`.|
191-
|`sonar.dart.analyzer.options.override`|<code>true&#124;false</code>|`true`|By default any local `analysis_options.yaml` will be replaced for the analysis. This can be prevented by setting this to `false`.
192-
|`sonar.dart.analyzer.report.mode`|<code>DETECT&#124;MACHINE&#124;LEGACY</code>|`DETECT`|The new machine readable output can be automatically detected if Dart SDK is available on the $PATH.|
193-
|`sonar.dart.analyzer.report.path`|A file path|-|This is required if the analyzer mode is set to `MANUAL`.|
194-
|`sonar.flutter.tests.reportPath`|A file path|-|The path to the test report JSON file.|
195-
|`sonar.flutter.coverage.reportPath`|A file path|-|The path to the test coverage file in LCOV format.|
188+
| Name | Options | Default | Description |
189+
|----------------------------------------|--------------------------------------------------------------------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
190+
| `sonar.dart.analyzer.mode` | <code>DETECT&#124;DART&#124;FLUTTER&#124;MANUAL&#124;DARTANALYZER</code> | `DETECT` | By default the plugin attempts to detect a fitting analyzer (`flutter analyze` or `dart analyze`) by parsing the `environment` from `pubspec.yaml`. This can be set to `MANUAL` to provide and existing report file. For compatibility with older Dart versions, this can be set to `DARTANALYZER`. |
191+
| `sonar.dart.analyzer.options.override` | <code>true&#124;false</code> | `true` | By default any local `analysis_options.yaml` will be replaced for the analysis. This can be prevented by setting this to `false`. |
192+
| `sonar.dart.analyzer.report.mode` | <code>DETECT&#124;MACHINE&#124;LEGACY</code> | `DETECT` | The new machine readable output can be automatically detected if Dart SDK is available on the $PATH. |
193+
| `sonar.dart.analyzer.report.path` | A file path | - | This is required if the analyzer mode is set to `MANUAL`. |
194+
| `sonar.flutter.tests.reportPath` | A file path | - | The path to the test report JSON file. |
195+
| `sonar.flutter.coverage.reportPath` | A file path | - | The path to the test coverage file in LCOV format. |
196196

197197

198198
## Contributing
199199

200200
Any help is welcome, and PRs will be greatly appreciated!
201201

202+
Please read [CONTRIBUTING](https://github.com/insideapp-oss/sonar-flutter/blob/develop/CONTRIBUTING.md) for more information.
203+
202204

203205
## License
204206

0 commit comments

Comments
 (0)