Answer by Max for Can you get the number of lines of code from a GitHub...
You could use ghloc.vercel.app - it allows to count lines in any public Github repository.
View ArticleAnswer by BuffMcBigHuge for Can you get the number of lines of code from a...
A lot of answers here, some overly complicated. Here is a simple approach for 2023:git ls-files > list.txt && cloc --list-file=list.txtA text file called list.txt includes the filenames in...
View ArticleAnswer by orcaman for Can you get the number of lines of code from a GitHub...
You can use sourcegraph, an open source search engine for code. It can connect to your GitHub account, index the content, and then on the admin section you would see the number of lines of code indexed.
View ArticleAnswer by Mohamed Belkamel for Can you get the number of lines of code from a...
I made an NPM package specifically for this usage, which allows you to call a CLI tool and providing the directory path and the folders/files to ignoreit goes like this:npm i -g...
View ArticleAnswer by sandypockets for Can you get the number of lines of code from a...
shields.io has a badge that can count up all the lines for you here. Here is an example of what it looks like counting the Raycast extensions repo:
View ArticleAnswer by Sam Gleske for Can you get the number of lines of code from a...
None of the answers here satisfied my requirements. I only wanted to use existing utilities. The following script will use basic utilities:GitGNU or BSD awkGNU or BSD sedBashGet total lines added to a...
View ArticleAnswer by Mike Bendorf for Can you get the number of lines of code from a...
This is so easy if you are using Vscode and you clone the project first. Just install the Lines of Code (LOC) Vscode extension and then run LineCount: Count Workspace Files from the Command Pallete.The...
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Article
More Pages to Explore .....