Analysis on Flutter code taking too much after SQ upgrade

Information:
- which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension): SonarQube Server Enterprise 2025.1.1.104738;
- how is SonarQube deployed: zip (Linux server);
- what are you trying to achieve: do a Flutter source code analysis without taking too much/without increase of analysis time;
- what have you tried so far to achieve this: change on the ‘New code’ definition, turn off the AI Code Assurance;

After upgrading SonarQube from 10.7 to 2025.1 we have seem the time spend on analysis increase from 9 to ~40 minutes; now the scanner logs shows a lot of more files to check, even with just little things changed on code.

21:09:15.009 INFO  ------------- Check Quality Gate status
21:09:15.010 INFO  Waiting for the analysis report to be processed (max 300s)
21:09:40.095 INFO  QUALITY GATE STATUS: PASSED - View details on https://sonarqube.COMPANYNAME.com.br/dashboard?id=root-consumer-android&pullRequest=26661
21:09:43.519 INFO  Analysis total time: 39:17.502 s
21:09:43.520 INFO  SonarScanner Engine completed successfully
21:09:44.841 INFO  EXECUTION SUCCESS
21:09:44.857 INFO  Total time: 39:22.559s

Is there anything we can do to resolve this?

Hi,

Could you provide a full, debug analysis log to help us dig into this, please?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann

Hi Ann!

I’ll seek for this complete log output and; I was analysing a part of the ‘longer analysis’ output and what I saw is that the Sensor Flutter takes a long time analysing just one file, as follows:

01:54:45.422 INFO  Only analyzing 21274 changed Kotlin files out of 21274.
01:54:45.436 INFO  21274 source files to be analyzed
01:54:55.441 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:55:05.441 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:55:15.442 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:55:25.442 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:55:35.442 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:55:45.442 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:55:55.443 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:56:05.443 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:56:15.443 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:56:25.444 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:56:35.444 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:56:45.444 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:56:55.444 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:57:05.444 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:57:15.445 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:57:25.445 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:57:35.445 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:57:45.445 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:57:55.446 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:58:05.446 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:58:15.446 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:58:25.446 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:58:35.447 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:58:45.447 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:58:55.447 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:59:05.447 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:59:15.448 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:59:25.448 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:59:35.448 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:59:45.448 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
01:59:55.449 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:00:05.449 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:00:15.449 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:00:25.449 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:00:35.450 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:00:45.450 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:00:55.450 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:01:05.450 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:01:15.451 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:01:25.451 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:01:35.451 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:01:45.451 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:01:55.452 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:02:05.452 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:02:15.452 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:02:25.452 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:02:35.452 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:02:45.453 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:02:55.453 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:03:05.453 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:03:15.453 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:03:25.454 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:03:35.454 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:03:45.454 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:03:55.454 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:04:05.455 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:04:15.455 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:04:25.455 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:04:35.455 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:04:45.456 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:04:55.465 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:05:05.465 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:05:15.466 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:05:25.466 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:05:35.466 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:05:45.466 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:05:55.467 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:06:05.467 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:06:15.467 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:06:25.468 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:06:35.468 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:06:45.468 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:06:55.468 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:07:05.469 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:07:15.469 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:07:25.469 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:07:35.469 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:07:45.470 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:07:55.470 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:08:05.470 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:08:15.470 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:08:25.471 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:08:35.471 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:08:45.471 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:08:55.471 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:09:05.471 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:09:15.472 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:09:25.472 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:09:35.472 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:09:45.472 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:09:55.473 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:10:05.473 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:10:15.473 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:10:25.474 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:10:35.474 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:10:45.474 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:10:55.474 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:11:05.475 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:11:15.475 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:11:25.475 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:11:35.475 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:11:45.475 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:11:55.476 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:12:05.476 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:12:15.476 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:12:25.476 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:12:35.477 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:12:45.477 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:12:55.477 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:13:05.535 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:13:15.535 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:13:25.536 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:13:35.536 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:13:45.536 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:13:55.536 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:14:05.537 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:14:15.537 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:14:25.537 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:14:35.537 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:14:45.537 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:14:55.538 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:15:05.538 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:15:15.538 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:15:25.539 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:15:35.539 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:15:45.539 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:15:55.539 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:16:05.580 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:16:15.580 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:16:25.581 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:16:35.581 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:16:45.581 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:16:55.582 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:17:05.582 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:17:15.582 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:17:25.582 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:17:35.582 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:17:45.583 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:17:55.583 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:18:05.583 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:18:15.583 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:18:25.584 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:18:35.584 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:18:45.584 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:18:55.584 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:19:05.585 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:19:15.585 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:19:25.585 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:19:35.585 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:19:45.586 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:19:55.658 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:20:05.658 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:20:15.658 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:20:25.659 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:20:35.659 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:20:45.659 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:20:55.659 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:21:05.660 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:21:15.660 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:21:25.660 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:21:35.720 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:21:45.720 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:21:55.721 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:22:05.721 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:22:15.721 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:22:25.721 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:22:35.722 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:22:45.722 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:22:55.722 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:23:05.722 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:23:15.723 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:23:25.723 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:23:35.723 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:23:45.723 INFO  0/21274 files analyzed, current file: feature/catalog-showcase/architecture/impl/src/main/kotlin/br/com/companyname/merchant/legacy/function/fasterfunction/ViewRestaurantScreenAttrEvent.kt
02:23:55.724 INFO  1197/21274 files analyzed, current file: feature/webservice/src/testFixtures/kotlin/br/com/companyname/webservice/response/menu/MenuItemResponseFactory.kt
02:24:05.724 INFO  3175/21274 files analyzed, current file: feature/discoverycards/impl/src/main/java/br/com/companyname/discoverycards/cards/merchantgrocery/carousel/MerchantGroceryItemCarouselAdapter.kt
02:24:15.724 INFO  5225/21274 files analyzed, current file: feature/address/impl/src/main/java/br/com/companyname/address/search/viewmodel/AddressSearchViewModel.kt

