cfmt
1.0.0
CFMT는 특정 길이를 통해 새로운 라인으로 댓글을 마무리하는 도구입니다.
go get -u github.com/alexkohler/cfmt
참고 : CFMT에는 GOFMT가 필요합니다.
다른 GO 정적 Anaylsis 도구 (예 : Golint, Go Vet)와 마찬가지로 CFMT는 하나 이상의 파일 이름, 디렉토리 또는 가져 오기 경로에서 명명 된 패키지로 호출 할 수 있습니다. CFMT는 또한 ... 와일드 카드를 지원합니다.
cfmt [flags] files/directories/packages
cfmt 변경 사항 만 인쇄하지만 입력 파일을 수정하지는 않습니다. cfmt 새 라인으로 감싸거나 적절한 기존 라인에 가입합니다. cfmt -m=100 실행하기 전/후 다음을 참조하십시오.
전에
// I am a long comment that is over 100 characters long. I should probably wrap to a new line.후에
// I am a long comment that is over 100 characters long. I should probably wrap
// to a new line.전에
// I am a long comment that is over 100 characters long. I should probably wrap below to the
// rest of the comment.후에
// I am a long comment that is over 100 characters long. I should probably wrap
// below to the rest of the comment.전에
//I am a long comment that starts without a space and is over 100 characters long. When I wrap, I should still start without a space후에
//I am a long comment that starts without a space and is over 100 characters
//long. When I wrap, I should still start without a space cfmt 블록 ( /* */ ) 주석을 무시하고 10의 길이에 걸쳐 "그룹화 된"주석 (예 : // 부터 시작하는 10 개 이상의 연속 선).
요청을 당기는 것을 환영합니다!
CFMT를 즐겼다면 다른 정적 anaylsis 도구를 살펴보십시오!