Skip to content

Commit a32fbdd

Browse files
committed
fix sonarqube dummy configuration
1 parent abf484c commit a32fbdd

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,20 @@ the [CI/CD pipelines](https://www.notion.so/rootstrap/Flutter-CI-CD-9a0a5957ee84
196196
- OPENAI_KEY
197197
198198
### Github Actions: Sonarqube
199+
- Go to you sonarqube server and configure a new project.
200+
- Configure the sonar-project.properties:
201+
example:
202+
'''
203+
sonar.projectKey=your-app-key
204+
sonar.projectName=your-project-name
205+
sonar.host.url=https://your-sonarqube-server.net
206+
sonar.projectVersion=1.0
207+
sonar.sourceEncoding=UTF-8
208+
'''
209+
# Main source directories
210+
sonar.sources=app/lib,modules/domain,modules/data,modules/common
211+
sonar.dart.exclusions=pubspec.yaml
212+
sonar.dart.analyzer.report.mode=LEGACY
199213
- Configure Sonarqube secrets vars on your repo settings:
200214
- SONAR_TOKEN (your sonarqube project token)
201215
- SONAR_URL (your sonarqube server url)

pubspec.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This config file is for Sonarqube only
2+
name: Sonar
3+
description: Sonar
4+
5+
publish_to: "none"
6+
version: 0.0.1+1
7+
8+
environment:
9+
sdk: '>=3.0.0 <4.0.0'
10+
11+
dependencies:
12+
flutter:
13+
sdk: flutter
14+
15+
dev_dependencies:
16+
flutter_test:
17+
sdk: flutter
18+
19+
flutter:
20+
generate: true
21+
uses-material-design: true

sonar-project.properties

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sonar.projectKey=tax-app-aaa
2+
sonar.projectName=tax-app-aaa
3+
sonar.host.url=https://sonarqube-developers.rootstrap.net
4+
sonar.projectVersion=1.0
5+
sonar.sourceEncoding=UTF-8
6+
# Main source directories
7+
sonar.sources=app/lib,modules/domain,modules/data,modules/common
8+
sonar.dart.exclusions=pubspec.yaml
9+
sonar.dart.analyzer.report.mode=LEGACY

0 commit comments

Comments
 (0)