Files
clean-architecture-backend-…/.gitignore
DongHyeonka 5f1aba02c4 fix(gitignore): .env 폴더 안 파일을 되살리는 법을 적고 문서 검사 시험에 그 경로를 더한다
문제: 첫 리뷰 Low 둘. `.gitignore` 주석은 `.env`로 시작하는 폴더도
무시된다고 하면서 되살리는 법으로 파일의 정확한 경로만 든다. 그런데
부모 폴더가 무시되면 git은 그 안 파일을 되살리지 못한다:
`!/compose/.env.d/sample.conf`를 더해도 rc=0(무시)이고 `git add -A`가
말없이 뺀다. 새 문서 검사 시험은 `.env*` 폴더 안 파일 경로를 넣지
않아, `names_env_file`을 마지막 마디만 보게 좁혀도 통과한다.

고른 방법: 주석에 그런 파일은 폴더(`!/compose/.env.d/`)로만 되살아나고
그러면 폴더 안 `.env*` 이름 밖의 파일이 모두 추적된다고 적는다. 시험의
없는 경로에 `compose/.env.d/app.conf`를 더한다.

위험·한계: 규칙 줄은 바뀌지 않는다(주석만).

검증: 임시 repo에서 `!/compose/.env.d/sample.conf`는 rc=0·`add -A` 0개,
`!/compose/.env.d/`는 sample.conf rc=1·`add -A` 1개, 폴더 안
`.env.local`과 다른 폴더의 `.env.sample`은 rc=0 그대로. 시험은 마지막
마디만 보는 변이와 고치기 전 `check-docs.py`(1a48a02c5)에서 실패, 지금
코드에서 통과. `scripts/verify.sh docs` rc=0.

Refs: REV-BE-0052
2026-11-23 23:07:37 +09:00

57 lines
2.6 KiB
Plaintext

.vscode/
src/**/bin/
# Gradle and IDE output. The wrapper jar is the one binary the build needs from the tree.
.gradle/
build/
!gradle/wrapper/gradle-wrapper.jar
.idea/
*.iml
.project
.classpath
.settings/
# jqwik property-test runtime state
.jqwik-database
# ApprovalTests writes <test>.received.<ext> next to each <test>.approved.<ext> snapshot, under the
# test's source folder, when it compares and deletes it when they match; a failed comparison leaves
# it behind. Approve by copying it over the approved file, never by committing it. Only Java source
# folders: fixtures elsewhere may carry ".received." in their names. An approved snapshot is never
# ignored, even when a test parameter puts ".received." into its name; in turn a received file whose
# parameter puts ".approved." into its name shows up in `git status`.
src/**/src/*/java/**/*.received.*
!src/**/src/*/java/**/*.approved.*
.DS_Store
# Operator input, not a build input: a real environment file stays out in any folder, not only at
# the root. That covers .env, .env.local, a src/.env left over from before the relayout, a .env.lane
# an older runtime-smoke wrapper left behind (the wrapper now only deletes it) and any .env.<profile>.
# verifyEnvKeys reads the registry, the profile YAMLs and .env.example, never a real one.
# The rule takes every file and folder whose name starts with .env, .envrc and .env_x included, and
# `git add -A` or `git add .` leaves them out without a word; only `git add <path>` refuses. The two
# examples are the contract and stay tracked in any folder. To track another such file, add its
# exact path from the root below this block (!/compose/x/.env.sample), never !**/<name>: that opens
# the name in every folder. A file inside such a folder comes back only with its folder
# (!/compose/.env.d/), which then tracks every file in it but its .env* names.
# The block comes before .claude/*, so a local file under .claude/ stays out under an example's name.
**/.env*
!**/.env.example
!**/.env.local.example
# Local Claude Code state (worktrees, settings.local.json, notes) stays out. The shared project
# settings, path rules, skills and subagent definitions are committed: everyone who opens the repository gets them (CLAUDE.md).
.claude/*
!.claude/settings.json
!.claude/rules/
!.claude/agents/
!.claude/skills/
# bootRun's file log when APP_LOG_FILE_ENABLED=true: APP_LOG_FILE_PATH is relative to the repository root.
/logs/
# Local tool output (graphify knowledge graph, Playwright MCP snapshots).
graphify-out/
.playwright-mcp/
# Python bytecode from running scripts/ checks; never committed.
__pycache__/
*.pyc