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