-
Notifications
You must be signed in to change notification settings - Fork 0
[CMAT-47] feat: 관리자용 컨텐츠 삭제 API 구현, 직무별 컨텐츠 조회 API 수정 #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,3 @@ | ||||||||||||
| spring: | ||||||||||||
| profiles: | ||||||||||||
| active: dev | ||||||||||||
| active: dev | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion 파일 끝에 개행 문자를 추가해주세요. YAML 파일의 끝에는 항상 개행 문자가 있어야 합니다. 이는 POSIX 표준을 준수하고 다른 도구들과의 호환성을 보장하기 위함입니다. 다음과 같이 수정해주세요: spring:
profiles:
- active: dev
+ active: dev
+📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.35.1)[error] 3-3: no new line character at the end of file (new-line-at-end-of-file) 💡 Codebase verification 프로덕션 환경 설정의 심각한 문제점이 확인되었습니다 현재 'dev' 프로필이 여러 위치에 하드코딩되어 있어 프로덕션 환경에서 심각한 문제가 될 수 있습니다:
권장 수정사항:
🔗 Analysis chain프로덕션 환경 설정 관리 방안을 검토해주세요. 버전 관리 시스템에 'dev' 프로필이 하드코딩되어 있는 것이 확인됩니다. 프로덕션 환경에서는 환경 변수나 외부 설정을 통해 프로필을 주입하는 것이 더 안전한 방법일 수 있습니다. 다음 스크립트를 실행하여 프로필 설정이 다른 설정 파일에서도 하드코딩되어 있는지 확인해보시겠습니까? 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: 프로필 설정이 하드코딩된 YAML 파일 검색
echo "프로필 설정이 하드코딩된 YAML 파일 검색 중..."
rg -l "active:\s*(dev|prod|test)" --type yaml
Length of output: 151 Script: #!/bin/bash
# Search for profile-specific configuration files and deployment configs
echo "프로필별 설정 파일 및 배포 관련 파일 검색..."
echo -e "\n1. 프로필별 설정 파일 검색:"
fd "application-.*\.yml" "src/"
echo -e "\n2. 도커 및 쿠버네티스 설정 파일 검색:"
fd "(Dockerfile|docker-compose.*\.yml|\.k8s|kubernetes)" .
echo -e "\n3. 배포 스크립트 검색:"
fd "(deploy.*\.sh|\.env.*)" .
Length of output: 382 Script: #!/bin/bash
# Check Docker files for environment configuration
echo "도커 설정 파일 내용 확인..."
echo -e "\n1. Dockerfile 내용:"
cat Dockerfile
echo -e "\n2. docker-compose.yml 내용:"
cat docker-compose.yml
Length of output: 575 🧰 Tools🪛 YAMLlint (1.35.1)[error] 3-3: no new line character at the end of file (new-line-at-end-of-file) |
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
직무 정보 검증 로직 개선 필요
현재 구현은 직무 ID가 null인 경우만 처리하고 있습니다. 사용자의 직무 정보에 대한 더 구체적인 유효성 검사가 필요합니다.
다음과 같이 개선하는 것을 추천드립니다:
📝 Committable suggestion