[...]

02:25:31.281 INFO  21274/21274 source files have been analyzed
02:25:31.282 INFO  Sensor Kotlin Sensor [kotlin] (done) | time=1846413ms

The Sensor Flutter takes a long time analysing just the ViewRestaurantScreenAttrEvent.kt file (from 1:54:55 to 2:25:35).

Is there any idea on why is this happening? It’s a pattern now, every analysis stays like this for a long time.

Hi!

Just to add to the discussion, we removed that file where the analysis stays for a long time, and now the scanner steps on another file:

18:42:49.858 INFO  Quality profile for kotlin: Consumer Android
18:42:49.858 INFO  ------------- Run sensors on module root-consumer-android
18:42:49.896 INFO  Load metrics repository
18:42:49.916 INFO  Load metrics repository (done) | time=19ms
18:42:50.545 INFO  Sensor JaCoCo XML Report Importer [jacoco]
18:42:51.645 INFO  Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
18:42:57.126 INFO  Sensor JaCoCo XML Report Importer [jacoco] (done) | time=6582ms
18:42:57.126 INFO  Sensor Kotlin Sensor [kotlin]
18:42:57.783 INFO  Only analyzing 21670 changed Kotlin files out of 21670.
18:42:57.800 INFO  21670 source files to be analyzed
18:43:07.807 INFO  0/21670 files analyzed, current file: feature/checkout/core/infra/src/main/kotlin/br/com/company/arch/plugin/emi/donation/RecurringDonationDialogInformationUiModel.kt
18:43:17.807 INFO  0/21670 files analyzed, current file: feature/checkout/core/infra/src/main/kotlin/br/com/company/arch/plugin/emi/donation/RecurringDonationDialogInformationUiModel.kt
18:43:27.807 INFO  0/21670 files analyzed, current file: feature/checkout/core/infra/src/main/kotlin/br/com/company/arch/plugin/emi/donation/RecurringDonationDialogInformationUiModel.kt
18:43:37.807 INFO  0/21670 files analyzed, current file: feature/checkout/core/infra/src/main/kotlin/br/com/company/arch/plugin/emi/donation/RecurringDonationDialogInformationUiModel.kt

[...]

19:18:29.714 INFO  0/21670 files analyzed, current file: feature/checkout/core/infra/src/main/kotlin/br/com/company/arch/plugin/emi/donation/RecurringDonationDialogInformationUiModel.kt 

[...]

19:21:32.728 INFO  ------------- Check Quality Gate status
19:21:32.728 INFO  Waiting for the analysis report to be processed (max 300s)
19:21:57.872 INFO  QUALITY GATE STATUS: PASSED - View details on https://sonarqube.companycorp.com.br/dashboard?id=root-consumer-android&pullRequest=26868
19:22:00.821 INFO  Analysis total time: 39:39.088 s
19:22:00.822 INFO  SonarScanner Engine completed successfully
19:22:01.898 INFO  EXECUTION SUCCESS
19:22:01.899 INFO  Total time: 39:42.860s

So the pattern seems to be to take a long time on the first file of the analysis.

Hi,

I’m looking for a full analysis log, starting from the analysis command itself, and with the debug flag on, so sonar.verbose=true in your properties or as a -D on the analysis command line.

 
Thx,
Ann

Hi @Eidil,

It looks like from the logs the slower sensor is not a Dart sensor but a Kotlin Sensor. (You can check this by excluding the Kotlin files from the analysis)

From the logs, I can also see that the Sensor detected 21274 in a single module. This made me think you’re using sonar-scanner. If this is a Gradle project, the recommended way will be to use sonar Gradle plugin.

So the issue you see in logs is potentially related to the fact, that before 10.8 we skipped generation of semantic model if you don’t provide the classpath for Kotlin (properties sonar.java.binaries, sonar.java.libraries). Starting 10.8, it changed, as this is impossible to do the analysis with the new Kotlin compiler API without semantic model. This change has a low impact on performance if your project is well configured (analyzed with Gradle) or doesn’t have many Kotlin files. What you see is not being stuck on a single file, but this is the generation of the semantic model (we’re working on improving the logging here to make it explicit)

In your case, without proper configuration + 21k Kotlin files, you noticed it.

So there’re few things you can do:

  • The latest release of SQS 2025.2 contains the full K2 migration with improved performance, so upgrade might make things faster but not as fast as it was before.
  • If you don’t care about analyzing the Kotlin part of your application, just exclude all the Kotlin files, the the Kotlin Sensor won’t run then.
  • If you do want to analyze the Kotlin project, there’re a few options. The simplest one will be to use the plugin for your build system (I assume Gradle). Or pass the properties sonar.java.binaries and sonar.java.libraries manually.

It’s hard to say what will be a better solution in your case. It all depends on your needs and the project structure. So if you can describe more your expectation and needs I can think of a solution that fits you better.

Let me know if you still have questions.

Best,
Margarita

1 Like