Improve Flutter Code Quality with SonarQube I Flutter Static Code Analysis Tutorial

Описание к видео Improve Flutter Code Quality with SonarQube I Flutter Static Code Analysis Tutorial

Boost your Flutter code quality with SonarQube! In this video, learn how to set up and integrate SonarQube for static code analysis in Flutter projects. Detect code smells, security vulnerabilities, and maintain clean, efficient code. Stay on top of your development game with these powerful tools!

1. SonarQube Link: https://hub.docker.com/_/sonarqube/tags

2. SonarScanner Link :
https://docs.sonarsource.com/sonarqube/lat...

3. sonar-flutter-plugin Link : https://github.com/insideapp-oss/sonar-flu...

4. Create sonar-project.properties file in your root project
after creating that file paste this line of code
```

Project identification, either hardcode it or use Environment variables
sonar.projectKey=my project key
sonar.projectName=my project name
sonar.token=token

The host URL
sonar.host.url=http://localhost:9000

Source code location.
Path is relative to the sonar-project.properties file. Defaults to .
Use commas to specify more than one folder.
sonar.sources=lib
sonar.tests=test

Encoding of the source code. Default is default system encoding.
sonar.sourceEncoding=UTF-8

exclude generated files
sonar.exclusions=test/**/*_test.mocks.dart,lib/**/*.g.dart

```


5. Run this command in the project root directory’s terminal to connect your project with SonarQube:
```
flutter test --machine --coverage `greater than symbol` tests.output
sonar-scanner
```


#flutter #sonarqube #flutterflow #codequality #flutterdevelopment #dart #cleancode #sonarqubeflutter #mobiledevelopment #appdevelopment #fluttertips #developertools #techtutorial #sonarqubedart

Комментарии

Информация по комментариям в разработке