Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
reformatCheck)가, 미커밋 변경(= 발행 커밋이 될 diff)에 reformat-only 파일(git diff -w에서 사라지는 파일)과 실질 변경 파일(새 파일 포함)이 함께 있으면 blocking으로 실패한다. 판정은 새src/agents/reformatMix.ts(mixedReformatIssues)에 있고, 사유에 reformat-only 파일 목록·실질 변경 파일 목록·"포매팅은 별도 커밋으로(또는 되돌리기)" 안내가 들어간다.config.example.yaml주석 갱신.pipelineGuards.ts는 pre-commit 파일 크기 규칙(1000줄 초과 파일은 base보다 늘면 안 됨) 때문에 판정 로직을 별도 모듈로 뺐다 — 줄 수는 base와 같은 1001.왜
AGT-4190 방어 3번. cgf-portal #218처럼 실질 변경 4건이 재포맷 7곳 사이에 묻히면 리뷰를 피한 것과 같은 결과가 난다.
한계
판정 단위는 파일이다. 한 파일 안에서 재포맷 hunk와 실질 hunk가 섞인 경우, 그리고
-w로 사라지지 않는 줄바꿈 재배치(line-length 재포맷)는 이 guard가 잡지 못한다(기존 감지 방식 그대로).검증
pipelineGuards.test.ts에 5건 추가: 섞인 diff 보류(파일 목록·안내 포함), 새 파일 + 재포맷 보류, 포매팅만 통과, 실질 변경만 통과, 포매팅을 별도 커밋한 뒤 통과. 앞의 2건은 수정 전 코드에서 실패 확인.vitest run src/agents74 파일 1117 테스트 통과,tsc --noEmit -p tsconfig.check.json통과, oxlint 0건.Linear: AGT-4899