Skip to content

Commit def077e

Browse files
committed
config: sonarqube 설정 추가
1 parent cf6d4dd commit def077e

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.github/workflows/code-analyze-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ jobs:
5252
uses: sonarsource/sonarqube-scan-action@master
5353
env:
5454
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
55-
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
55+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

.github/workflows/code-analyze-push.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Code Analyze branch
22

33
run-name: Run code analyze triggered with push by ${{github.actor}}
44

5-
65
on:
76
push:
87
branches:
@@ -46,4 +45,4 @@ jobs:
4645
uses: sonarsource/sonarqube-scan-action@master
4746
env:
4847
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
49-
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
48+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

sonar-project.properties

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# 프로젝트 식별자
2+
sonar.projectKey=CleanEngine_cleanengine-fe_c6875537-ed9d-4dfe-b79c-ea5cb6d2a0e3
3+
4+
# 프로젝트 이름
5+
sonar.projectName=CleanEngine Frontend
6+
7+
# 소스 코드 위치
8+
sonar.sources=src
9+
10+
# 테스트 파일 위치 및 패턴
11+
sonar.tests=src
12+
sonar.test.inclusions=**/*.test.tsx,**/*.test.ts,**/*.spec.tsx,**/*.spec.ts
13+
14+
# TypeScript/JavaScript 설정
15+
sonar.javascript.lcov.reportPaths=coverage/lcov.info
16+
sonar.typescript.tsconfigPath=tsconfig.json
17+
18+
# 분석에서 제외할 파일/디렉토리
19+
sonar.exclusions=node_modules/**,build/**,dist/**,coverage/**,public/**,**/*.test.tsx,**/*.test.ts,**/*.spec.tsx,**/*.spec.ts
20+
21+
# 코드 중복 검사 제외
22+
sonar.cpd.exclusions=**/*.test.tsx,**/*.test.ts
23+
24+
# 언어 설정
25+
sonar.language=ts
26+
sonar.typescript.file.suffixes=.ts,.tsx
27+
sonar.javascript.file.suffixes=.js,.jsx

0 commit comments

Comments
 (0)