From 2816009ade855dc1a8f322d837188fc8c343d0f9 Mon Sep 17 00:00:00 2001 From: DemeoStep Date: Wed, 9 Apr 2025 11:42:14 +0300 Subject: [PATCH] feat: new sonar properties --- .../use_sonar}} | 15 ++++++++++----- .../use_sonar}} | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/bricks/flutter_basic_base/__brick__/{{project_name.snakeCase()}}/{{#use_sonar}}sonar-project.properties{{/use_sonar}} b/bricks/flutter_basic_base/__brick__/{{project_name.snakeCase()}}/{{#use_sonar}}sonar-project.properties{{/use_sonar}} index 5bf4b1b9..4502e705 100644 --- a/bricks/flutter_basic_base/__brick__/{{project_name.snakeCase()}}/{{#use_sonar}}sonar-project.properties{{/use_sonar}} +++ b/bricks/flutter_basic_base/__brick__/{{project_name.snakeCase()}}/{{#use_sonar}}sonar-project.properties{{/use_sonar}} @@ -1,4 +1,4 @@ -sonar.projectKey=ENTER_YOUR_SONAR_PROJECT_ID +sonar.projectKey={ENTER YOUR SONAR PROJECT ID} sonar.qualitygate.wait=true sonar.exclusions=/android/**, /ios/**, /web/**, /build/**, **/*.freezed.dart, **/*.g.dart # Source code location. @@ -11,7 +11,12 @@ sonar.sourceEncoding=UTF-8 # Analyzer mode # Can be: -# - flutter (flutter analyze) - default -# - dart (dart analyze) -# - legacy (dartanalyzer) -sonar.flutter.analyzer.mode=flutter \ No newline at end of file +# - DETECT (attempt to detect automatically) - default +# - MANUAL (an existing report needs to be provided) +# - FLUTTER (flutter analyze) +# - DART (dart analyze) +# - DARTANALYZER (dartanalyzer) +sonar.flutter.analyzer.mode=FLUTTER + +# Use existing options to perform dartanalyzer analysis +sonar.dart.analyzer.options.override=false \ No newline at end of file diff --git a/bricks/flutter_clean_base/__brick__/{{project_name.snakeCase()}}/{{#use_sonar}}sonar-project.properties{{/use_sonar}} b/bricks/flutter_clean_base/__brick__/{{project_name.snakeCase()}}/{{#use_sonar}}sonar-project.properties{{/use_sonar}} index 5bf4b1b9..4502e705 100644 --- a/bricks/flutter_clean_base/__brick__/{{project_name.snakeCase()}}/{{#use_sonar}}sonar-project.properties{{/use_sonar}} +++ b/bricks/flutter_clean_base/__brick__/{{project_name.snakeCase()}}/{{#use_sonar}}sonar-project.properties{{/use_sonar}} @@ -1,4 +1,4 @@ -sonar.projectKey=ENTER_YOUR_SONAR_PROJECT_ID +sonar.projectKey={ENTER YOUR SONAR PROJECT ID} sonar.qualitygate.wait=true sonar.exclusions=/android/**, /ios/**, /web/**, /build/**, **/*.freezed.dart, **/*.g.dart # Source code location. @@ -11,7 +11,12 @@ sonar.sourceEncoding=UTF-8 # Analyzer mode # Can be: -# - flutter (flutter analyze) - default -# - dart (dart analyze) -# - legacy (dartanalyzer) -sonar.flutter.analyzer.mode=flutter \ No newline at end of file +# - DETECT (attempt to detect automatically) - default +# - MANUAL (an existing report needs to be provided) +# - FLUTTER (flutter analyze) +# - DART (dart analyze) +# - DARTANALYZER (dartanalyzer) +sonar.flutter.analyzer.mode=FLUTTER + +# Use existing options to perform dartanalyzer analysis +sonar.dart.analyzer.options.override=false \ No newline at end of file