SonarQuber Server=7.7
I build my project and I scanned it.
In SonarQube server I see my project and my codes but there is no bugs code smells and duplications. There is no way I wrote the perfect code. How can I see issues and bugs?
SonarQuber Server=7.7
I build my project and I scanned it.
In SonarQube server I see my project and my codes but there is no bugs code smells and duplications. There is no way I wrote the perfect code. How can I see issues and bugs?
Hi,
Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:
7.7 → 7.9.6 → 8.9.8 → 9.5 (last step optional)
You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.
If your error persists after upgrade, please come back to us.
Ann
I don’t think I need to upgrade the server. Because in Java a simple class which is that just do print method, SonarQube finds bugs. I am not the admin for this server. Maybe the admin must add the rules to look? Maybe that is why I don’t see any issues?
Hi,
We simply can’t help you with a version that old. SonarQube 7.7 was released in March 2019. I barely remember what I wore yesterday, much less details of a 3-year-old version. If you want help, you’ll need to upgrade.
(Besides, think of all the fixes and cool new features you’ll get!)
Ann
When I run sonnar-scanner.bat I get this on cmd
INFO: Scanner configuration file: D:\shared\kerem\sonar\sonar-scanner-cli-4.7.0.2747-windows\sonar-scanner-4.7.0.2747-windows\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429\sonnar-project.properties
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
INFO: Windows 10 10.0 amd64
INFO: User cache: C:\Users\sukrut.sonar\cache
INFO: Scanner configuration file: D:\shared\kerem\sonar\sonar-scanner-cli-4.7.0.2747-windows\sonar-scanner-4.7.0.2747-windows\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 7.7.0
INFO: Default locale: “en_US”, source code encoding: “UTF-8”
INFO: Load global settings
INFO: Load global settings (done) | time=84ms
INFO: Server id: 2A6E13E7-AWntYGk3T–ORFoCqJYa
INFO: User cache: C:\Users\sukrut.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=102ms
INFO: Load/download plugins (done) | time=210ms
INFO: Loaded core extensions: developer-scanner
INFO: Process project properties
INFO: Execute project builders
INFO: Execute project builders (done) | time=3ms
INFO: Project key: SMKS
INFO: Base dir: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429
INFO: Working dir: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429.scannerwork
INFO: Load project settings for component key: ‘SMKS’
INFO: Load project settings for component key: ‘SMKS’ (done) | time=32ms
INFO: Load project branches
INFO: Load project branches (done) | time=27ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=28ms
INFO: Load branch configuration
INFO: Load branch configuration (done) | time=5ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=77ms
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=46ms
INFO: Load active rules
INFO: Load active rules (done) | time=702ms
INFO: Indexing files…
INFO: Project configuration:
INFO: 99 files indexed
INFO: Quality profile for c: Sonar way
INFO: ------------- Run sensors on module SMKS
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=18ms
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/sukrut/.sonar/cache/2089ae0d5cb0f75cbfb0902f1af146e2/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO: Sensor JavaXmlSensor [java]
INFO: Sensor JavaXmlSensor [java] (done) | time=2ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=13ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
INFO: Sensor CFamily [cpp]
INFO: Using build-wrapper output: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429\build_wrapper_output_directory\build-wrapper-dump.json
INFO: Available processors: 4
INFO: Using 4 threads for analysis according to value of “sonar.cfamily.threads” property.
WARN: Metric ‘comment_lines_data’ is deprecated. Provided value is ignored.
INFO: 0 compilation units analyzed
INFO: Sensor CFamily [cpp] (done) | time=1701ms
INFO: Sensor JavaSecuritySensor [security]
INFO: Reading type hierarchy from: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429.scannerwork\ucfg2\java
INFO: Read 0 type definitions
INFO: Reading UCFGs from: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429.scannerwork\ucfg2\java
INFO: 14:41:53.2242116 Building Type propagation graph
INFO: 14:41:53.2272034 Running Tarjan on 0 nodes
INFO: 14:41:53.230196 Tarjan found 0 components
INFO: 14:41:53.230196 Variable type analysis: done
INFO: No UCFGs have been included for analysis.
INFO: Sensor JavaSecuritySensor [security] (done) | time=20ms
INFO: Sensor CSharpSecuritySensor [security]
INFO: Reading type hierarchy from: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429\ucfg_cs2
INFO: Read 0 type definitions
INFO: Reading UCFGs from: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429\ucfg_cs2
INFO: 14:41:53.238095 Building Type propagation graph
INFO: 14:41:53.238095 Running Tarjan on 0 nodes
INFO: 14:41:53.2390952 Tarjan found 0 components
INFO: 14:41:53.2390952 Variable type analysis: done
INFO: No UCFGs have been included for analysis.
INFO: Sensor CSharpSecuritySensor [security] (done) | time=5ms
INFO: Sensor PhpSecuritySensor [security]
INFO: Reading type hierarchy from: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429.scannerwork\ucfg2\php
INFO: Read 0 type definitions
INFO: Reading UCFGs from: D:\SMKS_SW\trunk\ProductLibrary\SMKS\Code\Workspace\A429.scannerwork\ucfg2\php
INFO: 14:41:53.2420865 Building Type propagation graph
INFO: 14:41:53.2430841 Running Tarjan on 0 nodes
INFO: 14:41:53.2430841 Tarjan found 0 components
INFO: 14:41:53.2430841 Variable type analysis: done
INFO: No UCFGs have been included for analysis.
INFO: Sensor PhpSecuritySensor [security] (done) | time=9ms
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=2ms
INFO: SCM Publisher is disabled
INFO: 3 files had no CPD blocks
INFO: Calculating CPD for 16 files
INFO: CPD calculation finished
INFO: Analysis report generated in 105ms, dir size=245 KB
INFO: Analysis report compressed in 76ms, zip size=63 KB
INFO: Analysis report uploaded in 50ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://sonarqube:9090/dashboard?id=SMKS
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://sonarqube:9090/api/ce/task?id=AYFiBSUycGKVLPCggBu_
INFO: Analysis total time: 7.552 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 8.894s
INFO: Final Memory: 7M/34M
INFO: ------------------------------------------------------------------------
In SonnarScanner Server I got a few code smells but It should find a significant amount of issues.