Releases: insideapp-oss/sonar-flutter
Releases · insideapp-oss/sonar-flutter
0.5.3-SNAPSHOT
Snapshot release
0.5.2
0.5.1
0.5.0
Changes
Breaking
- SonarQube API update to 7.9 for latest LTS support (9.9)
- Removed
dartanalyzer
implementation that scans each file individual, this may affect projects running on a (pretty) old Dart SDK.
The replacement runs legacydartanalyzer .
instead which is much faster. - Renamed
sonar.flutter.analyzer.mode
tosonar.dart.analyzer.mode
and reworked implementation.- Available options
DETECT|DART|FLUTTER|MANUAL|DARTANALYZER
- Defaults to automatic detection by parsing the
pubspec.yaml
. - Uses
flutter analyze
whenenvironment.flutter
is configured inpubspec.yaml
. - Uses
dart analyze
whenenvironment.flutter
is NOT configured inpubspec.yaml
. - Allows to be configured for legacy
dartanalyzer
if required (DARTANALYZER
) - Allows to be configured for pre-existing analysis reports (
MANUAL
)
- Available options
- Renamed
sonar.dart.analysis.useExistingOptions
tosonar.dart.analyzer.options.override
, now defaults totrue
- Renamed
sonar.dart.analysis.reportPath
tosonar.dart.analyzer.report.path
- this is only evaluated whensonar.dart.analyzer.mode
is set toMANUAL
- Added
sonar.dart.analyzer.report.mode
option- Available options
DETECT|MACHINE|LEGACY
- Defaults to automatic detection by parsing the Dart SDK version and defaults to
--format=machine
for Dart when SDK >= 2.12 - Can be set to legacy mode when using pre-existing analysis report or an older Dart SDK
- Available options
Experimental
- None.
Enhancements
- Add a
pubspec.yaml
sensor which adds the file to SonarQube and allow showing lints for this file - Add support for multi-module projects (
sonar.modules=mylib,mylib_generator,example
) - Added missing dart keywords and corrected some
try
hide
show
late
of
continue
covariant
out
do
dynamic
native
- Rules update
- Better rules description
Bug Fixes
- #160 dart analysis with an exception of NumberFormatException
0.4.0
Changes
🚀 Features
- (#65) Support SonarQube 9 - (thanks to @kuhnroyal)
- (#32) make perfer final issue type to CODE_SMELL - (thanks to @magaofei)
🧰 Maintenance
- (#70) Automate changelog and releases - (thanks to @kuhnroyal)
- (#66) CI improvements - (thanks to @kuhnroyal)
- (#56) Update README.md - (thanks to @thiagoloureiro)
0.3.2
0.3.2
Breaking
- None.
Experimental
- None.
Enhancements
- Allow re-using an existing dartanalyzer report with
sonar.dart.analysis.reportPath
(thanks to Peter Leibiger) - Add missing dart keywords
extension
,on
,mixin
(thanks to Peter Leibiger) - Add pedantic 1.9.0 profile (thanks to Daniel Morawetz)
- Faster analysis with 'flutter analyze' and support for different analysis modes with
sonar.flutter.analyzer.mode
(thanks to Marc Reichelt)
Bug Fixes
- Ensure analyzer encoding is UTF-8 (thanks to Daniel Morawetz)
0.3.1
Breaking
- None.
Experimental
- None.
Enhancements
- Better handling of missing test report file.
- Faster analysis on large projects (increased analyser page size to 50).
Bug Fixes
- Test report parsing fix for Windows (thanks to victorgilc).
- Removed duplicated issues on the same file.
0.3.0
Breaking
- None.
Experimental
- None.
Enhancements
- Add Flutter 1.20.0 test report compatibility (thanks to Peter Leibiger), fixes #19
- Improve test report parsing (thanks to Peter Leibiger), fixes #13
- Ability to use existing analysis options (configurable behavior) (thanks to Stephane Janicaud), fixes #23, #18
- Paginated analysis with dartanalyzer (thanks to victorgilc)
Bug Fixes
- Report the correct test case count (thanks to Peter Leibiger)
- Better test report parsing (thanks to victorgilc)
- Restore Java 8 compatibility required by the sonar-scanner (thanks to Peter Leibiger)
- Restore the original analysis options file when analysis crashes (thanks to amond)
- Windows support (thanks to victorgilc), fixes #12, #24
- Running sonar-scanner does not result no 0 exit code anymore when issues are found by dartanalyzer (thanks to amond), fixes #11
0.2.1
0.2.1
Breaking
- None.
Experimental
- None.
Enhancements
- Added diagnostic rules (thanks to etiennecadicidean)
Bug Fixes
- None