Replies: 1 comment
-
https://github.com/boyter/scc?tab=readme-ov-file#api-support An example is listed there, although I don't think that is maintained anymore. It is used in https://searchcode.com/ where it counts things all the time and a few other projects. I don't keep track of them though sorry.
Most important thing to remember is the above line. You only need to call it once to set everything up and you should be good to rock and roll. Although this requirement will probably go away soon when this #594 is merged. Note that this is of course limited to Go. If you want to integrate using another language id suggest calling out via CLI and requesting the JSON format, although you could use one of the others as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! Disclaimer: I want to build a tool, that needs SLOC counting and complexity analysis and am currently evaluating available libraries and languages.
SCCs main use seems to be as a CLI, as I didn't see library-usage being mentioned anywhere in the README. Can it be used as a library though? Are there (known) projects, that already use it as a library?
Beta Was this translation helpful? Give feedback.
All reactions