cfmt
1.0.0
CFMT هي أداة لالتفاف تعليقات على طول معين لخط جديد.
go get -u github.com/alexkohler/cfmt
ملاحظة : يتطلب CFMT GOFMT.
على غرار أدوات Anaylsis ثابتة أخرى (مثل Golint ، Go Vet) ، يمكن استدعاء CFMT بأسماء ملفات أو أكثر أو أكثر من أسماء الملفات أو الحزم التي يسمى مسار الاستيراد. CFMT يدعم أيضا ... Wildcard.
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 الثابتة الأخرى!