Coder Social home page Coder Social logo

kas-elvirov / gloc Goto Github PK

View Code? Open in Web Editor NEW
551.0 9.0 41.0 10.02 MB

:calendar: Browser extension: counts lines of code on GitHub

Home Page: https://chrome.google.com/webstore/detail/gloc/kaodcnpebhdbpaeeemkiobcokcnegdki

License: GNU General Public License v2.0

HTML 6.53% JavaScript 17.61% TypeScript 75.59% Shell 0.27%
counter github-extension metrics code-counter gloc chrome sloc

gloc's Introduction

привет 👋

👩‍💻 About Me

I'm frontend developer with economic education from Russia

🛠 Language and tools

react logo nodejs logo javascript logo flutter logo dart logo

🔥 My Stats :

languages graph
streak graph

gloc's People

Contributors

andriyor avatar benebsiny avatar btzy avatar cgbahk avatar dependabot[bot] avatar dnsge avatar kas-elvirov avatar kenta7777 avatar kidonng avatar sh0n0 avatar shawncholeva avatar shinrax2 avatar shkey avatar therealbanana avatar tomver99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gloc's Issues

[Enhancement Suggestion] LOC per file

Expected Behavior

It's really an awesome extension and I do enjoy it! I think it could be improved further like below:

Right now it successfully shows LOC of the whole repo, e.g.:
image
However, if I break down to the subdirectory, the counting doesn't work, e.g.:
image
Could this be improved to support count sub-directories also? Or is there any technical difficulty blocking this? Is there anything I could help to work on? (p.s. I just helped to translate into simplified Chinese version :))

Thanks!

Specifications

  • Version: latest (7.6.12)
  • Platform: macOS Sierra 10.12.6
  • Subsystem: N/A

Suggestion: More readable count e.g. '12k' instead of '12484'

I love gloc's feature, and I appreciate on this work very much!

But I found line count like '12484' (line count of gloc project as of writing 😉 ) might be better to be written as '12k'

This effect becomes more serious when order of line count becomes huge, like 1928342. It would be much better to read this as '2M', '1.9M' or at least '1,928,342'

I would try to make PR about this change by myself, but I am not sure this can be done soon as I never used typescript or javascript :) If anyone can improve before me that would be wonderful

FR: More (or customizable) file extensions

It would be handy to have the ability to count more file types (for instance, .less or .sass come to mind). Could you make the file extension list customizable, or failing that, add more file types to it?

Not working for single repo

Expected Behavior

Gloc shows total lines of code of project in the project home page.

Actual Behavior

Lines of code not shown.

image

Steps to Reproduce the Problem

1.Open any porject on GitHub

Possible Solution

Not known yet

Specifications

  • Version: Chrome Version 72.0.3626.121 (Official Build) (64-bit)
  • Platform: Windows 10
  • Subsystem: None

Solution

  • public repo (fixed)
  • private repo (in progress)

Show total line count for current directory and all sub directories

Expected Behavior

When viewing a repository or a folder in the repository, the count show should be for files in the current directory and any files in any sub directory.

Actual Behavior

When viewing a repository or a folder in the repository, the count show is only for the current directory files, not sub directories.

Steps to Reproduce the Problem

  1. Open a repository (eg https://github.com/artem-solovev/gloc)
  2. Observe line count is only for current directory

Specifications

  • Version: 7.6.17
  • Platform: macOS 10.14, Chrome 69

GitHub Gloc is disabled

The last update did it. I think it's been automatically disabled, because new permission is needed. Could you expand on this or did something happen on my end?

The config page cause crash on 71.0.3578.98

Expected Behavior

Description that is 1-2 paragraphs (40 - 150 words)

Install this extension from https://chrome.google.com/webstore/detail/gloc/kaodcnpebhdbpaeeemkiobcokcnegdki and expect it works as normal.

Actual Behavior

Description that is 1-2 paragraphs (40 - 150 words)

After installation, the config page is open automatically and cause the crash of the entire chrome. The config page shows up again and of course crashed when I reopen chrome. Now I cannot do anything with it because chrome crashed every time when gloc is loaded. --disable-extensions didn't help to fix it because it disabled all the function of extensions and won't load any extension which results in an empty list in extension setting page and I cannot remove it from chrome. It seems that the auth option cause it because sometimes other options show normally until the auth window popped up.

My Chrome version is 71.0.3578.98. There's also some other people report the same problem in the support tab of Chrome extension store page.

Steps to Reproduce the Problem

  1. Install Chrome version: 71.0.3578.98
  2. Install gloc from https://chrome.google.com/webstore/detail/gloc/kaodcnpebhdbpaeeemkiobcokcnegdki
  3. Wait for the config page showing up and cause the crash

Possible Solution

For bugs only

Specifications

  • Version: Chrome: 71.0.3578.98, gloc: 7.6.17
  • Platform: Windows 10 1803
  • Subsystem:

I'm kinda paranoid.

Why does your extensions want to "read and change all your data on the websites you visit"?

I'll delete it, sorry.

[Enhancement] Add the ability to have an ignore list

Golang projects often have a vendor tree with millions of lines of code that are not maintained as part of the project. It would be nice to be able to add the vendor path to an ignore list.

Sometimes other projects are included as subtrees and, similar to the vendor directory, it may be desirous to exclude those when analyzing a project.

Tests

Cover sources with tests

Gloc no more working

Expected Behavior

Get gloc working

Actual Behavior

No additions to github pages, as if gloc wasn't installed

Steps to Reproduce the Problem

In my computer :
Launch chrome, verify gloc is enabled, with a valid token. Connect to github, and nothing happens.
I tried to disconnect from chrome, from github, with/without token, using linux ubuntu (in a virtual machine), and to use a VPN. Same result.

Possible Solution

??

Specifications

Windows 10 family, v1803, x64

Gloc stopped working unexpectedly

Expected Behavior

Get gloc working

Actual Behavior

No additions to github pages, as if gloc wasn't installed

Steps to Reproduce the Problem

In my computer :
Launch chrome, verify gloc is enabled, with a valid token. Connect to github, and nothing happens.
I tried to disconnect from chrome, from github, with/without token, using linux ubuntu (in a virtual machine), and to use a VPN. Same result.
It worked at the beginning, and after a github search, it stopped after a few pages. Reworker after, then stopped definitely. I tried many days so if it was a github limitation it should has been over.

Possible Solution

??

Specifications

Windows 10 family, v1803, x64

show lines of code for the current code project sub folder, not just the whole project

Describe the bug
I want to see the lines of code for a sub folder of a project. We are adding code within an opensource project and want to track our lines of code.

To Reproduce
Steps to reproduce the behavior:

  1. Go to to level project
  2. navigate to a subfolder
  3. Would like Lines widget to update to just the subfolder and its sub folders.

Expected behavior
3. Would like Lines widget to update to just the subfolder and its sub folders.

Screenshots
If applicable, add screenshots to help explain your problem.
Here is a screen shot of a subfolder within cobo-srfr-qcom-sdk. The lines of code is still displayed only for the top level project
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 73.0.3683.103

Additional context
[email protected]

Opera support

Actually it's a know problem. Opera moderates to long

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.