boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.8k stars 267 forks source link

Enhance scripts/include.go and fix warnings #516

Closed apocelipes closed 1 month ago

apocelipes commented 2 months ago

Write tmp data to a buffer rather than a temp file. This is faster and robuster.

Fix some golangci-lint warnings.

Fix a miss use of break, a break in a switch only stop the switch statment, to stop the outer for-loop we need a label.

boyter commented 1 month ago

Thanks for this.

This was something I was starting to look at actually as id like to remove the need for JSON at all inside the application. This is a good stepping stone to it.