Setup exclusion rule on Android multi-module build

  • Enterprise Edition Version 10.2.1 (build 78527)
  • Docker

Hello I trying to set exclusions roles for multi-module Android project.
While Android builds in creates a temporary folder build to hold generated class files that are not not needed for code quality checks

Given our project structure is something along of
root

  • module 1
    • build
  • module 2
    • build
  • module 3
    • build

I tried to set exclusions rule in sonar-project properties as
sonar.exclusions=**/build/**,**/*Test*/**,**/test/**,**/*Debug*/**,**/*Release*/**
but still files in app/build/FLAVOR/LONG_PATH_TO_FILES/SomeClass.class got picked

Hi,

Could explain what you mean by ‘got picked’?

Analysis reports not on binaries, but on the code files.

 
Thx,
Ann

Hi Ann

when running Sonarqube of our CI we see the following error

18:15:55 ERROR: Error during SonarScanner execution
18:15:55 java.lang.IllegalStateException: Component key (SONAR_PROJECT_KEY-:app/build/intermediates/classes/NESTED_VERY_LONG_PATH_TO_TEST length (427) is longer than the maximum authorized (400)

There is no point for Sonar to scan Android build generated files when actual classes are in MODULE_NAME/src/main and MODULE_NAME/src/test
Hence why I want to exclude MODULE_NAME/build and MODULE_NAME/.gradle

I tried to do it from sonar-project.properties as

sonar.exclusions=**/build/**/*,**/.gradle/**/*,**/*Test*/**/*,**/test/**/*,**/*Debug*/**/*,**/*Release*/**/*
sonar.coverage.exclusions=**/build/**/*,**/.gradle/**/*

but in both scenarios build failed because sonar executed/scanned build folder

Hi,

Thanks for the detail. To be clear, I suppose you’re running the SonarScanner for Gradle?

Could you turn on --info logging and provide that log, please?

 
Thx,
Ann

Hi Ann

--info flag is not recognised :innocent:

19:55:04 + sonar-scanner --info -Dsonar.token=**** -Dsonar.branch.name=techTask/16.2/run-sonarqube-task
19:55:04 ERROR: Unrecognized option: --info
19:55:04 INFO: 
19:55:04 INFO: usage: sonar-scanner [options]
19:55:04 INFO: 
19:55:04 INFO: Options:
19:55:04 INFO:  -D,--define <arg>     Define property
19:55:04 INFO:  -h,--help             Display help information
19:55:04 INFO:  -v,--version          Display version information
19:55:04 INFO:  -X,--debug            Produce execution debug output

so I went with --debug bellow is log till we hit first files in the project

