Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badges: add filter ?type=Markdown,Rust #6

Closed
jmfayard opened this issue Dec 3, 2018 · 4 comments · Fixed by #208
Closed

Badges: add filter ?type=Markdown,Rust #6

jmfayard opened this issue Dec 3, 2018 · 4 comments · Fixed by #208

Comments

@jmfayard
Copy link

jmfayard commented Dec 3, 2018

Hello,
The badge does not really work for me.
Here is what it shows for my repo

Actually, my real LoC is 1k, because what is relevant in my case is the output of -t=Kotlin

The rest is not really part of my codebase.

$ tokei
--------------------------------------------------------------------------
 Language       Files        Lines         Code     Comments       Blanks
--------------------------------------------------------------------------
 Batch              1           84           61            0           23
 JSON              27        14287        14287            0            0
 Kotlin            18          957          668           61          228
 Markdown           4          178          178            0            0
 Shell              1          172          128           23           21
 Plain Text        53         2465         2465            0            0
--------------------------------------------------------------------------
 Total            104        18143        17787           84          272
--------------------------------------------------------------------------

I would like to have in the badge URL the same option that in the command line

$ tokei --help
    -t, --type <types>            Filters output by language type, seperated by a comma. i.e. -t=Rust,Markdown
@XAMPPRocky XAMPPRocky transferred this issue from XAMPPRocky/tokei Dec 4, 2018
@JoeHowarth
Copy link

I too would like this feature 👍

@holly-hacker
Copy link

I have a similar scenario where I have a bunch of json files that massively bloat my linecount, and I also have some autogenerated source files I would like to exclude.

@kevinmichaelchen
Copy link

@holly-hacker see this comment.

You could create an .ignore file:

*.json

@XAMPPRocky
Copy link
Owner

I'll also note you can also use .tokeignore if you just want it to apply to tokei as .ignore is a bit more general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants