Skip to content

[Chore /#124] ktLintCheck Configuration 추가 및 ktLint CI 삭제#126

Merged
nahy-512 merged 3 commits into
developfrom
chore-/#124-ktlintcheck
Jan 17, 2026
Merged

[Chore /#124] ktLintCheck Configuration 추가 및 ktLint CI 삭제#126
nahy-512 merged 3 commits into
developfrom
chore-/#124-ktlintcheck

Conversation

@nahy-512

@nahy-512 nahy-512 commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

📮 관련 이슈

📌 작업 내용

  • ktLint 관련 내용 수정해요.
  • 빌드 오류도 수정했어요.

🫛 To. 리뷰어

  • ktLint 그냥 삭제하고 가는 걸로 합시다. 각자 알아서 돌리고 신경쓰는 걸로
  • CI는 빌드만 체크할게요.

Summary by CodeRabbit

릴리스 노트

  • 기능 개선

    • 검색 뷰의 제목 필드에 기본값 추가로 유연성 향상
  • 작업

    • 개발 빌드 설정 정리 및 정규화
    • 린트 검사 설정 업데이트

✏️ Tip: You can customize this high-level summary in your review settings.

@nahy-512 nahy-512 self-assigned this Jan 17, 2026
@nahy-512 nahy-512 requested a review from a team as a code owner January 17, 2026 13:35
@nahy-512 nahy-512 added Fix 🐛 버그, UI 오류, 오타, 명세와의 불일치 등을 수정 Chore 🔧 빌드, 의존성, CI/CD, SDK 설정 등 개발 환경 및 생산성 관련 작업 labels Jan 17, 2026
@nahy-512 nahy-512 linked an issue Jan 17, 2026 that may be closed by this pull request
2 tasks
@coderabbitai

coderabbitai Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

워크플로우 린트 체크 작업을 비활성화하고, ktLintCheck 실행을 위한 IDE 구성 파일을 추가하며, 빌드 그래들에서 주석 처리된 린트 설정을 제거하고, FlintSearchEmptyView 컴포저블에 기본 파라미터를 추가하는 변경사항입니다.

Changes

Cohort / File(s) 요약
CI/CD 워크플로우 구성
.github/workflows/pr_checker.yml
PR 린트 체크 작업을 전체 주석 처리하여 비활성화. 빌드 작업 및 구성은 유지됨
IDE 실행 구성
.run/Flint [ktLintCheck].run.xml
ktLintCheck Gradle 작업 실행을 위한 새로운 IDE 런 구성 파일 추가
빌드 구성
app/build.gradle.kts
주석 처리된 ktlint 구성 블록 제거
UI 컴포넌트
app/src/main/java/com/flint/core/designsystem/component/view/FlintSearchEmptyView.kt
FlintSearchEmptyView 컴포저블의 title 파라미터에 기본값("") 추가

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Feat/#66 search view #70: FlintSearchEmptyView 컴포저블이 도입된 PR로, 본 PR에서 해당 컴포저블의 서명에 기본 title 파라미터를 추가하는 것과 관련됨
  • [Feat] collection create add film UI #119: 동일한 FlintSearchEmptyView 함수 서명을 수정한 PR로, title: String 파라미터 추가 후 본 PR에서 기본값(title: String = "")을 추가하는 연속적 변경사항

Suggested labels

🧩 Component

Suggested reviewers

  • kimjw2003
  • giovannijunseokim

Poem

🐰 린트 체크를 정리하고,
IDE 구성을 갖춰두며,
빌드 설정을 청소하고,
컴포넌트는 더 유연하게!
깔끔한 코드의 길 위에서 🎯

🚥 Pre-merge checks | ✅ 2 | ❌ 3
❌ Failed checks (3 warnings)
Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning PR이 이슈 #124의 주요 목표인 Lint CI 삭제를 구현했으나, ktLintFormat 적용은 미완료 상태입니다. 이슈 #124의 TO-DO 항목 중 'ktLintFormat 추가' 작업이 완료되지 않았습니다. 이를 구현하거나 이슈 목표를 재조정하세요.
Out of Scope Changes check ⚠️ Warning FlintSearchEmptyView의 title 파라미터에 기본값을 추가한 변경은 ktLint 설정 목표와 직접적인 관련이 없습니다. FlintSearchEmptyView 수정은 이슈 #124의 범위를 벗어난 변경입니다. 별도의 이슈로 분리하거나 변경 사유를 명확히 하세요.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목이 주요 변경 사항인 ktLint CI 삭제 및 ktLintCheck 설정 추가를 명확하게 요약하고 있습니다.
Description check ✅ Passed PR 설명이 템플릿 구조를 따르고 있으며, 관련 이슈, 작업 내용, 리뷰어 주의사항이 모두 포함되어 있습니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In
`@app/src/main/java/com/flint/core/designsystem/component/view/FlintSearchEmptyView.kt`:
- Around line 20-23: FlintSearchEmptyView의 title 기본값이 빈 문자열이라 호출부(예:
OnboardingFilmScreen)에서 인자를 생략하면 제목이 렌더링되지 않으니, FlintSearchEmptyView 함수 시그니처를
수정해 title을 nullable로 만들거나 빈값 체크를 추가하여 제목이 없을 때 Text를 렌더링하지 않도록 하세요; 예를 들어 변경할
대상은 FlintSearchEmptyView(title: String? = null) 또는 기존 title: String = "" 유지 후
Composable 내부에서 if (!title.isNullOrBlank()) Text(...)로 조건부 렌더링 처리하고, 필요하면
OnboardingFilmScreen 호출부에서 명시적으로 제목을 전달하도록 수정하세요.
🧹 Nitpick comments (3)
.github/workflows/pr_checker.yml (2)

1-1: 워크플로우 이름이 현재 기능과 맞지 않습니다.

린트 작업이 비활성화되었으므로 워크플로우 이름을 Flint Build CI 또는 Flint PR Checker로 변경하는 것이 좋습니다.

♻️ 제안된 수정
-name: Flint Lint CI
+name: Flint Build CI

8-46: 주석 처리된 코드 삭제를 권장합니다.

주석 처리된 린트 작업은 Git 히스토리에서 추적할 수 있으므로 삭제하는 것이 좋습니다. 나중에 다시 활성화할 가능성이 있다면 별도의 브랜치나 문서로 관리하거나, workflow_dispatch를 사용한 조건부 실행을 고려해 주세요.

♻️ 제안된 수정 - 주석 제거 후 간소화
 name: Flint Build CI
 
 on:
   pull_request:
     branches: [ develop, main ]
 
 jobs:
-#  lint:
-#    name: PR Lint Check
-#    runs-on: ubuntu-latest
-#
-#    steps:
-#      - name: Checkout
-#        uses: actions/checkout@v6
-#
-#      - name: Setup Gradle
-#        uses: gradle/actions/setup-gradle@v4
-#
-#      - name: Set up JDK 17
-#        uses: actions/setup-java@v5
-#        with:
-#          java-version: 17
-#          distribution: 'temurin'
-#
-#      - name: Set up Android SDK
-#        uses: android-actions/setup-android@v3
-#
-#      - name: Create local.properties
-#        env:
-#          DEV_BASE_URL: ${{ secrets.DEV_BASE_URL }}
-#        run: |
-#          echo "sdk.dir=$ANDROID_SDK_ROOT" > local.properties
-#          echo "base.url=\"${DEV_BASE_URL}\"" >> local.properties
-#
-#      - name: Grant permission to gradlew
-#        run: chmod +x ./gradlew
-#
-#      - name: Run ktlint
-#        run: ./gradlew ktlintCheck
-#
-#      - name: Upload ktlint reports
-#        if: failure()
-#        uses: actions/upload-artifact@v4
-#        with:
-#          name: ktlint-reports
-#          path: app/build/reports/ktlint/
   build:
app/src/main/java/com/flint/core/designsystem/component/view/FlintSearchEmptyView.kt (1)

37-41: 빈 문자열일 때 Text 숨김 처리 고려

title이 비어있을 때 Text 컴포저블을 숨기면 불필요한 렌더링과 레이아웃 공간 낭비를 방지할 수 있습니다.

♻️ 조건부 렌더링 제안
         Spacer(modifier = Modifier.height(12.dp))

-        Text(
-            text = title,
-            color = FlintTheme.colors.white,
-            style = FlintTheme.typography.head3M18,
-        )
+        if (title.isNotEmpty()) {
+            Text(
+                text = title,
+                color = FlintTheme.colors.white,
+                style = FlintTheme.typography.head3M18,
+            )
+        }

Comment on lines 20 to +23
@Composable
fun FlintSearchEmptyView(title: String) {
fun FlintSearchEmptyView(
title: String = ""
) {

@coderabbitai coderabbitai Bot Jan 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check FlintSearchEmptyView implementation and usages
echo "=== FlintSearchEmptyView 파일 확인 ==="
find . -name "FlintSearchEmptyView.kt" -type f

echo ""
echo "=== FlintSearchEmptyView 호출 위치 및 사용 패턴 ==="
rg -n 'FlintSearchEmptyView' --type kotlin -A 3 -B 1

Repository: imflint/Flint-Android

Length of output: 2790


🏁 Script executed:

cat -n app/src/main/java/com/flint/core/designsystem/component/view/FlintSearchEmptyView.kt

Repository: imflint/Flint-Android

Length of output: 1962


title 파라미터 기본값이 공란으로 설정되어 있어 호출 시 제목이 누락되고 있습니다.

OnboardingFilmScreen의 호출부(153줄)에서 인자 없이 FlintSearchEmptyView()를 호출하고 있어, Text 컴포넌트가 빈 문자열로 렌더링됩니다. Preview(50줄)에서는 title = "아직 준비 중인 작품이에요"로 제목을 전달하는데, 실제 호출부에서는 제목이 누락되어 있습니다.

호출 측에서 적절한 제목을 명시적으로 전달하거나, 제목이 없을 경우 Text를 조건부로 렌더링하도록 수정해 주세요.

🤖 Prompt for AI Agents
In
`@app/src/main/java/com/flint/core/designsystem/component/view/FlintSearchEmptyView.kt`
around lines 20 - 23, FlintSearchEmptyView의 title 기본값이 빈 문자열이라 호출부(예:
OnboardingFilmScreen)에서 인자를 생략하면 제목이 렌더링되지 않으니, FlintSearchEmptyView 함수 시그니처를
수정해 title을 nullable로 만들거나 빈값 체크를 추가하여 제목이 없을 때 Text를 렌더링하지 않도록 하세요; 예를 들어 변경할
대상은 FlintSearchEmptyView(title: String? = null) 또는 기존 title: String = "" 유지 후
Composable 내부에서 if (!title.isNullOrBlank()) Text(...)로 조건부 렌더링 처리하고, 필요하면
OnboardingFilmScreen 호출부에서 명시적으로 제목을 전달하도록 수정하세요.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

의도한거야. hotfix라 나중에 고칠게

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nahy-512 알겠습니다! hotfix라면 나중에 수정하는 게 맞겠네요. 추후에 개선하실 때 참고해 주세요. 👍


🧠 Learnings used
Learnt from: kimjw2003
Repo: imflint/Flint-Android PR: 122
File: app/src/main/java/com/flint/presentation/splash/SplashScreen.kt:16-20
Timestamp: 2026-01-16T15:56:53.763Z
Learning: In the imflint/Flint-Android repository, do not flag or comment on FIXME comments, placeholder code, or test code with TODO/FIXME markers. The team prefers to handle these intentional placeholders on their own timeline without review comments.

Learnt from: ckals413
Repo: imflint/Flint-Android PR: 116
File: app/src/main/java/com/flint/presentation/onboarding/OnboardingDoneScreen.kt:97-105
Timestamp: 2026-01-16T08:47:13.979Z
Learning: In OnboardingDoneScreen.kt, the "시작하기" button is intentionally set to FlintButtonState.Disable as a placeholder state until ViewModel implementation is completed.

@nahy-512 nahy-512 merged commit 63b24cb into develop Jan 17, 2026
2 checks passed
@nahy-512 nahy-512 deleted the chore-/#124-ktlintcheck branch January 17, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Chore 🔧 빌드, 의존성, CI/CD, SDK 설정 등 개발 환경 및 생산성 관련 작업 Fix 🐛 버그, UI 오류, 오타, 명세와의 불일치 등을 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Chore] ktLintCheck 적용 및 CI 삭제

1 participant