619 B
619 B
name, description, type
| name | description | type |
|---|---|---|
| Commit 전 Linter 수행 | git commit 전 변경 파일에 linter 실행, 통과 후 commit | feedback |
git commit 전 변경 파일에 linter 실행.
Why: 린팅 오류 커밋 이력 방지.
How to apply:
git diff --name-only HEAD또는git status로 변경 파일 확인..clang-format있으면clang-format --dry-run으로 C++ 검사..clang-tidy있으면clang-tidy정적 분석.- 기타 linter(eslint, pylint 등) 있으면 실행.
- linter 오류 → 수정 후 commit.
- linter 설정 없어도 사용자에게 수행 여부 확인.