Quantcast
Channel: Can you get the number of lines of code from a GitHub repository? - Stack Overflow
Browsing index pages (27 articles)

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 Article


Image may be NSFW.
Clik here to view.

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


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

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


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

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


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

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

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 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
Browsing index pages (27 articles)


Latest Images