From 20ad6f839466c9b4d1481723bd4bd28cb3c47b5e Mon Sep 17 00:00:00 2001 From: Rinjae Date: Thu, 13 Aug 2026 18:18:09 +0900 Subject: [PATCH] =?UTF-8?q?Thymeleaf=20=ED=85=9C=ED=94=8C=EB=A6=BF=20JS=20?= =?UTF-8?q?=EB=B6=84=EC=84=9D=20=EC=A0=9C=EC=99=B8=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80:=20-=20sonar.javascript.exclusions=20?= =?UTF-8?q?=EC=86=8D=EC=84=B1=EC=97=90=20=ED=85=9C=ED=94=8C=EB=A6=BF=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EC=B6=94=EA=B0=80=20-=20XSS=20=EB=A3=B0?= =?UTF-8?q?=20=EC=9C=A0=EC=A7=80=20=EC=9C=84=ED=95=B4=20HTML=20=EB=B6=84?= =?UTF-8?q?=EC=84=9D=EC=9D=80=20=EC=A0=9C=EC=99=B8=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sonar-project.properties | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sonar-project.properties b/sonar-project.properties index a697608..105884f 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -51,6 +51,14 @@ sonar.exclusions=\ # 자동 생성 코드(MapStruct Impl, QueryDSL Q클래스)는 build/ 아래라 이미 제외된다. +# Thymeleaf 인라인 표현식([[${...}]], /*[[${...}]]*/)은 JS 파서가 읽지 못해 +# "Failed to parse file ... Unexpected token" 으로 분석이 중단된다. +# JS 분석에서만 빼고 HTML(web) 센서는 그대로 두어 템플릿 XSS 룰은 유지한다. +# 기본값이 **/node_modules/** 이므로 재정의 시 함께 명시해야 한다. +sonar.javascript.exclusions=\ + **/node_modules/**,\ + src/main/resources/templates/** + # --- SCM ------------------------------------------------------------------- # blame 기반 "새 코드" 판정을 위해 Jenkins Job 에서 shallow clone 을 쓰지 않는다. sonar.scm.provider=git