Skip to content

Releases: insideapp-oss/sonar-flutter

0.5.3-SNAPSHOT

07 Sep 23:39
Compare
Choose a tag to compare
0.5.3-SNAPSHOT Pre-release
Pre-release

Snapshot release

0.5.2

07 Sep 23:33
Compare
Choose a tag to compare

Breaking

  • None.

Experimental

  • None.

Enhancements

  • Analyzer rules update: there are now 279 rules available

Bug Fixes

  • #187 pubspec.yaml parser fails when no dependencies are declared
  • #223 some dartanalyzer rules disappeared

0.5.1

16 May 18:19
Compare
Choose a tag to compare

Changelog

Breaking

  • None.

Experimental

  • None.

Enhancements

  • Analyzer rules update (1 added)

Bug Fixes

  • #177 analyzer execution fails when errors detected.
  • #212 source file not indexed with SonarQube 10.4+
  • PR #201 bump snakeyaml and jackson-databind to latest versions
  • Updated Apache Ivy to 2.5.2

0.5.0

19 May 10:24
bbfd27a
Compare
Choose a tag to compare

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 legacy dartanalyzer . instead which is much faster.
  • Renamed sonar.flutter.analyzer.mode to sonar.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 when environment.flutter is configured in pubspec.yaml.
    • Uses dart analyze when environment.flutter is NOT configured in pubspec.yaml.
    • Allows to be configured for legacy dartanalyzer if required (DARTANALYZER)
    • Allows to be configured for pre-existing analysis reports (MANUAL)
  • Renamed sonar.dart.analysis.useExistingOptions to sonar.dart.analyzer.options.override, now defaults to true
  • Renamed sonar.dart.analysis.reportPath to sonar.dart.analyzer.report.path - this is only evaluated when sonar.dart.analyzer.modeis set to MANUAL
  • 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

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

02 Sep 16:37
d14c070
Compare
Choose a tag to compare

Changes

🚀 Features

  • (#65) Support SonarQube 9 - (thanks to @kuhnroyal)
  • (#32) make perfer final issue type to CODE_SMELL - (thanks to @magaofei)

🧰 Maintenance

0.3.2

26 Apr 22:42
Compare
Choose a tag to compare

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

0.3.1

12 Aug 17:56
Compare
Choose a tag to compare

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

10 Aug 22:56
Compare
Choose a tag to compare

Breaking

  • None.

Experimental

  • None.

Enhancements

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

07 Mar 22:59
Compare
Choose a tag to compare

0.2.1

Breaking

  • None.

Experimental

  • None.

Enhancements

Bug Fixes

  • None

0.2.0

30 Jan 13:18
Compare
Choose a tag to compare

Breaking

  • None.

Experimental

  • None.

Enhancements

  • Syntax coloration
  • Cyclomatic complexity computation
  • More accurate code line count

Bug Fixes

  • None