What's new
* Refactoring on portfolios for hardening
* **sonar-findings-export** and **sonar-rules** now have a `--languages` option to filter findings/rules in a restrained list of languages
* **sonar-measures-export** can export measures for Applications and Portfolios. For this reason, a new column (col 2) has been added to the CSV output format which can be `PROJECT`, `BRANCH`, `APPLICATION`, `APPLICATIONBRANCH` or `PORTFOLIO`
* **sonar-findings-export**:
- Ability export findings for Applications and Portfolios, Application and Project branches
- Fixes in SARIF export format
- Adjustments to new issues taxonomy
- Added option to not export all Sonar findings custom properties in SARIF export for more compact output
- Added finding author and language column in CSV export, in JSON and SARIF too
- Updated SARIF format export to not export custom properties when already standard SARIF fields
- Have a new field language for the issue language
* **sonar-config**:
- Smart handling of properties that can be lists. If the list contains a comma, the property is exported as list, if no comma, as a more
compact comma separated string
- Settings that are the default are no longer exported unless `--exportDefaults` option is provided
- Changed the key for default branch from `__default__` to `-DEFAULT_BRANCH-` to make sure that this cannot conflict with a real branch name (because git forbids branches starting by `-`)
Portfolio export format has been slightly changed for consistency
Details
* SARIF export fixes by okorach in https://github.com/okorach/sonar-tools/pull/1148
* Add SARIF tests by okorach in https://github.com/okorach/sonar-tools/pull/1149
* Add filters for rules and findings export by okorach in https://github.com/okorach/sonar-tools/pull/1154
* Quality-pass-2 by okorach in https://github.com/okorach/sonar-tools/pull/1157
* Fix tests by okorach in https://github.com/okorach/sonar-tools/pull/1158
* Fix issue export with multiple filters by okorach in https://github.com/okorach/sonar-tools/pull/1159
* Improve sonar-config export by okorach in https://github.com/okorach/sonar-tools/pull/1164
* Fix regression by okorach in https://github.com/okorach/sonar-tools/pull/1165
* Remove issues deprecated apis by okorach in https://github.com/okorach/sonar-tools/pull/1166
* Make most CLI options as configurable params by okorach in https://github.com/okorach/sonar-tools/pull/1167
* Use CSV write to produce CSV by okorach in https://github.com/okorach/sonar-tools/pull/1168
* Configurable options everywhere by okorach in https://github.com/okorach/sonar-tools/pull/1170
* Fix double del TOKEN by okorach in https://github.com/okorach/sonar-tools/pull/1171
* Add portfolios and apps components by okorach in https://github.com/okorach/sonar-tools/pull/1172
* Branch for apps by okorach in https://github.com/okorach/sonar-tools/pull/1174
* Fix SARIF regression by okorach in https://github.com/okorach/sonar-tools/pull/1176
* Branch deletion fix by okorach in https://github.com/okorach/sonar-tools/pull/1177
* Fix unicity for apps and SIF not readable test by okorach in https://github.com/okorach/sonar-tools/pull/1178
* Fixes 1175 by okorach in https://github.com/okorach/sonar-tools/pull/1180
* Fix 1169 by okorach in https://github.com/okorach/sonar-tools/pull/1181
* Findings search on branches and PRs by okorach in https://github.com/okorach/sonar-tools/pull/1182
* LoC for apps by okorach in https://github.com/okorach/sonar-tools/pull/1183
* Issues for apps by okorach in https://github.com/okorach/sonar-tools/pull/1184
* Unique-cross-platform-object-ids by okorach in https://github.com/okorach/sonar-tools/pull/1185
* Reduce tech debt by okorach in https://github.com/okorach/sonar-tools/pull/1188
* Fix 1186 and 1187 plus final JSON, SARIF output format clean up by okorach in https://github.com/okorach/sonar-tools/pull/1189
* Adjust tests for 9.9 by okorach in https://github.com/okorach/sonar-tools/pull/1191
* Adjust-tests-for-sonarcloud by okorach in https://github.com/okorach/sonar-tools/pull/1192
* Fixes 1193 by okorach in https://github.com/okorach/sonar-tools/pull/1194
**Full Changelog**: https://github.com/okorach/sonar-tools/compare/3.1...3.2