22:55:57 + sonar-scanner --debug -Dsonar.token=**** -Dsonar.branch.name=techTask/16.2/run-sonarqube-task
22:55:57 22:55:56.817 INFO: Scanner configuration file: /opt/sonar-scanner/sonar-scanner-4.8.0.2856/conf/sonar-scanner.properties
22:55:57 22:55:56.818 INFO: Project root configuration file: /home/ec2-user/data/workspace/Android/Android.Build/sources/sonar-project.properties
22:55:57 22:55:56.836 INFO: SonarScanner 4.8.0.2856
22:55:57 22:55:56.836 INFO: Java 17.0.7 Oracle Corporation (64-bit)
22:55:57 22:55:56.837 INFO: Linux 6.1.55-75.123.amzn2023.x86_64 amd64
22:55:57 22:55:56.925 DEBUG: keyStore is : 
22:55:57 22:55:56.925 DEBUG: keyStore type is : pkcs12
22:55:57 22:55:56.925 DEBUG: keyStore provider is : 
22:55:57 22:55:56.925 DEBUG: init keystore
22:55:57 22:55:56.926 DEBUG: init keymanager of type SunX509
22:55:57 22:55:56.992 DEBUG: Create: /home/ec2-user/.sonar/cache
22:55:57 22:55:56.992 INFO: User cache: /home/ec2-user/.sonar/cache
22:55:57 22:55:56.992 DEBUG: Create: /home/ec2-user/.sonar/cache/_tmp
22:55:57 22:55:56.994 DEBUG: Extract sonar-scanner-api-batch in temp...
22:55:57 22:55:56.995 DEBUG: Get bootstrap index...
22:55:57 22:55:56.995 DEBUG: Download: https://sonarqube.my.company/batch/index
22:55:57 22:55:57.152 DEBUG: Get bootstrap completed
22:55:57 22:55:57.154 DEBUG: Download https://sonarqube.my.company/batch/file?name=scanner-enterprise-10.2.1.78527-all.jar to /home/ec2-user/.sonar/cache/_tmp/fileCache17989315342036762697.tmp
22:55:58 22:55:57.689 DEBUG: Create isolated classloader...
22:55:58 22:55:57.697 DEBUG: Start temp cleaning...
22:55:58 22:55:57.700 DEBUG: Temp cleaning done
22:55:58 22:55:57.700 DEBUG: Execution getVersion
22:55:58 22:55:57.709 INFO: Analyzing on SonarQube server 10.2.1.78527
22:55:58 22:55:57.709 INFO: Default locale: "en", source code encoding: "UTF-8"
22:55:58 22:55:57.709 DEBUG: Work directory: /home/ec2-user/data/workspace/Android/Android.Build/sources/.scannerwork
22:55:58 22:55:57.710 DEBUG: Execution execute
22:55:58 22:55:57.925 DEBUG: Enterprise 10.2.1.78527
22:55:58 22:55:58.084 INFO: Load global settings
22:55:58 22:55:58.216 DEBUG: GET 200 https://sonarqube.my.company/api/settings/values.protobuf | time=132ms
22:55:58 22:55:58.239 INFO: Load global settings (done) | time=155ms
22:55:58 22:55:58.243 INFO: Server id: SERVER_ID
22:55:58 22:55:58.246 DEBUG: Create : /home/ec2-user/.sonar/_tmp
22:55:58 22:55:58.246 INFO: User cache: /home/ec2-user/.sonar/cache
22:55:58 22:55:58.250 INFO: Load/download plugins
22:55:58 22:55:58.250 INFO: Load plugins index
22:55:58 22:55:58.263 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/installed | time=13ms
22:55:58 22:55:58.288 INFO: Load plugins index (done) | time=38ms
22:55:58 22:55:58.290 DEBUG: Download plugin 'abap' to '/home/ec2-user/.sonar/_tmp/fileCache7441361461697835326.tmp'
22:55:58 22:55:58.299 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=abap | time=9ms
22:55:58 22:55:58.332 DEBUG: Download plugin 'sonarapex' to '/home/ec2-user/.sonar/_tmp/fileCache8283019083147379430.tmp'
22:55:58 22:55:58.342 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=sonarapex | time=10ms
22:55:58 22:55:58.393 DEBUG: Download plugin 'csharp' to '/home/ec2-user/.sonar/_tmp/fileCache14130931976026863835.tmp'
22:55:58 22:55:58.402 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=csharp | time=9ms
22:55:58 22:55:58.438 DEBUG: Download plugin 'cpp' to '/home/ec2-user/.sonar/_tmp/fileCache5108945120032510785.tmp'
22:55:58 22:55:58.469 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=cpp | time=31ms
22:55:59 22:55:58.739 DEBUG: Download plugin 'cobol' to '/home/ec2-user/.sonar/_tmp/fileCache17010706728271611483.tmp'
22:55:59 22:55:58.748 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=cobol | time=8ms
22:55:59 22:55:58.775 DEBUG: Download plugin 'cayc' to '/home/ec2-user/.sonar/_tmp/fileCache18289641968047325313.tmp'
22:55:59 22:55:58.805 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=cayc | time=30ms
22:55:59 22:55:58.833 DEBUG: Download plugin 'config' to '/home/ec2-user/.sonar/_tmp/fileCache6471717922839318258.tmp'
22:55:59 22:55:58.842 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=config | time=9ms
22:55:59 22:55:58.844 DEBUG: Download plugin 'dbd' to '/home/ec2-user/.sonar/_tmp/fileCache6130733821829346399.tmp'
22:55:59 22:55:58.852 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=dbd | time=8ms
22:55:59 22:55:58.872 DEBUG: Download plugin 'dbdjavafrontend' to '/home/ec2-user/.sonar/_tmp/fileCache15060583014608081742.tmp'
22:55:59 22:55:58.879 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=dbdjavafrontend | time=7ms
22:55:59 22:55:58.892 DEBUG: Download plugin 'dbdpythonfrontend' to '/home/ec2-user/.sonar/_tmp/fileCache7891036948621721147.tmp'
22:55:59 22:55:58.904 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=dbdpythonfrontend | time=12ms
22:55:59 22:55:58.916 DEBUG: Download plugin 'dependencycheck' to '/home/ec2-user/.sonar/_tmp/fileCache3805956718873355368.tmp'
22:55:59 22:55:58.923 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=dependencycheck | time=7ms
22:55:59 22:55:58.944 DEBUG: Download plugin 'flex' to '/home/ec2-user/.sonar/_tmp/fileCache5314934542489868934.tmp'
22:55:59 22:55:58.952 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=flex | time=8ms
22:55:59 22:55:58.961 DEBUG: Download plugin 'go' to '/home/ec2-user/.sonar/_tmp/fileCache4745163008565806466.tmp'
22:55:59 22:55:58.968 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=go | time=7ms
22:55:59 22:55:59.007 DEBUG: Download plugin 'web' to '/home/ec2-user/.sonar/_tmp/fileCache8213937220218733377.tmp'
22:55:59 22:55:59.015 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=web | time=7ms
22:55:59 22:55:59.020 DEBUG: Download plugin 'iac' to '/home/ec2-user/.sonar/_tmp/fileCache8268525548654377586.tmp'
22:55:59 22:55:59.027 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=iac | time=7ms
22:55:59 22:55:59.038 DEBUG: Download plugin 'jacoco' to '/home/ec2-user/.sonar/_tmp/fileCache6953454804088299380.tmp'
22:55:59 22:55:59.045 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=jacoco | time=7ms
22:55:59 22:55:59.047 DEBUG: Download plugin 'java' to '/home/ec2-user/.sonar/_tmp/fileCache13490500234186876879.tmp'
22:55:59 22:55:59.054 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=java | time=7ms
22:55:59 22:55:59.141 DEBUG: Download plugin 'javascript' to '/home/ec2-user/.sonar/_tmp/fileCache2808913943399922520.tmp'
22:55:59 22:55:59.149 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=javascript | time=8ms
22:55:59 22:55:59.267 DEBUG: Download plugin 'kotlin' to '/home/ec2-user/.sonar/_tmp/fileCache3800140864993518268.tmp'
22:55:59 22:55:59.274 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=kotlin | time=7ms
22:55:59 22:55:59.458 DEBUG: Download plugin 'php' to '/home/ec2-user/.sonar/_tmp/fileCache16831720159556023487.tmp'
22:55:59 22:55:59.465 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=php | time=7ms
22:55:59 22:55:59.488 DEBUG: Download plugin 'pli' to '/home/ec2-user/.sonar/_tmp/fileCache15113846507219785866.tmp'
22:55:59 22:55:59.495 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=pli | time=7ms
22:55:59 22:55:59.504 DEBUG: Download plugin 'plsql' to '/home/ec2-user/.sonar/_tmp/fileCache5338855194367561754.tmp'
22:55:59 22:55:59.510 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=plsql | time=6ms
22:55:59 22:55:59.529 DEBUG: Download plugin 'python' to '/home/ec2-user/.sonar/_tmp/fileCache8501452016946963788.tmp'
22:55:59 22:55:59.536 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=python | time=7ms
22:56:00 22:55:59.594 DEBUG: Download plugin 'rpg' to '/home/ec2-user/.sonar/_tmp/fileCache1421991330082909036.tmp'
22:56:00 22:55:59.601 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=rpg | time=7ms
22:56:00 22:55:59.612 DEBUG: Download plugin 'ruby' to '/home/ec2-user/.sonar/_tmp/fileCache5316035056874599164.tmp'
22:56:00 22:55:59.620 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=ruby | time=8ms
22:56:00 22:55:59.690 DEBUG: Download plugin 'sonarscala' to '/home/ec2-user/.sonar/_tmp/fileCache12023899683059266738.tmp'
22:56:00 22:55:59.698 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=sonarscala | time=8ms
22:56:00 22:55:59.759 DEBUG: Download plugin 'swift' to '/home/ec2-user/.sonar/_tmp/fileCache10468242245025996012.tmp'
22:56:00 22:55:59.768 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=swift | time=9ms
22:56:00 22:55:59.780 DEBUG: Download plugin 'tsql' to '/home/ec2-user/.sonar/_tmp/fileCache11454932408991727244.tmp'
22:56:00 22:55:59.788 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=tsql | time=8ms
22:56:00 22:55:59.801 DEBUG: Download plugin 'text' to '/home/ec2-user/.sonar/_tmp/fileCache6258506948046128777.tmp'
22:56:00 22:55:59.808 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=text | time=7ms
22:56:00 22:55:59.824 DEBUG: Download plugin 'vbnet' to '/home/ec2-user/.sonar/_tmp/fileCache12896166771956545636.tmp'
22:56:00 22:55:59.831 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=vbnet | time=7ms
22:56:00 22:55:59.855 DEBUG: Download plugin 'vb' to '/home/ec2-user/.sonar/_tmp/fileCache5753687173514070926.tmp'
22:56:00 22:55:59.863 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=vb | time=8ms
22:56:00 22:55:59.876 DEBUG: Download plugin 'security' to '/home/ec2-user/.sonar/_tmp/fileCache582002358358690044.tmp'
22:56:00 22:55:59.883 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=security | time=7ms
22:56:00 22:55:59.947 DEBUG: Download plugin 'securitycsharpfrontend' to '/home/ec2-user/.sonar/_tmp/fileCache1880432454785349093.tmp'
22:56:00 22:55:59.954 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=securitycsharpfrontend | time=7ms
22:56:00 22:55:59.963 DEBUG: Download plugin 'securityjsfrontend' to '/home/ec2-user/.sonar/_tmp/fileCache1977609717576159045.tmp'
22:56:00 22:55:59.970 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=securityjsfrontend | time=7ms
22:56:00 22:55:59.973 DEBUG: Download plugin 'securityjavafrontend' to '/home/ec2-user/.sonar/_tmp/fileCache17941414688965230037.tmp'
22:56:00 22:55:59.979 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=securityjavafrontend | time=6ms
22:56:00 22:56:00.034 DEBUG: Download plugin 'securityphpfrontend' to '/home/ec2-user/.sonar/_tmp/fileCache1578959929469332810.tmp'
22:56:00 22:56:00.048 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=securityphpfrontend | time=14ms
22:56:00 22:56:00.071 DEBUG: Download plugin 'securitypythonfrontend' to '/home/ec2-user/.sonar/_tmp/fileCache15481135105476748102.tmp'
22:56:00 22:56:00.079 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=securitypythonfrontend | time=7ms
22:56:00 22:56:00.094 DEBUG: Download plugin 'xml' to '/home/ec2-user/.sonar/_tmp/fileCache3438525873167480120.tmp'
22:56:00 22:56:00.102 DEBUG: GET 200 https://sonarqube.my.company/api/plugins/download?plugin=xml | time=8ms
22:56:00 22:56:00.120 INFO: Load/download plugins (done) | time=1870ms
22:56:00 22:56:00.412 DEBUG: Plugins:
22:56:00 22:56:00.412 DEBUG:   * Clean as You Code 2.1.0.500 (cayc)
22:56:00 22:56:00.412 DEBUG:   * IaC Code Quality and Security 1.20.0.5654 (iac)
22:56:00 22:56:00.412 DEBUG:   * PL/SQL Code Quality and Security 3.10.0.5282 (plsql)
22:56:00 22:56:00.412 DEBUG:   * Scala Code Quality and Security 1.14.0.4481 (sonarscala)
22:56:00 22:56:00.412 DEBUG:   * C# Code Quality and Security 9.8.0.76515 (csharp)
22:56:00 22:56:00.412 DEBUG:   * Vulnerability Analysis 10.2.0.22608 (security)
22:56:00 22:56:00.412 DEBUG:   * Java Code Quality and Security 7.24.0.32100 (java)
22:56:00 22:56:00.412 DEBUG:   * HTML Code Quality and Security 3.9.0.3600 (web)
22:56:00 22:56:00.412 DEBUG:   * Flex Code Quality and Security 2.10.0.3458 (flex)
22:56:00 22:56:00.412 DEBUG:   * XML Code Quality and Security 2.10.0.4108 (xml)
22:56:00 22:56:00.412 DEBUG:   * Text Code Quality and Security 2.3.0.1632 (text)
22:56:00 22:56:00.412 DEBUG:   * VB.NET Code Quality and Security 9.8.0.76515 (vbnet)
22:56:00 22:56:00.412 DEBUG:   * Swift Code Quality and Security 4.10.0.5999 (swift)
22:56:00 22:56:00.412 DEBUG:   * Dependency-Check 4.0.0 (dependencycheck)
22:56:00 22:56:00.413 DEBUG:   * CFamily Code Quality and Security 6.48.1.62610 (cpp)
22:56:00 22:56:00.413 DEBUG:   * Python Code Quality and Security 4.7.0.12181 (python)
22:56:00 22:56:00.413 DEBUG:   * Dataflow Bug Detection Rules for Python 1.17.0.4892 (dbdpythonfrontend)
22:56:00 22:56:00.413 DEBUG:   * Dataflow Bug Detection 1.17.0.4892 (dbd)
22:56:00 22:56:00.413 DEBUG:   * Go Code Quality and Security 1.14.0.4481 (go)
22:56:00 22:56:00.413 DEBUG:   * JaCoCo 1.3.0.1538 (jacoco)
22:56:00 22:56:00.413 DEBUG:   * Kotlin Code Quality and Security 2.17.0.2902 (kotlin)
22:56:00 22:56:00.413 DEBUG:   * RPG Code Quality 3.6.0.3520 (rpg)
22:56:00 22:56:00.413 DEBUG:   * Dataflow Bug Detection Rules for Java 1.17.0.4892 (dbdjavafrontend)
22:56:00 22:56:00.413 DEBUG:   * PL/I Code Quality and Security 1.14.0.3735 (pli)
22:56:00 22:56:00.413 DEBUG:   * T-SQL Code Quality and Security 1.10.0.5799 (tsql)
22:56:00 22:56:00.413 DEBUG:   * VB6 Code Quality and Security 2.11.0.3706 (vb)
22:56:00 22:56:00.413 DEBUG:   * Apex Code Quality and Security 1.14.0.4481 (sonarapex)
22:56:00 22:56:00.413 DEBUG:   * JavaScript/TypeScript/CSS Code Quality and Security 10.5.1.22382 (javascript)
22:56:00 22:56:00.413 DEBUG:   * Ruby Code Quality and Security 1.14.0.4481 (ruby)
22:56:00 22:56:00.413 DEBUG:   * Vulnerability Rules for C# 10.2.0.22608 (securitycsharpfrontend)
22:56:00 22:56:00.413 DEBUG:   * Vulnerability Rules for Java 10.2.0.22608 (securityjavafrontend)
22:56:00 22:56:00.413 DEBUG:   * Vulnerability Rules for JS 10.2.0.22608 (securityjsfrontend)
22:56:00 22:56:00.413 DEBUG:   * COBOL Code Quality 5.5.0.6450 (cobol)
22:56:00 22:56:00.413 DEBUG:   * Vulnerability Rules for Python 10.2.0.22608 (securitypythonfrontend)
22:56:00 22:56:00.413 DEBUG:   * PHP Code Quality and Security 3.32.0.10180 (php)
22:56:00 22:56:00.414 DEBUG:   * ABAP Code Quality and Security 3.13.0.4389 (abap)
22:56:00 22:56:00.414 DEBUG:   * Configuration detection for Code Quality and Security 1.3.0.654 (config)
22:56:00 22:56:00.414 DEBUG:   * Vulnerability Rules for PHP 10.2.0.22608 (securityphpfrontend)
22:56:00 22:56:00.455 INFO: Loaded core extensions: developer-scanner
22:56:00 22:56:00.468 DEBUG: Installed core extension: developer-scanner
22:56:00 22:56:00.789 INFO: Process project properties
22:56:00 22:56:00.795 INFO: Process project properties (done) | time=6ms
22:56:00 22:56:00.797 INFO: Execute project builders
22:56:00 22:56:00.798 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
22:56:00 22:56:00.798 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
22:56:00 22:56:00.799 INFO: Execute project builders (done) | time=2ms
22:56:00 22:56:00.800 INFO: Project key: PROJECT_ID-
22:56:00 22:56:00.800 INFO: Base dir: /home/ec2-user/data/workspace/Android/Android.Build/sources
22:56:00 22:56:00.800 INFO: Working dir: /home/ec2-user/data/workspace/Android/Android.Build/sources/.scannerwork
22:56:00 22:56:00.801 DEBUG: Project global encoding: UTF-8, default locale: en
22:56:00 22:56:00.807 INFO: Load project settings for component key: 'PROJECT_ID-'
22:56:00 22:56:00.873 DEBUG: GET 200 https://sonarqube.my.company/api/settings/values.protobuf?component=PROJECT_ID- | time=66ms
22:56:00 22:56:00.874 INFO: Load project settings for component key: 'PROJECT_ID-' (done) | time=67ms
22:56:00 22:56:00.933 INFO: Load project branches
22:56:01 22:56:01.028 DEBUG: GET 200 https://sonarqube.my.company/api/project_branches/list?project=PROJECT_ID- | time=95ms
22:56:01 22:56:01.034 INFO: Load project branches (done) | time=101ms
22:56:01 22:56:01.035 INFO: Load branch configuration
22:56:01 22:56:01.035 INFO: Found manual configuration of branch/PR analysis. Skipping automatic configuration.
22:56:01 22:56:01.036 INFO: Load branch configuration (done) | time=1ms
22:56:01 22:56:01.041 DEBUG: Creating module hierarchy
22:56:01 22:56:01.041 DEBUG:   Init module 'tda.android'
22:56:01 22:56:01.042 DEBUG:     Base dir: /home/ec2-user/data/workspace/Android/Android.Build/sources
22:56:01 22:56:01.042 DEBUG:     Working dir: /home/ec2-user/data/workspace/Android/Android.Build/sources/.scannerwork
22:56:01 22:56:01.042 DEBUG:     Module global encoding: UTF-8, default locale: en
22:56:01 22:56:01.055 DEBUG: Available languages:
22:56:01 22:56:01.056 DEBUG:   * Terraform => "terraform"
22:56:01 22:56:01.056 DEBUG:   * CloudFormation => "cloudformation"
22:56:01 22:56:01.056 DEBUG:   * Kubernetes => "kubernetes"
22:56:01 22:56:01.056 DEBUG:   * Docker => "docker"
22:56:01 22:56:01.056 DEBUG:   * AzureResourceManager => "azureresourcemanager"
22:56:01 22:56:01.056 DEBUG:   * PL/SQL => "plsql"
22:56:01 22:56:01.056 DEBUG:   * Scala => "scala"
22:56:01 22:56:01.056 DEBUG:   * C# => "cs"
22:56:01 22:56:01.056 DEBUG:   * Java => "java"
22:56:01 22:56:01.056 DEBUG:   * HTML => "web"
22:56:01 22:56:01.056 DEBUG:   * JSP => "jsp"
22:56:01 22:56:01.056 DEBUG:   * Flex => "flex"
22:56:01 22:56:01.056 DEBUG:   * XML => "xml"
22:56:01 22:56:01.056 DEBUG:   * Text => "text"
22:56:01 22:56:01.056 DEBUG:   * Secrets => "secrets"
22:56:01 22:56:01.056 DEBUG:   * VB.NET => "vbnet"
22:56:01 22:56:01.056 DEBUG:   * Swift => "swift"
22:56:01 22:56:01.056 DEBUG:   * Neutral => "neutral"
22:56:01 22:56:01.056 DEBUG:   * C => "c"
22:56:01 22:56:01.056 DEBUG:   * C++ => "cpp"
22:56:01 22:56:01.056 DEBUG:   * Objective-C => "objc"
22:56:01 22:56:01.056 DEBUG:   * Python => "py"
22:56:01 22:56:01.056 DEBUG:   * Go => "go"
22:56:01 22:56:01.056 DEBUG:   * Kotlin => "kotlin"
22:56:01 22:56:01.056 DEBUG:   * RPG => "rpg"
22:56:01 22:56:01.056 DEBUG:   * PL/I => "pli"
22:56:01 22:56:01.056 DEBUG:   * T-SQL => "tsql"
22:56:01 22:56:01.057 DEBUG:   * Vb => "vb"
22:56:01 22:56:01.057 DEBUG:   * Apex => "apex"
22:56:01 22:56:01.057 DEBUG:   * JavaScript => "js"
22:56:01 22:56:01.057 DEBUG:   * TypeScript => "ts"
22:56:01 22:56:01.057 DEBUG:   * CSS => "css"
22:56:01 22:56:01.057 DEBUG:   * Ruby => "ruby"
22:56:01 22:56:01.057 DEBUG:   * COBOL => "cobol"
22:56:01 22:56:01.057 DEBUG:   * PHP => "php"
22:56:01 22:56:01.057 DEBUG:   * ABAP => "abap"
22:56:01 22:56:01.057 DEBUG:   * YAML => "yaml"
22:56:01 22:56:01.057 DEBUG:   * JSON => "json"
22:56:01 22:56:01.076 WARN: SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.
22:56:01 22:56:01.081 INFO: Auto-configuring with CI 'Jenkins'
22:56:01 22:56:01.083 INFO: Load quality profiles
22:56:01 22:56:01.175 DEBUG: GET 200 https://sonarqube.my.company/api/qualityprofiles/search.protobuf?project=PROJECT_ID- | time=92ms
22:56:01 22:56:01.189 INFO: Load quality profiles (done) | time=106ms
22:56:01 22:56:01.194 INFO: Load active rules
22:56:01 22:56:01.240 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYLvwn6nAPV6KNwcbWZp&ps=500&p=1 | time=46ms
22:56:01 22:56:01.344 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRm9Z_xTU1jLAaxA3&ps=500&p=1 | time=39ms
22:56:01 22:56:01.399 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRnD5_xTU1jLAaxCU&ps=500&p=1 | time=50ms
22:56:01 22:56:01.417 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRnIr_xTU1jLAaxC0&ps=500&p=1 | time=15ms
22:56:01 22:56:01.651 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRnYd_xTU1jLAaxK8&ps=500&p=1 | time=234ms
22:56:02 22:56:01.907 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRnnu_xTU1jLAaxR5&ps=500&p=1 | time=237ms
22:56:02 22:56:01.973 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKKTyp7VBDx0X90V0&ps=500&p=1 | time=58ms
22:56:02 22:56:02.017 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYa9ftLeNqYdh7cpLcrc&ps=500&p=1 | time=42ms
22:56:02 22:56:02.134 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKKeYp7VBDx0X90a6&ps=500&p=1 | time=116ms
22:56:02 22:56:02.493 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRopG_xTU1jLAaxwI&ps=500&p=1 | time=357ms
22:56:02 22:56:02.628 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRopG_xTU1jLAaxwI&ps=500&p=2 | time=126ms
22:56:02 22:56:02.675 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRo-0_xTU1jLAax4I&ps=500&p=1 | time=46ms
22:56:02 22:56:02.737 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRpLu_xTU1jLAax6w&ps=500&p=1 | time=61ms
22:56:03 22:56:02.787 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRpE6_xTU1jLAax4-&ps=500&p=1 | time=48ms
22:56:03 22:56:02.800 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX70rf2u7SW2g2RxXEIz&ps=500&p=1 | time=13ms
22:56:03 22:56:02.824 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX70rf4v7SW2g2RxXEI3&ps=500&p=1 | time=23ms
22:56:03 22:56:02.950 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRptO_xTU1jLAayIW&ps=500&p=1 | time=126ms
22:56:03 22:56:02.999 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX70rf9r7SW2g2RxXEJw&ps=500&p=1 | time=41ms
22:56:03 22:56:03.052 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKK2Op7VBDx0X90f2&ps=500&p=1 | time=52ms
22:56:03 22:56:03.073 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX70rgDT7SW2g2RxXEKM&ps=500&p=1 | time=20ms
22:56:03 22:56:03.354 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKLG-p7VBDx0X90sr&ps=500&p=1 | time=281ms
22:56:03 22:56:03.529 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKLXap7VBDx0X905D&ps=500&p=1 | time=169ms
22:56:03 22:56:03.569 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRnQl_xTU1jLAaxFW&ps=500&p=1 | time=37ms
22:56:03 22:56:03.675 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRnLf_xTU1jLAaxD8&ps=500&p=1 | time=105ms
22:56:04 22:56:03.718 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKLkop7VBDx0X909S&ps=500&p=1 | time=41ms
22:56:04 22:56:03.740 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX40f-W_wWAxkLvDOScw&ps=500&p=1 | time=21ms
22:56:04 22:56:03.778 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKMHSp7VBDx0X91Cg&ps=500&p=1 | time=38ms
22:56:04 22:56:03.831 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKL8Up7VBDx0X91BC&ps=500&p=1 | time=52ms
22:56:04 22:56:03.862 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKLv5p7VBDx0X90-s&ps=500&p=1 | time=30ms
22:56:04 22:56:03.907 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYa9gobmNqYdh7cpLcxs&ps=500&p=1 | time=44ms
22:56:04 22:56:03.943 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRny0_xTU1jLAaxVF&ps=500&p=1 | time=35ms
22:56:04 22:56:04.133 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRoER_xTU1jLAaxdq&ps=500&p=1 | time=189ms
22:56:04 22:56:04.190 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKMcSp7VBDx0X91GW&ps=500&p=1 | time=54ms
22:56:04 22:56:04.319 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRpZk_xTU1jLAax_2&ps=500&p=1 | time=127ms
22:56:04 22:56:04.372 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AX70rhP87SW2g2RxXERZ&ps=500&p=1 | time=50ms
22:56:04 22:56:04.414 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYrdHZK-YgV8HQUTrjyV&ps=500&p=1 | time=41ms
22:56:04 22:56:04.471 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKMrYp7VBDx0X91Kh&ps=500&p=1 | time=56ms
22:56:05 22:56:04.618 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXtTKNCap7VBDx0X91S0&ps=500&p=1 | time=146ms
22:56:05 22:56:04.832 DEBUG: GET 200 https://sonarqube.my.company/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXsVRp7Q_xTU1jLAayO_&ps=500&p=1 | time=211ms
22:56:05 22:56:04.846 INFO: Load active rules (done) | time=3652ms
22:56:05 22:56:04.850 INFO: Load analysis cache
22:56:05 22:56:04.878 DEBUG: GET 404 https://sonarqube.my.company/api/analysis_cache/get?project=PROJECT_ID-&branch=main | time=28ms
22:56:05 22:56:04.878 INFO: Load analysis cache (404) | time=28ms
22:56:05 22:56:04.901 INFO: Branch name: techTask/16.2/run-sonarqube-task
22:56:05 22:56:04.917 INFO: Load project repositories
22:56:06 22:56:05.835 DEBUG: GET 200 https://sonarqube.my.company/batch/project.protobuf?key=PROJECT_ID-&branch=main | time=917ms
22:56:06 22:56:05.856 INFO: Load project repositories (done) | time=939ms
22:56:06 22:56:05.874 DEBUG: Declared patterns of language Terraform were converted to sonar.lang.patterns.terraform : **/*.tf
22:56:06 22:56:05.875 DEBUG: Declared patterns of language CloudFormation were converted to sonar.lang.patterns.cloudformation : 
22:56:06 22:56:05.875 DEBUG: Declared patterns of language Kubernetes were converted to sonar.lang.patterns.kubernetes : 
22:56:06 22:56:05.875 DEBUG: Declared patterns of language Docker were converted to sonar.lang.patterns.docker : 
22:56:06 22:56:05.875 DEBUG: Declared patterns of language AzureResourceManager were converted to sonar.lang.patterns.azureresourcemanager : **/*.bicep
22:56:06 22:56:05.875 DEBUG: Declared patterns of language PL/SQL were converted to sonar.lang.patterns.plsql : **/*.sql,**/*.pks,**/*.pkb
22:56:06 22:56:05.875 DEBUG: Declared patterns of language Scala were converted to sonar.lang.patterns.scala : **/*.scala
22:56:06 22:56:05.875 DEBUG: Declared patterns of language C# were converted to sonar.lang.patterns.cs : **/*.cs
22:56:06 22:56:05.875 DEBUG: Declared patterns of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
22:56:06 22:56:05.876 DEBUG: Declared patterns of language HTML were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml,**/*.cmp,**/*.twig
22:56:06 22:56:05.876 DEBUG: Declared patterns of language JSP were converted to sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx
22:56:06 22:56:05.876 DEBUG: Declared patterns of language Flex were converted to sonar.lang.patterns.flex : **/*.as
22:56:06 22:56:05.876 DEBUG: Declared patterns of language XML were converted to sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl,**/*.config
22:56:06 22:56:05.876 DEBUG: Declared patterns of language Text were converted to sonar.lang.patterns.text : 
22:56:06 22:56:05.876 DEBUG: Declared patterns of language Secrets were converted to sonar.lang.patterns.secrets : 
22:56:06 22:56:05.876 DEBUG: Declared patterns of language VB.NET were converted to sonar.lang.patterns.vbnet : **/*.vb
22:56:06 22:56:05.877 DEBUG: Declared patterns of language Swift were converted to sonar.lang.patterns.swift : **/*.swift
22:56:06 22:56:05.877 DEBUG: Declared patterns of language Neutral were converted to sonar.lang.patterns.neutral : 
22:56:06 22:56:05.877 DEBUG: Declared patterns of language C were converted to sonar.lang.patterns.c : **/*.c,**/*.h
22:56:06 22:56:05.877 DEBUG: Declared patterns of language C++ were converted to sonar.lang.patterns.cpp : **/*.cc,**/*.cpp,**/*.cxx,**/*.c++,**/*.hh,**/*.hpp,**/*.hxx,**/*.h++,**/*.ipp
22:56:06 22:56:05.877 DEBUG: Declared patterns of language Objective-C were converted to sonar.lang.patterns.objc : **/*.m
22:56:06 22:56:05.877 DEBUG: Declared patterns of language Python were converted to sonar.lang.patterns.py : **/*.py
22:56:06 22:56:05.877 DEBUG: Declared patterns of language Go were converted to sonar.lang.patterns.go : **/*.go
22:56:06 22:56:05.877 DEBUG: Declared patterns of language Kotlin were converted to sonar.lang.patterns.kotlin : **/*.kt,**/*.kts
22:56:06 22:56:05.877 DEBUG: Declared patterns of language RPG were converted to sonar.lang.patterns.rpg : **/*.rpg,**/*.rpgle,**/*.sqlrpgle,**/*.rpg,**/*.rpgle,**/*.sqlrpgle
22:56:06 22:56:05.878 DEBUG: Declared patterns of language PL/I were converted to sonar.lang.patterns.pli : **/*.pli
22:56:06 22:56:05.878 DEBUG: Declared patterns of language T-SQL were converted to sonar.lang.patterns.tsql : **/*.tsql
22:56:06 22:56:05.878 DEBUG: Declared patterns of language Vb were converted to sonar.lang.patterns.vb : **/*.bas,**/*.frm,**/*.ctl,**/*.bas,**/*.frm,**/*.ctl
22:56:06 22:56:05.878 DEBUG: Declared patterns of language Apex were converted to sonar.lang.patterns.apex : **/*.cls,**/*.trigger
22:56:06 22:56:05.878 DEBUG: Declared patterns of language JavaScript were converted to sonar.lang.patterns.js : **/*.js,**/*.jsx,**/*.cjs,**/*.mjs,**/*.vue
22:56:06 22:56:05.878 DEBUG: Declared patterns of language TypeScript were converted to sonar.lang.patterns.ts : **/*.ts,**/*.tsx,**/*.cts,**/*.mts
22:56:06 22:56:05.878 DEBUG: Declared patterns of language CSS were converted to sonar.lang.patterns.css : **/*.css,**/*.less,**/*.scss
22:56:06 22:56:05.879 DEBUG: Declared patterns of language Ruby were converted to sonar.lang.patterns.ruby : **/*.rb
22:56:06 22:56:05.879 DEBUG: Declared patterns of language COBOL were converted to sonar.lang.patterns.cobol : 
22:56:06 22:56:05.879 DEBUG: Declared patterns of language PHP were converted to sonar.lang.patterns.php : **/*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc
22:56:06 22:56:05.879 DEBUG: Declared patterns of language ABAP were converted to sonar.lang.patterns.abap : **/*.abap,**/*.ab4,**/*.flow,**/*.asprog
22:56:06 22:56:05.879 DEBUG: Declared patterns of language YAML were converted to sonar.lang.patterns.yaml : **/*.yaml,**/*.yml
22:56:06 22:56:05.879 DEBUG: Declared patterns of language JSON were converted to sonar.lang.patterns.json : **/*.json
22:56:06 22:56:05.882 DEBUG: Will ignore generated code
22:56:06 22:56:05.883 DEBUG: Will ignore generated code
22:56:06 22:56:05.889 INFO: Indexing files...
22:56:06 22:56:05.890 INFO: Project configuration:
22:56:06 22:56:05.890 INFO:   Excluded sources: **/*Test*/**/*, **/test/**/*, **/*Debug*/**/*, **/*Release*/**/*, **/*Test*/**
22:56:06 22:56:05.890 INFO:   Included tests: **/*Test*/**
22:56:06 22:56:05.890 INFO:   Excluded sources for coverage: **/build/**/*, **/.gradle/**/*
22:56:06 22:56:05.901 DEBUG: 'README.md' indexed with no language
22:56:06 22:56:05.905 DEBUG: 'app/build.gradle.kts' indexed with language 'kotlin'
22:56:06 22:56:05.907 DEBUG: 'app/debug.keystore' indexed with no language
22:56:06 22:56:05.908 DEBUG: 'app/lint-baseline.xml' indexed with language 'xml'
22:56:06 22:56:05.909 DEBUG: 'app/lint.xml' indexed with language 'xml'
22:56:06 22:56:05.909 DEBUG: 'app/proguard-app.pro' indexed with no language
22:56:06 22:56:05.910 DEBUG: 'app/proguard-libraries.pro' indexed with no language

Hey @Peter_Miklosko,

The --info option is not accepted by sonar-scanner as it is meant to be used with the scanner for Gradle.

From the logs, it looks like you are using Gradle as your build system

22:56:06 22:56:05.905 DEBUG: ‘app/build.gradle.kts’ indexed with language ‘kotlin’

We recommend you use scanner for Gradle as it comes with a better understanding of JVM conventions such as excluding build folders and picking up other information from the build configuration.

Let us know how changing to a more appropriate scanner works for you!

Dorian

1 Like

Thank you @Dorian_Burihabwa I made bit of progress there.

Does sonar have any capabilities to handle Android flavors? Configure build variants  |  Android Studio  |  Android Developers
Basically, I want sonar to check only one flavor instead off all others given it is a single code base and apps are different in branding only.
So if we have following flavors

  • flavor1Debug
  • flavor1Prod
  • flavor2Debug
  • flavor2Prod
  • flavor3Debug
  • flavor3Prod

I would like to say run flavor2Debug something like ./gradlew sonarFlavor2Debug is that possible?