The Lines of Code (LoC) Counter takes a solution and counts its lines of code.
By default, only the LoC of files submitted by the student are counted. If the student submitted a test file, those will be ignored.
While this works well for most submissions, some tracks might need to ignore additional files. For that, we'll allow the Lines of Code Counter to be customized per track.
We're using the tokei library to do the actual counting. As pull requests are often not merged quickly, we've created our own fork. This allows us to iterate more quickly and add support for any language we want.
You can check to see if your language is supported out of the box by looking it up in the languages.json file.
If your language is not supported, you can add support by:
Once you've made these changes, open a pull request to the exercism/tokei repository. Here is an example pull request that adds support for the Arturo language.