Skip to content
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

[CHORE]: GitHook을 사용하여, 린트 적용하기 #4

Closed
2 tasks done
jeongjaino opened this issue Sep 20, 2023 · 1 comment
Closed
2 tasks done

[CHORE]: GitHook을 사용하여, 린트 적용하기 #4

jeongjaino opened this issue Sep 20, 2023 · 1 comment
Assignees
Labels
🚀진호🚀 ESTP 정진호 23세 🧹허드렛일🧹 종속성 추가, 기능과 무관한 코드 작성

Comments

@jeongjaino
Copy link
Member

jeongjaino commented Sep 20, 2023

작업 사항

린트를 적용하기 위해 매번 터미널에서 포맷팅을 수행하기 전, GitHook을 통해 커밋시 자동으로 포맷팅할 수 있도록 구현한다.

보통의 프로세스
기능 개발 - 터미널에서 포맷팅 커맨드 입력(수동) - 커밋 - 푸쉬 - 피알 - 피알체크(린팅)

깃훅을 사용한 프로세스
기능 개발 - 커밋(자동으로 포맷팅) - 커밋 -푸쉬 -피알체크(린팅)

Todo

  • git hook pre commit 공유 스크립트 구현
  • 빌드 시 자동으로 hooks에 저장되는 빌드 함수 구현

기타사항

커밋 실행시간은 늘어나나, 린팅을 까먹고 적용안했을 때 발생하는 코스트보다 저렴하다고 판단됨.

@jeongjaino jeongjaino added 🚀진호🚀 ESTP 정진호 23세 🌱기능🌱 새로운 기능 두두둥장! labels Sep 20, 2023
@jeongjaino jeongjaino changed the title [FEATURE]: GitHook을 사용하여, 린트 적용하기 [CHORE]: GitHook을 사용하여, 린트 적용하기 Sep 20, 2023
@jeongjaino jeongjaino added 🧹허드렛일🧹 종속성 추가, 기능과 무관한 코드 작성 and removed 🌱기능🌱 새로운 기능 두두둥장! labels Sep 20, 2023
@jeongjaino
Copy link
Member Author

자동으로 린팅이 안될 수 있는데, 이는 권한이 없기 때문!!
chmod ug+x .git/hooks/pre-commit 해당 커맨드 입력!

jeongjaino added a commit that referenced this issue Sep 21, 2023
@jeongjaino jeongjaino self-assigned this Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀진호🚀 ESTP 정진호 23세 🧹허드렛일🧹 종속성 추가, 기능과 무관한 코드 작성
Projects
None yet
Development

No branches or pull requests

1 participant