Skip to content

Commit 9ed5773

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

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
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:

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-fe
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)