Backend Convention #3
ghrltjdtprbs
announced in
공지사항
Replies: 1 comment 1 reply
-
깃 컨벤션 정리 넘 잘해두셨고 일관성 있게 쓰면 좋을 것 같아서 프론트도 같은 컨벤션 사용하고 싶은데 괜찮을까용 ?? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Code Convention
[IntelliJ Java Google Style](https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml)을 준수합니다.
[Google Java Style Guide](https://google.github.io/styleguide/javaguide.html)
Preferences > Editor > Code Style > Java > Scheme Import > Google Style IDE
Tab and Indents
에서 Indent 및 Tab Size를 4로 변경합니다.변경이 완료되었으면 단축키를 이용해 코드를 맞출 수 있습니다.
Package
java : 17
springboot : 3.1.5
ariable Convention
Method Convention
boolean isXXX( )
Test Convention
공통 사항
@DisplayName(””)
설정하기.@NestedClass
사용하기Context_
Element_
Git
Commit Convention
앞에 태그 붙여주세요!
커밋은 소문자
[feat] : 새로운 기능을 추가하는 경우
[fix] : 버그를 고친경우
[docs] : 문서를 수정한 경우
[style] : 코드 포맷 변경, 세미콜론 누락, 코드 수정이 없는경우
[refactor] : 코드 리펙토링
[test] : 테스트 코드. 리펙토링 테스트 코드를 추가했을 때
[rename] : 파일명(or 폴더명) 을 수정한 경우
[remove] : 코드(파일) 의 삭제가 있을 때. "Clean", "Eliminate" 를 사용하기도 함
예시)
GitFlow-Plugin 사용법
기능개발
develop
인 것을 확인한 후Start Feature
선택 (사진1)Finish Feature
선택7 . 현재 브랜치가 develop에 있는 것을 본 후에 github로 push!
주의사항
Finish Feature
누르기 전 Commit이 완료되었는지 체크하기 (아니면 브랜치가 삭제되버려요!)feature/이슈번호
PR Convention
PR 이름에 커밋과 동일하게 앞에 태그 붙여주세요!
팀원 모두의 리뷰를 받아야 merge할 수 있도록 브랜치 규칙 설정
Pull requests → 리뷰할 pr선택 → 상단의 Add your review → Review changes → 리뷰 작성 → Approve 선택 → Submit review
Beta Was this translation helpful? Give feedback.
All reactions