Answer by roskakori for Can you get the number of lines of code from a GitHub...
You can use pygount. For example:pygount --format=summary git@github.com:roskakori/pygount.gityields:┏━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━┳━━━━━━━━━┳━━━━━━┓┃ Language ┃ Files ┃ % ┃ Code ┃ % ┃...
View ArticleAnswer by SKS for Can you get the number of lines of code from a GitHub...
Now there is a quick hack,Go to Project Insights --> ContributorsHere you can get the additions and deletion count. You can add the count of each contributor to get the total count
View ArticleAnswer by azizkale for Can you get the number of lines of code from a GitHub...
You can learn it in the local too by typing this command with the related file extensions in the terminal. For example for an Angular project:Get-ChildItem -Recurse -Include *.ts, *.html, *.css |...
View ArticleCan you get the number of lines of code from a GitHub repository?
In a GitHub repository you can see “language statistics”, which displays the percentage of the project that’s written in a language. It doesn’t, however, display how many lines of code the project...
View ArticleAnswer by Schwern for Can you get the number of lines of code from a GitHub...
You can clone just the latest commit using git clone --depth 1 <url> and then perform your own analysis using Linguist, the same software Github uses. That's the only way I know you're going to...
View ArticleAnswer by Hubro for Can you get the number of lines of code from a GitHub...
Not currently possible on Github.com or their API-sI have talked to customer support and confirmed that this can not be done on github.com. They have passed the suggestion along to the Github team...
View ArticleAnswer by Rory O'Kane for Can you get the number of lines of code from a...
A shell script, cloc-gitYou can use this shell script to count the number of lines in a remote Git repository with one command:#!/usr/bin/env bashgit clone --depth 1 "$1" temp-linecount-repo &&...
View ArticleAnswer by Jimmy Da for Can you get the number of lines of code from a GitHub...
If the question is "can you quickly get NUMBER OF LINES of a github repo", the answer is no as stated by the other answers.However, if the question is "can you quickly check the SCALE of a project", I...
View ArticleAnswer by Lewis for Can you get the number of lines of code from a GitHub...
If you go to the graphs/contributors page, you can see a list of all the contributors to the repo and how many lines they've added and removed.Unless I'm missing something, subtracting the aggregate...
View ArticleAnswer by lovasoa for Can you get the number of lines of code from a GitHub...
Firefox add-on Github SLOCI wrote a small firefox addon that prints the number of lines of code on github project pages: Github SLOC
View ArticleAnswer by Kas Elvirov for Can you get the number of lines of code from a...
I created an extension for Google Chrome browser - GLOC which works for public and private repos.Counts the number of lines of code of a project from:project detail pageuser's repositoriesorganization...
View ArticleAnswer by Yi Kai for Can you get the number of lines of code from a GitHub...
You can use GitHub API to get the sloc like the following functionfunction getSloc(repo, tries) { //repo is the repo's path if (!repo) { return Promise.reject(new Error("No repo provided")); }...
View ArticleAnswer by Ahmad Awais for Can you get the number of lines of code from a...
You can run something likegit ls-files | xargs wc -lWhich will give you the total count!You can also add more instructions. Like just looking at the JavaScript files.git ls-files | grep '\.js' | xargs...
View ArticleAnswer by Tobi Obeck for Can you get the number of lines of code from a...
npm install sloc -ggit clone --depth 1 https://github.com/vuejs/vue/sloc ".\vue\src" --format cli-tablerm -rf ".\vue\"Instructions and ExplanationInstall sloc from npm, a command line tool (Node.js...
View ArticleAnswer by CambodianCoder for Can you get the number of lines of code from a...
Pipe the output from the number of lines in each file to sort to organize files by line count.git ls-files | xargs wc -l |sort -n
View ArticleAnswer by Karbos 538 for Can you get the number of lines of code from a...
From the @Tgr's comment, there is an online tool :https://codetabs.com/count-loc/count-loc-online.html
View ArticleAnswer by ishandutta2007 for Can you get the number of lines of code from a...
Open terminal and run the following:curl -L "https://api.codetabs.com/v1/loc?github=username/reponame"
View ArticleAnswer by sicvolo for Can you get the number of lines of code from a GitHub...
There in another online tool that counts lines of code for public and private repos without having to clone/download them - https://klock.herokuapp.com/
View ArticleAnswer by Paul M Sorauer for Can you get the number of lines of code from a...
Hey all this is ridiculously easy...Create a new branch from your first commitWhen you want to find out your stats, create a new PR from mainThe PR will show you the number of changed lines - as you're...
View ArticleAnswer by Gorka for Can you get the number of lines of code from a GitHub...
You can use tokei:cargo install tokeigit clone --depth 1 https://github.com/XAMPPRocky/tokeitokei tokei/Output:=============================================================================== Language...
View Article