Dealogic / cloc-vsts-extension

Build task for Visual Studio Team Services (VSTS) to count lines of code.
MIT License
5 stars 2 forks source link
azure-devops-extension cloc-cli count-lines vsts

Count Lines of Code Build Task

A build task for Visual Studio Team Services (VSTS) made with ♥ by

dealogic logo

to count your lines of code.

build status

Content

Installation

Installation can be done using Visual Studio MarketPlace.

Source Code

Source code can be found on GitHub.

What The Build Step Does

This build step is counting your lines of code with using the cloc CLI. The result is reported as a section on the build summary page.

Result is reported on the build summary page

Usage

Add the task to your build configuration:

Add Count Line of Code task

Arguments have to be specified:

Specify the arguments for the cloc CLI

By default the cloc CLI is running in the root of the repository, you can modify that in the advanced settings as the working folder task parameter:

Working folder is the path, where the cloc CLI will run

By default the cloc CLI is downloaded from the url: https://github.com/AlDanial/cloc/releases/download/1.82/cloc-1.82.exe:

The download URL of the cloc-cli tool

But now file shares and local files are supported to such as:

file://my-file-share/public/software/cloc-1.82.exe

or

./cloc.1.82.exe

Release Notes

License

MIT