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

Markdown: double-counting of a comment #725

Open
mykter opened this issue Feb 25, 2021 · 0 comments
Open

Markdown: double-counting of a comment #725

mykter opened this issue Feb 25, 2021 · 0 comments

Comments

@mykter
Copy link
Contributor

mykter commented Feb 25, 2021

Given a markdown file:

```r    ```

tokei reports:

$ tokei test.md
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Markdown                1            2            0            2            0
 |- R                    1            0            0            0            0
 (Total)                              2            0            2            0
===============================================================================
 Total                   1            2            0            2            0
===============================================================================

I found this through fuzzing, I'll raise a PR with the fuzz harness shortly.

mykter added a commit to mykter/tokei that referenced this issue Feb 25, 2021
See fuzz/README.md for details. Example bug: XAMPPRocky#725
@mykter mykter mentioned this issue Feb 25, 2021
XAMPPRocky pushed a commit that referenced this issue May 9, 2021
* Add fuzzing support

See fuzz/README.md for details. Example bug: #725

* improve fuzz docs

* fuzzing: make relevant config part of input

Most of the config is to do with what files to parse, however
one setting - treat_doc_strings_as_comments - does impact parse_from_slice

* fuzzing: improve docs + config clarity

* fuzz/README.md: install instructions + another todo item
kornysietsma pushed a commit to kornysietsma/tokei that referenced this issue Nov 16, 2022
* Add fuzzing support

See fuzz/README.md for details. Example bug: XAMPPRocky#725

* improve fuzz docs

* fuzzing: make relevant config part of input

Most of the config is to do with what files to parse, however
one setting - treat_doc_strings_as_comments - does impact parse_from_slice

* fuzzing: improve docs + config clarity

* fuzz/README.md: install instructions + another todo item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant