All Projects → benbalter → count-org-loc

benbalter / count-org-loc

Licence: MIT license
Count total lines of code across a GitHub organization

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to count-org-loc

Sonar Flutter
SonarQube plugin for Flutter / Dart
Stars: ✭ 138 (+94.37%)
Mutual labels:  code-analysis
Spotbugs
SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.
Stars: ✭ 2,569 (+3518.31%)
Mutual labels:  code-analysis
tokei-pie
Render tokei's output to interactive sunburst chart.
Stars: ✭ 138 (+94.37%)
Mutual labels:  code-analysis
Jql
Java code analysis and linting with SQL
Stars: ✭ 148 (+108.45%)
Mutual labels:  code-analysis
Bodyclose
Analyzer: checks whether HTTP response body is closed and a re-use of TCP connection is not blocked.
Stars: ✭ 181 (+154.93%)
Mutual labels:  code-analysis
Forbidden Apis
Policeman's Forbidden API Checker
Stars: ✭ 216 (+204.23%)
Mutual labels:  code-analysis
Find Sec Bugs
The SpotBugs plugin for security audits of Java web applications and Android applications. (Also work with Kotlin, Groovy and Scala projects)
Stars: ✭ 1,748 (+2361.97%)
Mutual labels:  code-analysis
proguard-core
Library to read, write, analyze, and process java bytecode
Stars: ✭ 215 (+202.82%)
Mutual labels:  code-analysis
Ex check
One task to efficiently run all code analysis & testing tools in an Elixir project. Born out of 💜 to Elixir and pragmatism.
Stars: ✭ 198 (+178.87%)
Mutual labels:  code-analysis
AsyncSuffix
Asynchronous methods naming checker for ReSharper
Stars: ✭ 19 (-73.24%)
Mutual labels:  code-analysis
Detekt Intellij Plugin
detekt plugin for IntelliJ
Stars: ✭ 150 (+111.27%)
Mutual labels:  code-analysis
Rubysonar
an advanced semantic indexer for Ruby
Stars: ✭ 175 (+146.48%)
Mutual labels:  code-analysis
Htmlhint
⚙️ The static code analysis tool you need for your HTML
Stars: ✭ 2,723 (+3735.21%)
Mutual labels:  code-analysis
Umldoclet
Automatically generate PlantUML diagrams in javadoc
Stars: ✭ 138 (+94.37%)
Mutual labels:  code-analysis
code-assert
Assert that the java code of a project satisfies certain checks.
Stars: ✭ 94 (+32.39%)
Mutual labels:  code-analysis
Nodejsscan
nodejsscan is a static security code scanner for Node.js applications.
Stars: ✭ 1,874 (+2539.44%)
Mutual labels:  code-analysis
Roslyn Security Guard
Roslyn analyzers that aim to help security audit on .NET applications.
Stars: ✭ 214 (+201.41%)
Mutual labels:  code-analysis
FastLint-Issues
FastLint finds & fixes bugs in your commits
Stars: ✭ 123 (+73.24%)
Mutual labels:  code-analysis
swap-detector
A library for detecting swapped arguments in function calls, and a Clang Static Analyzer plugin used to demonstrate the library.
Stars: ✭ 19 (-73.24%)
Mutual labels:  code-analysis
node-lintspaces
A validator for checking different kinds of whitespaces in your files.
Stars: ✭ 31 (-56.34%)
Mutual labels:  code-analysis

Count total lines of code across a GitHub organization

Usage

  1. git clone https://github.com/benbalter/count-org-loc && cd count-org-loc
  2. gem install bundler
  3. script/bootstrap
  4. script/count [ORG_NAME | USER_NAME]

How it works

It uses Octokit.rb to fetch a list of your organization's (or user's) repositories (public or public and private), and Cloc to count the lines of code, number of files, comments, etc.

Example output for @whitehouse

-------------------------------------------------------------------------------
File                         files          blank        comment           code
-------------------------------------------------------------------------------
petitions                      247           5981          20274          28748
wh-app-ios                     202           6929           7409          23451
fitara                         112            711            481          10693
cyber-acquisitions             110            709            490          10400
omb_place                      163            781            972           8684
wh-app-android                 123           1384            307           8382
fortyfour                       51            591            702           3902
education-compliance-reports     3            192              4           2964
choropleth                       8            320            669           2579
choropleth_dataset              14             93            508            841
drushsubtree                     4            220            887            834
services_documentation          18            154            563            746
buildmanager                     3             95            400            302
petitionssignatureform           3             19             48            184
shunt                            3             42            183            130
petitions-php-sdk                1             42            151            127
tweetfetch                       3             29             74            125
tweetserver                      3             30             74            109
twitterapi                       3             21             70             59
petitions_thermometer            1              0              0             56
netstorage                       1             16             70             45
logger                           2             10             46             29
webform_submit_button            1              6             21             20
-------------------------------------------------------------------------------
SUM:                          1079          18375          34403         103410
-------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Language                      files          blank        comment           code
--------------------------------------------------------------------------------
CSS                              64           1984           1670          25321
Objective C                      90           4910           2244          20331
SASS                            242           3013           1045          16512
Pascal                          129           3079          20164          11263
Javascript                       71            931           1519           8304
Java                             66           1116            246           6882
JSON                            125            182              0           5380
PHP                              82            565           1914           3519
C/C++ Header                    102           1979           5153           2545
HTML                             32            209            258           1471
XML                              47            149             28            920
Bourne Shell                      9             95             70            376
Groovy                            5             22              4            140
Bourne Again Shell                1             20             21            123
Prolog                            2             25              0             74
Ruby                              6             25             31             69
DOS Batch                         1             24              2             64
Python                            1             25              4             63
YAML                              4             22             30             53
--------------------------------------------------------------------------------
SUM:                           1079          18375          34403         103410
--------------------------------------------------------------------------------

Counting private repositories

To look at private repositories, you'll need to pass a personal access token with repo scope as GITHUB_TOKEN. You can do this by adding GITHUB_TOKEN=[TOKEN] to a .env file in the repository's root.

If you are working with GitHub Enterprise and want to change your URL, simply add GITHUB_ENTERPRISE_URL=https://<ghe-url>/api/v3 to the .env file

Sample .env File :

GITHUB_TOKEN="<token>"
GITHUB_ENTERPRISE_URL="https://my-ghe.local/api/v3"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].