cfmt
1.0.0
CFMTは、特定の長さでコメントをラップするツールです。
go get -u github.com/alexkohler/cfmt
注:CFMTにはGOFMTが必要です。
他のGO静的Anaylsisツール(Golint、Go Vetなど)と同様に、CFMTは、その輸入パスで名前が付けられた1つ以上のファイル名、ディレクトリ、またはパッケージで呼び出すことができます。 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ツールをご覧ください!