-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.sonar.example
More file actions
46 lines (39 loc) · 1.66 KB
/
.env.sonar.example
File metadata and controls
46 lines (39 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# ============================================
# SonarQube Configuration
# ============================================
# Copy this file to .env.sonar and fill in your values
# This file can be placed in:
# 1. Your project directory (highest priority)
# 2. The scripts/shell directory
# 3. Your home directory (~/.env.sonar)
# ============================================
# SonarQube Server URL (REQUIRED)
# Your organization's SonarQube server
export SONAR_HOST_URL='https://sonarqube.example.com'
# SonarQube Authentication Token (REQUIRED)
# Generate at: Your SonarQube Server > My Account > Security > Generate Tokens
export SONAR_TOKEN='your-sonarqube-token-here'
# Project Key (OPTIONAL - auto-detected from sonar-project.properties if present)
# Unique identifier for your project in SonarQube
# export SONAR_PROJECT_KEY='my-project-key'
# Project Name (OPTIONAL)
# Display name shown in SonarQube UI
# export SONAR_PROJECT_NAME='My Project Name'
# Sources Directory (OPTIONAL - defaults to project root)
# Comma-separated paths to source directories
# export SONAR_SOURCES='./src,./lib'
# Exclusions (OPTIONAL)
# Patterns to exclude from analysis
# export SONAR_EXCLUSIONS='**/node_modules/**,**/dist/**,**/coverage/**'
# ============================================
# Alternative: sonar-project.properties
# ============================================
# You can also create a sonar-project.properties file in your project:
#
# sonar.projectKey=my-project
# sonar.projectName=My Project
# sonar.host.url=https://sonarqube.example.com
# sonar.token=your-token-here
# sonar.sources=./src
# sonar.exclusions=**/node_modules/**,**/dist/**
# ============================================