From cb7c55c9cf88e81ae41721f3783c50c3b98d7105 Mon Sep 17 00:00:00 2001 From: Gilles Grousset Date: Tue, 27 Apr 2021 00:38:14 +0200 Subject: [PATCH 1/7] moved back to snapshot version --- CHANGELOG.md | 18 ++++++++++++++++++ dart-lang/pom.xml | 2 +- pom.xml | 2 +- sonar-flutter-plugin/pom.xml | 4 ++-- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c8ffdb..1752366 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # SonarQube Plugin for Flutter / Dart +## develop + +#### Breaking + +- None. + +#### Experimental + +- None. + +#### Enhancements + +- None. + +#### Bug Fixes + +- None. + ## 0.3.2 #### Breaking diff --git a/dart-lang/pom.xml b/dart-lang/pom.xml index 9307f67..5122dbb 100644 --- a/dart-lang/pom.xml +++ b/dart-lang/pom.xml @@ -3,7 +3,7 @@ sonar-flutter fr.insideapp.sonarqube - 0.3.2 + 0.3-SNAPSHOT 4.0.0 diff --git a/pom.xml b/pom.xml index 1899b0a..a7d7d57 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ fr.insideapp.sonarqube sonar-flutter - 0.3.2 + 0.3-SNAPSHOT pom diff --git a/sonar-flutter-plugin/pom.xml b/sonar-flutter-plugin/pom.xml index 36a912a..3c4312a 100644 --- a/sonar-flutter-plugin/pom.xml +++ b/sonar-flutter-plugin/pom.xml @@ -4,7 +4,7 @@ sonar-flutter fr.insideapp.sonarqube - 0.3.2 + 0.3-SNAPSHOT 4.0.0 @@ -17,7 +17,7 @@ fr.insideapp.sonarqube dart-lang - 0.3.2 + 0.3-SNAPSHOT From 8fb992fb184e2ddb9149b75df60f16dca2e17357 Mon Sep 17 00:00:00 2001 From: Thiago Loureiro Date: Wed, 16 Jun 2021 13:42:40 +0200 Subject: [PATCH 2/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9bc6b68..c590532 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Changelog is available [here](https://github.com/insideapp-oss/sonar-flutter/blo ### Flutter SDK -Install Flutter as explained on the official documentaiton page. +Install Flutter as explained on the official documentation page. [Installation instructions](https://flutter.dev/docs/get-started/install) @@ -40,7 +40,7 @@ Install Flutter as explained on the official documentaiton page. Dart is downloaded by the Flutter SDK in **$FLUTTER_HOME/bin/cache/dart-sdk**, however command lines are not on the path by default (dartanalyzer must be on the path). -It is recommanded to install Dart SDK separately as explained here : [Install the Dart SDK](https://dart.dev/get-dart) for more reliability in a CI/CD environement. +It is recommended to install Dart SDK separately as explained here : [Install the Dart SDK](https://dart.dev/get-dart) for more reliability in a CI/CD environment. ### sonar-scanner (requires Java) From 492877dec79ab09ddce3de985bfe0cbde4b67550 Mon Sep 17 00:00:00 2001 From: Gilles Grousset Date: Sun, 8 Aug 2021 23:24:03 +0200 Subject: [PATCH 3/7] feat(script): take PR32 in account for rules generation --- scripts/updateDartAnalyzerRules.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/updateDartAnalyzerRules.groovy b/scripts/updateDartAnalyzerRules.groovy index c640248..ba8974b 100644 --- a/scripts/updateDartAnalyzerRules.groovy +++ b/scripts/updateDartAnalyzerRules.groovy @@ -82,7 +82,12 @@ def assignType(key) { } if (grandParentNode.name.text() == 'Reliability') { - return "BUG" + + // See https://github.com/insideapp-oss/sonar-flutter/pull/32 + if (!ruleNode.name.text().startsWith('prefer_final')) { + return "BUG" + } + } } From 0df1cf23c2003e11d5f84dc7da433c64f3a73c12 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Tue, 24 Aug 2021 23:40:46 +0200 Subject: [PATCH 4/7] Add support for Sonar 9 --- CHANGELOG.md | 2 +- pom.xml | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1752366..49036a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ #### Enhancements -- None. +- Support SonarQube 9 #### Bug Fixes diff --git a/pom.xml b/pom.xml index a7d7d57..be436bb 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.sonarsource.parent parent - 52 + 59.0.29 fr.insideapp.sonarqube @@ -31,7 +31,7 @@ GNU LGPL 3 - http://www.gnu.org/licenses/lgpl.txt + https://www.gnu.org/licenses/lgpl-3.0.txt repo @@ -58,8 +58,6 @@ true - 6.7 - 3.5.2 17.0 4.10 @@ -70,7 +68,7 @@ 3.22.0.1791 4.0.0.2052 1.23 - 2.6.1 + 2.7.1.392 1.6 1.10.2.456 3.5.2 From 3338078bf91576bbf0615e1455265f05ad49ee98 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Tue, 24 Aug 2021 23:58:01 +0200 Subject: [PATCH 5/7] Update actions and run CI on PRs --- .github/workflows/maven.yml | 23 ++++++++++++++++------- .github/workflows/stale.yml | 2 +- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5990b45..04f37dc 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,21 +1,30 @@ name: CI -on: [push] +on: + push: + branches: + - master + - develop + pull_request: + branches: + - master + - develop jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2.3.4 - name: Set up JDK 1.11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2.3.0 with: - java-version: 1.11 + distribution: 'adopt' + java-version: '11' + check-latest: true + cache: 'maven' - name: Build with Maven run: mvn -B package --file pom.xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2.0.3 with: token: ${{ secrets.CODECOV_TOKEN }} #required diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 7321751..4c6adb4 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,7 +7,7 @@ jobs: close-issues: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 + - uses: actions/stale@v4.0.0 with: days-before-issue-stale: 90 days-before-issue-close: 14 From 00e55f4fb7f161070bd400a19b30130d09f7c8c5 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Tue, 24 Aug 2021 23:58:19 +0200 Subject: [PATCH 6/7] Add dependabot configuration for actions --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9096371 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" \ No newline at end of file From 2d6a0092b3eff364f8046f3ed931269109e10d13 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Thu, 2 Sep 2021 18:30:10 +0200 Subject: [PATCH 7/7] Prepare 0.4.0 release --- dart-lang/pom.xml | 2 +- pom.xml | 2 +- sonar-flutter-plugin/pom.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dart-lang/pom.xml b/dart-lang/pom.xml index 5122dbb..ac9756b 100644 --- a/dart-lang/pom.xml +++ b/dart-lang/pom.xml @@ -3,7 +3,7 @@ sonar-flutter fr.insideapp.sonarqube - 0.3-SNAPSHOT + 0.4.0 4.0.0 diff --git a/pom.xml b/pom.xml index be436bb..27ccd2a 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ fr.insideapp.sonarqube sonar-flutter - 0.3-SNAPSHOT + 0.4.0 pom diff --git a/sonar-flutter-plugin/pom.xml b/sonar-flutter-plugin/pom.xml index 3c4312a..fb06b3f 100644 --- a/sonar-flutter-plugin/pom.xml +++ b/sonar-flutter-plugin/pom.xml @@ -4,7 +4,7 @@ sonar-flutter fr.insideapp.sonarqube - 0.3-SNAPSHOT + 0.4.0 4.0.0 @@ -17,7 +17,7 @@ fr.insideapp.sonarqube dart-lang - 0.3-SNAPSHOT + 0.4.0