Quantcast
Channel: Can you get the number of lines of code from a GitHub repository? - Stack Overflow
Browsing latest articles
Browse All 24 View Live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Answer 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 Article

Image may be NSFW.
Clik here to view.

Answer 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 Article

Answer 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 Article

Image may be NSFW.
Clik here to view.

Answer 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 Article


Answer 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 Article

Answer 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 Article

Image may be NSFW.
Clik here to view.

Answer 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


Image may be NSFW.
Clik here to view.

Answer 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 Article


Image may be NSFW.
Clik here to view.

Answer 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 Article

Answer 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 Article

Image may be NSFW.
Clik here to view.

Answer 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 Article

Answer 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 Article


Image may be NSFW.
Clik here to view.

Answer 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 Article

Image may be NSFW.
Clik here to view.

Answer 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 Article


Answer 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 Article

Image may be NSFW.
Clik here to view.

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article


Answer 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 Article

Can 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
Browsing latest articles
Browse All 24 View Live




Latest Images