Skip to content

lovaere/AzDO-LinesOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AzDO-LinesOfCode

Count the total lines of code in an Azure DevOps project. This tool will investigate all the git repositories of an Azure DevOps project and count the lines of code with cloc.

Requirements

This tool is written in PowerShell but makes use of:

The script assume both tools are available.

Azure DevOps API - PAT token

The script uses the Azure DevOps API to fetch all the repositories in your project. Therefore it requires a PAT token that has read access to your code. No other privileges are required.

Run the script

# Install git https://git-scm.com/ or another option
# Install cloc:
npm install -g cloc  # other options are available, check the GitHub page of cloc

# Run the script:
.\Get-LinesOfCodeOverview.ps1 -OrganizationName MyOrg -ProjectName MyProject -PatToken MyPatToken

About

Count the total lines of code in an Azure DevOps project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published