You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -59,19 +60,21 @@ Install sonar-scanner as explained in the official documentation.
59
60
60
61
Create a **sonar-project.properties** file at the root with this content :
61
62
62
-
# Project identification
63
-
sonar.projectKey=flutter_rocks
64
-
sonar.projectName=Flutter Rocks
65
-
sonar.projectVersion=1.0
63
+
```console
64
+
# Project identification
65
+
sonar.projectKey=flutter_rocks
66
+
sonar.projectName=Flutter Rocks
67
+
sonar.projectVersion=1.0
66
68
67
-
# Source code location.
68
-
# Path is relative to the sonar-project.properties file. Defaults to .
69
-
# Use commas to specify more than one folder.
70
-
sonar.sources=lib
71
-
sonar.tests=test
69
+
# Source code location.
70
+
# Path is relative to the sonar-project.properties file. Defaults to .
71
+
# Use commas to specify more than one folder.
72
+
sonar.sources=lib
73
+
sonar.tests=test
72
74
73
-
# Encoding of the source code. Default is default system encoding.
74
-
sonar.sourceEncoding=UTF-8
75
+
# Encoding of the source code. Default is default system encoding.
76
+
sonar.sourceEncoding=UTF-8
77
+
```
75
78
76
79
*For a complete list of available options, please refer to the [SonarQube documentation](https://docs.sonarqube.org/latest/analysis/analysis-parameters/).*
77
80
@@ -80,14 +83,16 @@ Create a **sonar-project.properties** file at the root with this content :
80
83
81
84
Use the following commands from the root folder to start an analysis:
82
85
83
-
# Download dependencies
84
-
flutter pub get
85
-
# Run tests
86
-
flutter test --machine > tests.output
87
-
# Compute coverage (--machine and --coverage cannot be run at once...)
88
-
flutter test --coverage
89
-
# Run the analysis and publish to the SonarQube server
90
-
sonar-scanner
86
+
```console
87
+
# Download dependencies
88
+
flutter pub get
89
+
# Run tests
90
+
flutter test --machine > tests.output
91
+
# Compute coverage (--machine and --coverage cannot be run at once...)
92
+
flutter test --coverage
93
+
# Run the analysis and publish to the SonarQube server
0 commit comments