Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
en:modul:m324_aws:topics:11 [2026/01/07 16:46] dgaravaldien:modul:m324_aws:topics:11 [2026/01/10 10:21] (aktuell) – [Getting started] dgaravaldi
Zeile 55: Zeile 55:
   * Hit the button ''Continue''   * Hit the button ''Continue''
   * Run analysis on your project: ''Other'' -> ''Linux''   * Run analysis on your project: ''Other'' -> ''Linux''
 +
 +
  
 \\ \\
 === Step 4: Download and unzip the scanner === === Step 4: Download and unzip the scanner ===
   * Download the scanner for your platform.   * Download the scanner for your platform.
 +
 +{{:en:modul:m324_aws:topics:01-sonar.png?direct&400|}}
 +{{:en:modul:m324_aws:topics:02-sonar.png?direct&400|}}
 +
   * Unzip it either in your project directory or in your binary-directory.   * Unzip it either in your project directory or in your binary-directory.
 Example for Linux on AWS EC2 Example for Linux on AWS EC2
Zeile 114: Zeile 120:
  
   * Execute the scanner as shown.   * Execute the scanner as shown.
-In the example the scanner binaries are stored in the project folder. The path to the scanner is used in a bash script. 
  
 <code> <code>
Zeile 122: Zeile 127:
 # #
 sonar-scanner \ sonar-scanner \
-  -Dsonar.projectKey=trafficlight-app-codecov +  -Dsonar.projectKey=<YOUR-PROJECT-KEY> 
-  -Dsonar.sources=src +  -Dsonar.sources=
-  -Dsonar.host.url=http://localhost:9000 +  -Dsonar.host.url=<YOUR-HOST-URL> 
-  -Dsonar.token=sqp_6ee5a8843fc36e95825131e03f3ae1ec8d89226d +  -Dsonar.token=<YOUR-TOKEN> 
-  -Dproject.settings=sonar-project.properties+  -Dproject.settings=./sonar-project.properties
 </code> </code>
  
Zeile 132: Zeile 137:
  
 {{:en:modul:m324_aws:topics:03-sonar.png?direct&800|Sample report from sonar}} {{:en:modul:m324_aws:topics:03-sonar.png?direct&800|Sample report from sonar}}
---- 
  
-Based on this [[https://www.aviator.co/blog/implementing-sonarqube-code-coverage-in-a-simple-javascript-application/|Article]].+
  
 ---- ----
 +Source: [[https://www.aviator.co/blog/implementing-sonarqube-code-coverage-in-a-simple-javascript-application/]].
  
 [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Daniel Garavaldi [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Daniel Garavaldi
  • en/modul/m324_aws/topics/11.1767800814.txt.gz
  • Zuletzt geändert: 2026/01/07 16:46
  • von dgaravaldi